PandaRoot
BSEmcDetectorID.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- BSEmcDetectorID
3 // -----DetectorID class to bundle relative positioning info contained in an Integer
4 // ----- Created 25/03/2019 by B. Salisbury <salisbury@hiskp.uni-bonn.de>
5 // -------------------------------------------------------------------------
6 #ifndef BSEMCDETECTORID_HH
7 #define BSEMCDETECTORID_HH
8 
9 #include "Rtypes.h"
10 #include "RtypesCore.h"
11 #include "TObject.h"
12 
13 class TBuffer;
14 class TClass;
15 class TMemberInspector;
16 
26  public:
27  BSEmcDetectorID(Int_t t_detectorId = 0);
28  virtual ~BSEmcDetectorID();
29 
30  Short_t GetModule() const { return (fDetectorId / 100000000); };
31  Short_t GetRow() const { return ((fDetectorId / 1000000) % 100); };
32  Short_t GetColumn() const { return (fDetectorId % 10000); };
33  Short_t GetCopy() const { return ((fDetectorId / 10000) % 100); };
34  Short_t GetXPad() const;
35  Short_t GetYPad() const;
36  Int_t GetDetectorId() const { return fDetectorId; };
37 
38  private:
39  Int_t fDetectorId{-1};
40 
41  ClassDef(BSEmcDetectorID, 1);
42 };
43 
44 #endif /*BSEMCDETECTORID_HH*/
Short_t GetRow() const
Short_t GetYPad() const
Short_t GetXPad() const
virtual ~BSEmcDetectorID()
BSEmcDetectorID(Int_t t_detectorId=0)
Int_t GetDetectorId() const
Short_t GetModule() const
Short_t GetColumn() const
Short_t GetCopy() const