CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MaterialBudget.h
Go to the documentation of this file.
1 #ifndef Validation_Geometry_MaterialBudget_h
2 #define Validation_Geometry_MaterialBudget_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 
24 class MaterialBudget : public SimWatcher,
25  public Observer<const BeginOfRun*>,
26  public Observer<const BeginOfTrack*>,
27  public Observer<const G4Step*>,
28  public Observer<const EndOfTrack*> {
29 
30 public:
31 
33  virtual ~MaterialBudget();
34 
35 private:
36 
37  MaterialBudget(const MaterialBudget&); // stop default
38  const MaterialBudget& operator=(const MaterialBudget&); // ...
39 
40  void update(const BeginOfRun*);
41  void update(const BeginOfTrack*);
42  void update(const G4Step*);
43  void update(const EndOfTrack*);
44 
45  void book(const edm::ParameterSet&);
46  bool stopAfter(const G4Step*);
47 
48  std::vector<std::string> detTypes, detNames;
50  std::vector<double> etaRegions, boundaries;
51  std::vector<G4LogicalVolume*> logVolumes;
52  std::vector<TProfile*> me100, me200, me300, me400, me500, me600;
53  std::vector<double> stepLen, radLen, intLen;
54  double eta, phi, stepT;
55 };
56 
57 #endif
std::vector< TProfile * > me300
std::vector< int > detLevels
std::vector< double > intLen
virtual ~MaterialBudget()
std::vector< std::string > detNames
std::vector< int > regionTypes
std::vector< double > stepLen
MaterialBudget(const edm::ParameterSet &)
std::vector< TProfile * > me600
std::vector< TProfile * > me100
void book(const edm::ParameterSet &)
bool stopAfter(const G4Step *)
std::vector< TProfile * > me400
std::vector< TProfile * > me200
std::vector< TProfile * > me500
std::vector< double > boundaries
std::vector< std::string > detTypes
const MaterialBudget & operator=(const MaterialBudget &)
std::vector< double > etaRegions
std::vector< int > stackOrder
std::vector< double > radLen
std::vector< G4LogicalVolume * > logVolumes
void update(const BeginOfRun *)
This routine will be called when the appropriate signal arrives.
std::vector< int > constituents