CMS 3D CMS Logo

HcalGeomParameters.h
Go to the documentation of this file.
1 #ifndef HcalCommonData_HcalGeomParameters_h
2 #define HcalCommonData_HcalGeomParameters_h
3 
14 #include <string>
15 #include <vector>
16 #include <iostream>
17 
23 
24 class HcalParameters;
25 
27 public:
28  static constexpr double k_ScaleFromDDD = 0.1;
29  static constexpr double k_ScaleToDDD = 10.0;
30  static constexpr double k_ScaleFromDDDToG4 = 1.0;
31  static constexpr double k_ScaleToDDDFromG4 = 1.0;
32  static constexpr double k_ScaleFromDD4Hep = 1.0;
33  static constexpr double k_ScaleToDD4Hep = 1.0;
34  static constexpr double k_ScaleFromDD4HepToG4 = 10.0;
35  static constexpr double k_ScaleToDD4HepFromG4 = 0.1;
36 
37  HcalGeomParameters() = default;
38 
39  double getConstDzHF() const { return dzVcal_; }
40  void getConstRHO(std::vector<double>&) const;
41  std::vector<int> getModHalfHBHE(const int type) const;
42  void loadGeometry(const DDFilteredView& _fv, HcalParameters& php);
43  void loadGeometry(const cms::DDCompactView& cpv, HcalParameters& php);
44 
45 private:
46  unsigned find(int element, std::vector<int>& array) const;
47  double getEta(double r, double z) const;
48  void clear(HcalParameters& php);
49  void loadfinal(HcalParameters& php);
50 
51  int nzHB_, nmodHB_; // Number of halves and modules in HB
52  int nzHE_, nmodHE_; // Number of halves and modules in HE
53  double etaHO_[4], rminHO_; // eta in HO ring boundaries
54  double zVcal_; // Z-position of the front of HF
55  double dzVcal_; // Half length of the HF
56  double dlShort_; // Diference of length between long and short
57  static const int maxLayer_ = 20;
58  static const int kHELayer1_ = 21, kHELayer2_ = 71;
59  std::vector<double> rb_, ze_, thkb_, thke_;
60  std::vector<int> ib_, ie_, izb_, phib_, ize_, phie_;
61  std::vector<double> rxb_, rminHE_, rmaxHE_;
62 };
63 
64 #endif
HcalGeomParameters::k_ScaleToDD4Hep
static constexpr double k_ScaleToDD4Hep
Definition: HcalGeomParameters.h:33
HcalGeomParameters::getEta
double getEta(double r, double z) const
Definition: HcalGeomParameters.cc:452
HcalGeomParameters::phie_
std::vector< int > phie_
Definition: HcalGeomParameters.h:60
HcalGeomParameters::zVcal_
double zVcal_
Definition: HcalGeomParameters.h:54
HcalGeomParameters::thkb_
std::vector< double > thkb_
Definition: HcalGeomParameters.h:59
HcalGeomParameters::phib_
std::vector< int > phib_
Definition: HcalGeomParameters.h:60
HcalGeomParameters::ib_
std::vector< int > ib_
Definition: HcalGeomParameters.h:60
HcalGeomParameters::nzHE_
int nzHE_
Definition: HcalGeomParameters.h:52
HcalGeomParameters::nzHB_
int nzHB_
Definition: HcalGeomParameters.h:51
mps_check.array
array
Definition: mps_check.py:216
HcalGeomParameters::k_ScaleToDDD
static constexpr double k_ScaleToDDD
Definition: HcalGeomParameters.h:29
HcalGeomParameters::kHELayer2_
static const int kHELayer2_
Definition: HcalGeomParameters.h:58
HcalGeomParameters::k_ScaleToDD4HepFromG4
static constexpr double k_ScaleToDD4HepFromG4
Definition: HcalGeomParameters.h:35
HcalGeomParameters::rminHE_
std::vector< double > rminHE_
Definition: HcalGeomParameters.h:61
HcalGeomParameters::thke_
std::vector< double > thke_
Definition: HcalGeomParameters.h:59
HcalGeomParameters::k_ScaleFromDD4Hep
static constexpr double k_ScaleFromDD4Hep
Definition: HcalGeomParameters.h:32
HcalGeomParameters::getConstDzHF
double getConstDzHF() const
Definition: HcalGeomParameters.h:39
DDFilteredView.h
HcalGeomParameters::dlShort_
double dlShort_
Definition: HcalGeomParameters.h:56
HcalGeomParameters::rminHO_
double rminHO_
Definition: HcalGeomParameters.h:53
HcalGeomParameters::find
unsigned find(int element, std::vector< int > &array) const
Definition: HcalGeomParameters.cc:441
HcalGeomParameters::rb_
std::vector< double > rb_
Definition: HcalGeomParameters.h:59
DDAxes::z
HcalGeomParameters::getModHalfHBHE
std::vector< int > getModHalfHBHE(const int type) const
Definition: HcalGeomParameters.cc:27
DDFilteredView.h
HcalGeomParameters::maxLayer_
static const int maxLayer_
Definition: HcalGeomParameters.h:57
DDCompactView.h
HcalGeomParameters::kHELayer1_
static const int kHELayer1_
Definition: HcalGeomParameters.h:58
HcalGeomParameters::nmodHE_
int nmodHE_
Definition: HcalGeomParameters.h:52
HcalGeomParameters::rxb_
std::vector< double > rxb_
Definition: HcalGeomParameters.h:61
HcalGeomParameters::getConstRHO
void getConstRHO(std::vector< double > &) const
Definition: HcalGeomParameters.cc:21
HcalGeomParameters::nmodHB_
int nmodHB_
Definition: HcalGeomParameters.h:51
HcalGeomParameters::k_ScaleFromDDDToG4
static constexpr double k_ScaleFromDDDToG4
Definition: HcalGeomParameters.h:30
HcalGeomParameters::k_ScaleFromDD4HepToG4
static constexpr double k_ScaleFromDD4HepToG4
Definition: HcalGeomParameters.h:34
HcalGeomParameters::loadfinal
void loadfinal(HcalParameters &php)
Definition: HcalGeomParameters.cc:494
HcalGeomParameters::ze_
std::vector< double > ze_
Definition: HcalGeomParameters.h:59
HcalSubdetector.h
HcalCellType.h
HcalGeomParameters::ie_
std::vector< int > ie_
Definition: HcalGeomParameters.h:60
HcalGeomParameters::clear
void clear(HcalParameters &php)
Definition: HcalGeomParameters.cc:462
alignCSCRings.r
r
Definition: alignCSCRings.py:93
type
type
Definition: HCALResponse.h:21
HcalGeomParameters::loadGeometry
void loadGeometry(const DDFilteredView &_fv, HcalParameters &php)
Definition: HcalGeomParameters.cc:39
HcalParameters
Definition: HcalParameters.h:6
cms::DDCompactView
Definition: DDCompactView.h:29
DDFilteredView
Definition: DDFilteredView.h:20
HcalGeomParameters::HcalGeomParameters
HcalGeomParameters()=default
HcalGeomParameters::ize_
std::vector< int > ize_
Definition: HcalGeomParameters.h:60
HcalGeomParameters
Definition: HcalGeomParameters.h:26
HcalGeomParameters::etaHO_
double etaHO_[4]
Definition: HcalGeomParameters.h:53
HcalGeomParameters::k_ScaleToDDDFromG4
static constexpr double k_ScaleToDDDFromG4
Definition: HcalGeomParameters.h:31
HcalGeomParameters::izb_
std::vector< int > izb_
Definition: HcalGeomParameters.h:60
HcalGeomParameters::dzVcal_
double dzVcal_
Definition: HcalGeomParameters.h:55
HcalGeomParameters::rmaxHE_
std::vector< double > rmaxHE_
Definition: HcalGeomParameters.h:61
HcalGeomParameters::k_ScaleFromDDD
static constexpr double k_ScaleFromDDD
Definition: HcalGeomParameters.h:28