CMS 3D CMS Logo

MaterialBudgetForward.h
Go to the documentation of this file.
1 #ifndef Validation_Geometry_MaterialBudgetForward_h
2 #define Validation_Geometry_MaterialBudgetForward_h
3 
7 
8 #include <CLHEP/Vector/LorentzVector.h>
9 
10 class BeginOfRun;
11 class BeginOfTrack;
12 class G4Step;
13 class EndOfTrack;
14 #include "G4LogicalVolume.hh"
15 
16 #include <TH1F.h>
17 #include <TH2F.h>
18 #include <TProfile.h>
19 #include <TProfile2D.h>
20 
21 #include <string>
22 #include <vector>
23 
25  public Observer<const BeginOfRun *>,
26  public Observer<const BeginOfTrack *>,
27  public Observer<const G4Step *>,
28  public Observer<const EndOfTrack *> {
29 public:
31  MaterialBudgetForward(const MaterialBudgetForward &) = delete; // stop default
32  ~MaterialBudgetForward() override;
33 
34  const MaterialBudgetForward &operator=(const MaterialBudgetForward &) = delete; // ...
35 
36 private:
37  void update(const BeginOfRun *) override;
38  void update(const BeginOfTrack *) override;
39  void update(const G4Step *) override;
40  void update(const EndOfTrack *) override;
41 
42  void book(const edm::ParameterSet &);
43  bool stopAfter(const G4Step *);
44 
45  std::vector<std::string> detTypes, detNames;
47  std::vector<double> etaRegions, boundaries;
48  std::vector<G4LogicalVolume *> logVolumes;
49  static const int maxSet = 25;
50  TH1F *me400[maxSet];
51  TH2F *me800[maxSet];
52  TProfile *me100[maxSet], *me200[maxSet], *me300[maxSet];
53  TProfile2D *me500[maxSet], *me600[maxSet], *me700[maxSet];
54  std::vector<double> stepLen, radLen, intLen;
55  double eta_, phi_, stepT;
56 };
57 
58 #endif
TProfile2D * me700[maxSet]
std::vector< G4LogicalVolume * > logVolumes
TProfile * me100[maxSet]
MaterialBudgetForward(const edm::ParameterSet &)
TProfile2D * me600[maxSet]
std::vector< double > etaRegions
std::vector< int > detLevels
std::vector< double > radLen
std::vector< int > stackOrder
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
TProfile * me200[maxSet]
std::vector< double > intLen
std::vector< double > stepLen
std::vector< std::string > detNames
std::vector< int > constituents
bool stopAfter(const G4Step *)
void book(const edm::ParameterSet &)
std::vector< int > regionTypes
TProfile * me300[maxSet]
std::vector< double > boundaries
TProfile2D * me500[maxSet]
std::vector< std::string > detTypes
const MaterialBudgetForward & operator=(const MaterialBudgetForward &)=delete