CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
12 
13 class DDCompactView;
14 class G4Step;
15 
16 #include <string>
17 #include <vector>
18 
19 class HFShowerPMT {
20 
21 public:
22 
23  HFShowerPMT(std::string & name, const DDCompactView & cpv,
24  edm::ParameterSet const & p);
25  virtual ~HFShowerPMT();
26  double getHits(G4Step * aStep);
27  double getRadius();
28 
29 private:
30 
31  std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&);
32 
33 private:
34 
36  double pePerGeV; // PE per GeV of energy deposit
37  int indexR, indexF;
38  std::vector<double> rTable; // R-table
39  std::vector<int> pmtR1, pmtFib1; // R-index, fibre table for right box
40  std::vector<int> pmtR2, pmtFib2; // R-index, fibre table for left box
41 
42 };
43 
44 #endif // HFShowerPMT_h
double getRadius()
Definition: HFShowerPMT.cc:150
std::vector< double > rTable
Definition: HFShowerPMT.h:38
std::vector< int > pmtFib1
Definition: HFShowerPMT.h:39
type of data representation of DDCompactView
Definition: DDCompactView.h:77
virtual ~HFShowerPMT()
Definition: HFShowerPMT.cc:100
double pePerGeV
Definition: HFShowerPMT.h:36
std::vector< int > pmtR2
Definition: HFShowerPMT.h:40
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:19
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &)
Definition: HFShowerPMT.cc:168
double getHits(G4Step *aStep)
Definition: HFShowerPMT.cc:104
HFCherenkov * cherenkov
Definition: HFShowerPMT.h:35
HFShowerPMT(std::string &name, const DDCompactView &cpv, edm::ParameterSet const &p)
Definition: HFShowerPMT.cc:22
std::vector< int > pmtFib2
Definition: HFShowerPMT.h:40
std::vector< int > pmtR1
Definition: HFShowerPMT.h:39