MpdEmcGeoPar.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef MPDEMCDETGEOPAR_H
  2. #define MPDEMCDETGEOPAR_H
  3. #include "FairParGenericSet.h"
  4. class TObjArray;
  5. class FairParamList;
  6. class MpdEmcGeoPar : public FairParGenericSet {
  7. public:
  8. /** List of FairGeoNodes for sensitive volumes */
  9. TObjArray *fGeoSensNodes;
  10. /** List of FairGeoNodes for sensitive volumes */
  11. TObjArray *fGeoPassNodes;
  12. MpdEmcGeoPar(const char* name, const char* title, const char* context);
  13. MpdEmcGeoPar();
  14. ~MpdEmcGeoPar(void);
  15. void clear(void);
  16. void putParams(FairParamList*);
  17. Bool_t getParams(FairParamList*);
  18. TObjArray* GetGeoSensitiveNodes() {return fGeoSensNodes;}
  19. TObjArray* GetGeoPassiveNodes() {return fGeoPassNodes;}
  20. Float_t GetLength() const {return length;}
  21. Float_t GetRmin() const {return rMin;}
  22. Float_t GetRmax() const {return rMax;}
  23. UInt_t GetNsec() const {return nSec;}
  24. UInt_t GetNrows() const {return nRows;}
  25. UShort_t GetNmod() const {return nMod;}
  26. UInt_t GetNsupMod() const {return nSupMod;}
  27. Float_t GetLengthOfModuleByZ() const {return lengthOfModuleByZ;}
  28. Float_t GetAngleOfModule() const {return angleOfModule;}
  29. Float_t GetAngleOfSuperModule() const {return angleOfSuperModule;}
  30. Float_t GetAngleOfSector() const {return angleOfSector;}
  31. Float_t GetLengthOfSuperModuleByZ() const {return lengthOfSuperModuleByZ;}
  32. UInt_t GetNModInSuperModByZ() const {return nModInSuperModByZ;}
  33. UInt_t GetNModInSuperModByPhi() const {return nModInSuperModByPhi;}
  34. private:
  35. Float_t length;
  36. Float_t rMin;
  37. Float_t rMax;
  38. Float_t lengthOfModuleByZ;
  39. Float_t lengthOfSuperModuleByZ;
  40. Float_t angleOfSuperModule;
  41. Float_t angleOfModule;
  42. Float_t angleOfSector;
  43. UInt_t nModInSuperModByZ;
  44. UInt_t nModInSuperModByPhi;
  45. UInt_t nSec; // number of sectors in whole EMC (positive and negative Z)
  46. UInt_t nRows; // number of rows (slices) in one sector
  47. UShort_t nMod; // number of modules in one super-module (N x M)
  48. UInt_t nSupMod; // number of super-modules in one row (slice)
  49. ClassDef(MpdEmcGeoPar, 1)
  50. };
  51. #endif /* MPDEMCDETGEOPAR_H */