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 
22 public:
23 
24  HFShowerPMT(const std::string & name, const DDCompactView & cpv,
25  edm::ParameterSet const & p);
26  virtual ~HFShowerPMT();
27  double getHits(const G4Step * aStep);
28  double getRadius();
29  void initRun(G4ParticleTable *, HcalDDDSimConstants*);
30 
31 private:
32 
33  std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&);
34 
35 private:
36 
38  double pePerGeV; // PE per GeV of energy deposit
39  int indexR, indexF;
40  std::vector<double> rTable; // R-table
41  std::vector<int> pmtR1, pmtFib1; // R-index, fibre table for right box
42  std::vector<int> pmtR2, pmtFib2; // R-index, fibre table for left box
43 
44 };
45 
46 #endif // HFShowerPMT_h
double getRadius()
Definition: HFShowerPMT.cc:134
std::vector< double > rTable
Definition: HFShowerPMT.h:40
std::vector< int > pmtFib1
Definition: HFShowerPMT.h:41
type of data representation of DDCompactView
Definition: DDCompactView.h:90
virtual ~HFShowerPMT()
Definition: HFShowerPMT.cc:73
void initRun(G4ParticleTable *, HcalDDDSimConstants *)
Definition: HFShowerPMT.cc:77
double pePerGeV
Definition: HFShowerPMT.h:38
double getHits(const G4Step *aStep)
Definition: HFShowerPMT.cc:88
std::vector< int > pmtR2
Definition: HFShowerPMT.h:42
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
Definition: DDsvalues.h:20
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &)
Definition: HFShowerPMT.cc:152
HFShowerPMT(const std::string &name, const DDCompactView &cpv, edm::ParameterSet const &p)
Definition: HFShowerPMT.cc:22
HFCherenkov * cherenkov
Definition: HFShowerPMT.h:37
std::vector< int > pmtFib2
Definition: HFShowerPMT.h:42
std::vector< int > pmtR1
Definition: HFShowerPMT.h:41