CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalFlexiHardcodeGeometryLoader.h
Go to the documentation of this file.
1 #ifndef GEOMETRY_HCALTOWERALGO_HCALFLEXIHARDCODEGEOMETRYLOADER_H
2 #define GEOMETRY_HCALTOWERALGO_HCALFLEXIHARDCODEGEOMETRYLOADER_H 1
3 
12 #include <vector>
13 
14 class HcalTopology;
16 
18 
19 public:
21 
22  CaloSubdetectorGeometry* load(const HcalTopology& fTopology, const HcalDDDRecConstants& hcons);
23 
24 private:
25 
27  HBHOCellParameters (int f_eta, int f_depth, int f_phiFirst, int f_nphi, int f_phiStep, double f_phiStart, double f_dPhi, double f_rMin, double f_rMax, double f_etaMin, double f_etaMax)
28  : eta(f_eta), depth(f_depth), phiFirst(f_phiFirst), nPhi(f_nphi), phiStep(f_phiStep), phiStart(f_phiStart), dphi(f_dPhi), rMin(f_rMin), rMax(f_rMax), etaMin(f_etaMin), etaMax(f_etaMax)
29  {}
30 
31  int eta;
32  int depth;
33  int phiFirst;
34  int nPhi;
35  int phiStep;
36  double phiStart;
37  double dphi;
38  double rMin;
39  double rMax;
40  double etaMin;
41  float etaMax;
42  };
43 
45  HECellParameters (int f_eta, int f_depth, int f_phiFirst, int f_nphi, int f_phiStep, double f_phiStart, double f_dPhi, double f_zMin, double f_zMax, double f_etaMin, double f_etaMax)
46  : eta(f_eta), depth(f_depth), phiFirst(f_phiFirst), nPhi(f_nphi), phiStep(f_phiStep), phiStart(f_phiStart), dphi(f_dPhi), zMin(f_zMin), zMax(f_zMax), etaMin(f_etaMin), etaMax(f_etaMax)
47  {}
48 
49  int eta;
50  int depth;
51  int phiFirst;
52  int nPhi;
53  int phiStep;
54  double phiStart;
55  double dphi;
56  double zMin;
57  double zMax;
58  double etaMin;
59  double etaMax;
60  };
61 
63  HFCellParameters (int f_eta, int f_depth, int f_phiFirst, int f_phiStep, int f_nPhi, int f_dPhi, float f_zMin, float f_zMax, float f_rMin, float f_rMax)
64  : eta(f_eta), depth(f_depth), phiFirst(f_phiFirst), phiStep(f_phiStep), nPhi(f_nPhi), dphi(f_dPhi), zMin(f_zMin), zMax(f_zMax), rMin(f_rMin), rMax(f_rMax)
65  {}
66 
67  int eta;
68  int depth;
69  int phiFirst;
70  int phiStep;
71  int nPhi;
72  int dphi;
73  float zMin;
74  float zMax;
75  float rMin;
76  float rMax;
77  };
78 
79  std::vector <HBHOCellParameters> makeHBCells (const HcalDDDRecConstants& hcons);
80  std::vector <HBHOCellParameters> makeHOCells ();
81  std::vector <HECellParameters> makeHECells (const HcalDDDRecConstants& hcons);
82  std::vector <HECellParameters> makeHECells_H2 ();
83  std::vector <HFCellParameters> makeHFCells (const HcalDDDRecConstants& hcons);
84 
85  void fillHBHO (CaloSubdetectorGeometry* fGeometry, const std::vector <HBHOCellParameters>& fCells, bool fHB);
86  void fillHE (CaloSubdetectorGeometry* fGeometry, const std::vector <HECellParameters>& fCells);
87  void fillHF (CaloSubdetectorGeometry* fGeometry, const std::vector <HFCellParameters>& fCells);
88 
90  double DEGREE2RAD;
91 };
92 
93 #endif
HFCellParameters(int f_eta, int f_depth, int f_phiFirst, int f_phiStep, int f_nPhi, int f_dPhi, float f_zMin, float f_zMax, float f_rMin, float f_rMax)
std::vector< HFCellParameters > makeHFCells(const HcalDDDRecConstants &hcons)
void fillHBHO(CaloSubdetectorGeometry *fGeometry, const std::vector< HBHOCellParameters > &fCells, bool fHB)
std::vector< HECellParameters > makeHECells_H2()
HcalFlexiHardcodeGeometryLoader(const edm::ParameterSet &)
std::vector< HBHOCellParameters > makeHBCells(const HcalDDDRecConstants &hcons)
std::vector< HBHOCellParameters > makeHOCells()
HECellParameters(int f_eta, int f_depth, int f_phiFirst, int f_nphi, int f_phiStep, double f_phiStart, double f_dPhi, double f_zMin, double f_zMax, double f_etaMin, double f_etaMax)
void fillHE(CaloSubdetectorGeometry *fGeometry, const std::vector< HECellParameters > &fCells)
std::vector< HECellParameters > makeHECells(const HcalDDDRecConstants &hcons)
void fillHF(CaloSubdetectorGeometry *fGeometry, const std::vector< HFCellParameters > &fCells)
CaloSubdetectorGeometry * load(const HcalTopology &fTopology, const HcalDDDRecConstants &hcons)
HBHOCellParameters(int f_eta, int f_depth, int f_phiFirst, int f_nphi, int f_phiStep, double f_phiStart, double f_dPhi, double f_rMin, double f_rMax, double f_etaMin, double f_etaMax)