Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:59

0001 /*!
0002  *  \file       Measurement.h
0003  *  \brief      Measurement is the base class for input of the fitter.
0004  *  \author     Haiwang Yu <yuhw@nmsu.edu>
0005  */
0006 
0007 #ifndef PHGENFIT_MEASUREMENT_H
0008 #define PHGENFIT_MEASUREMENT_H
0009 
0010 #include <GenFit/AbsMeasurement.h>
0011 #include <trackbase/TrkrDefs.h>
0012 
0013 #include <climits>
0014 
0015 namespace PHGenFit
0016 {
0017   class Measurement
0018   {
0019    public:
0020     //! ctor
0021     Measurement()
0022       : _measurement(NULL)
0023       , _clusterID(UINT_MAX){};
0024 
0025     //! dtor
0026     virtual ~Measurement() {}
0027 
0028     //!
0029     genfit::AbsMeasurement* getMeasurement()
0030     {
0031       return _measurement;
0032     }
0033 
0034     // old tracking
0035     unsigned int get_cluster_ID() const
0036     {
0037       return _clusterID;
0038     }
0039     void set_cluster_ID(unsigned int clusterId)
0040     {
0041       _clusterID = clusterId;
0042     }
0043 
0044     // new tracking
0045     TrkrDefs::cluskey get_cluster_key() const
0046     {
0047       return _clusterkey;
0048     }
0049     void set_cluster_key(TrkrDefs::cluskey clusterkey)
0050     {
0051       _clusterkey = clusterkey;
0052     }
0053 
0054    protected:
0055     genfit::AbsMeasurement* _measurement;
0056     unsigned int _clusterID;
0057     TrkrDefs::cluskey _clusterkey;
0058   };
0059 }  // namespace PHGenFit
0060 
0061 #endif