CbmRoot
CbmMvdCluster.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmMvdCluster header file -----
3 // -----
4 // -------------------------------------------------------------------------
5 
6 
14 #ifndef CBMMVDCLUSTER_H
15 #define CBMMVDCLUSTER_H 1
16 
17 #include <Rtypes.h> // for ClassDef
18 #include <RtypesCore.h> // for Int_t, Float_t, Short_t
19 
20 #include "CbmCluster.h" // for CbmCluster
21 #include "CbmMvdDetectorId.h" // for CbmMvdDetectorId
22 
23 #include <map> // for map
24 #include <utility> // for pair
25 
26 
27 class CbmMvdCluster : public CbmCluster, public CbmMvdDetectorId {
28 public:
30  CbmMvdCluster();
31 
33 
34  CbmMvdCluster& operator=(const CbmMvdCluster&) { return *this; };
35 
37  virtual ~CbmMvdCluster();
38 
40  void SetPixelMap(std::map<std::pair<Int_t, Int_t>, Int_t> PixelMap);
41  void SetRefId(Int_t RefId) {
42  fRefId = RefId;
43  }; //* stores the index to the global TClonesArray
44 
46  Short_t GetTotalDigisInCluster() { return fPixelMap.size(); };
47  std::map<std::pair<Int_t, Int_t>, Int_t> GetPixelMap() { return fPixelMap; };
48  Int_t GetStationNr() { return (Int_t) GetAddress() / 1000; };
49  Int_t GetRefId() { return fRefId; };
50  Int_t GetDetectorId() { return DetectorId(GetStationNr()); };
51  Int_t GetSensorNr() {
52  return GetAddress() - (((Int_t) GetAddress() / 1000) * 1000);
53  };
54 
55  Float_t GetClusterCharge() { return fClusterCharge; };
56 
57 protected:
58  std::map<std::pair<Int_t, Int_t>, Int_t> fPixelMap;
59  Int_t fRefId;
60  Float_t fClusterCharge;
61 
63 };
64 
65 #endif
CbmMvdDetectorId
Definition: CbmMvdDetectorId.h:32
CbmMvdCluster::GetClusterCharge
Float_t GetClusterCharge()
Definition: CbmMvdCluster.h:55
CbmMvdCluster::GetTotalDigisInCluster
Short_t GetTotalDigisInCluster()
Definition: CbmMvdCluster.h:46
CbmMvdCluster::~CbmMvdCluster
virtual ~CbmMvdCluster()
Definition: CbmMvdCluster.cxx:26
CbmMvdCluster::GetPixelMap
std::map< std::pair< Int_t, Int_t >, Int_t > GetPixelMap()
Definition: CbmMvdCluster.h:47
CbmMvdCluster::fPixelMap
std::map< std::pair< Int_t, Int_t >, Int_t > fPixelMap
Definition: CbmMvdCluster.h:55
CbmMvdCluster
Definition: CbmMvdCluster.h:27
CbmMvdDetectorId.h
CbmMvdCluster::GetDetectorId
Int_t GetDetectorId()
Definition: CbmMvdCluster.h:50
CbmMvdCluster::fClusterCharge
Float_t fClusterCharge
Definition: CbmMvdCluster.h:60
CbmMvdCluster::SetPixelMap
void SetPixelMap(std::map< std::pair< Int_t, Int_t >, Int_t > PixelMap)
Definition: CbmMvdCluster.cxx:30
CbmMvdCluster::GetSensorNr
Int_t GetSensorNr()
Definition: CbmMvdCluster.h:51
CbmMvdCluster::GetRefId
Int_t GetRefId()
Definition: CbmMvdCluster.h:49
CbmCluster::GetAddress
Int_t GetAddress() const
Definition: CbmCluster.h:90
CbmMvdCluster::operator=
CbmMvdCluster & operator=(const CbmMvdCluster &)
Definition: CbmMvdCluster.h:34
CbmMvdCluster::SetRefId
void SetRefId(Int_t RefId)
Definition: CbmMvdCluster.h:41
CbmMvdCluster::CbmMvdCluster
CbmMvdCluster()
Definition: CbmMvdCluster.cxx:12
CbmMvdCluster::ClassDef
ClassDef(CbmMvdCluster, 4)
CbmMvdCluster::fRefId
Int_t fRefId
Definition: CbmMvdCluster.h:59
CbmMvdCluster::GetStationNr
Int_t GetStationNr()
Definition: CbmMvdCluster.h:48
CbmCluster
Base class for cluster objects.
Definition: CbmCluster.h:26
CbmCluster.h
Base class for cluster objects.
CbmMvdDetectorId::DetectorId
Int_t DetectorId(Int_t iStation) const
Definition: CbmMvdDetectorId.h:44