CMS 3D CMS Logo

HFShowerPMT.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HFShowerPMT_h
2 #define SimG4CMS_HFShowerPMT_h
3 // File: HFShowerPMT.h
5 // Description: Maps HF PMT's to given
7 
13 
14 class DDCompactView;
15 class G4Step;
16 
17 #include <string>
18 #include <vector>
19 
20 class HFShowerPMT {
21 public:
22  HFShowerPMT(const std::string& name, const DDCompactView& cpv, edm::ParameterSet const& p);
23  virtual ~HFShowerPMT();
24  double getHits(const G4Step* aStep);
25  double getRadius();
26  void initRun(const HcalDDDSimConstants*);
27 
28 private:
29  std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&);
30 
31 private:
33  double pePerGeV; // PE per GeV of energy deposit
34  int indexR, indexF;
35  std::vector<double> rTable; // R-table
36  std::vector<int> pmtR1, pmtFib1; // R-index, fibre table for right box
37  std::vector<int> pmtR2, pmtFib2; // R-index, fibre table for left box
38 };
39 
40 #endif // HFShowerPMT_h
double getRadius()
Definition: HFShowerPMT.cc:131
void initRun(const HcalDDDSimConstants *)
Definition: HFShowerPMT.cc:79
std::vector< double > rTable
Definition: HFShowerPMT.h:35
std::vector< int > pmtFib1
Definition: HFShowerPMT.h:36
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
virtual ~HFShowerPMT()
Definition: HFShowerPMT.cc:74
double pePerGeV
Definition: HFShowerPMT.h:33
double getHits(const G4Step *aStep)
Definition: HFShowerPMT.cc:92
std::vector< int > pmtR2
Definition: HFShowerPMT.h:37
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &)
Definition: HFShowerPMT.cc:147
HFShowerPMT(const std::string &name, const DDCompactView &cpv, edm::ParameterSet const &p)
Definition: HFShowerPMT.cc:23
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
HFCherenkov * cherenkov
Definition: HFShowerPMT.h:32
std::vector< int > pmtFib2
Definition: HFShowerPMT.h:37
std::vector< int > pmtR1
Definition: HFShowerPMT.h:36