CMS 3D CMS Logo

MaterialBudgetAction.h
Go to the documentation of this file.
1 #ifndef Validation_Geometry_MaterialBudgetAction_h
2 #define Validation_Geometry_MaterialBudgetAction_h
3 
4 #include <string>
5 #include <vector>
6 
16 
20 
21 #include <CLHEP/Vector/LorentzVector.h>
22 
23 class BeginOfTrack;
24 class BeginOfRun;
25 class BeginOfEvent;
26 class EndOfEvent;
27 class G4Step;
28 class EndOfTrack;
29 class EndOfRun;
30 class G4StepPoint;
31 class G4VTouchable;
32 
34  public Observer<const BeginOfRun*>,
35  public Observer<const BeginOfTrack*>,
36  public Observer<const G4Step*>,
37  public Observer<const EndOfTrack*>,
38  public Observer<const EndOfRun*> {
39 public:
41  ~MaterialBudgetAction() override;
42 
43 private:
44  MaterialBudgetAction(const MaterialBudgetAction&); // stop default
45 
46  const MaterialBudgetAction& operator=(const MaterialBudgetAction&); // stop default
47 
48  void update(const BeginOfRun*) override;
49  void update(const BeginOfTrack*) override;
50  void update(const G4Step*) override;
51  void update(const EndOfTrack*) override;
52  void update(const EndOfRun*) override;
53 
54  bool CheckTouchableInSelectedVolumes(const G4VTouchable* touch);
55  bool StopAfterProcess(const G4Step* aStep);
56 
57  void save(const G4Step* aStep);
58  std::string getSubDetectorName(G4StepPoint* aStepPoint);
59  std::string getPartName(G4StepPoint* aStepPoint);
60 
61  std::shared_ptr<MaterialBudgetData> theData;
62  std::shared_ptr<MaterialBudgetTree> theTree;
63  std::shared_ptr<MaterialBudgetFormat> theHistos;
64  std::shared_ptr<MaterialBudgetTxt> theTxt;
65  std::shared_ptr<TestHistoMgr> theHistoMgr;
66 
68  bool storeDecay;
69  double Ekin;
71 
72  std::vector<G4String> theVolumeList;
73  G4String theProcessToStop;
75 };
76 
77 #endif
Observer
Definition: Observer.h:23
MaterialBudgetAction::theHistos
std::shared_ptr< MaterialBudgetFormat > theHistos
Definition: MaterialBudgetAction.h:63
MaterialBudgetAction::getPartName
std::string getPartName(G4StepPoint *aStepPoint)
Definition: MaterialBudgetAction.cc:284
MaterialBudgetAction::saveToTxt
bool saveToTxt
Definition: MaterialBudgetAction.h:67
MaterialBudgetAction::CheckTouchableInSelectedVolumes
bool CheckTouchableInSelectedVolumes(const G4VTouchable *touch)
Definition: MaterialBudgetAction.cc:324
MaterialBudgetAction::MaterialBudgetAction
MaterialBudgetAction(const edm::ParameterSet &)
Definition: MaterialBudgetAction.cc:32
MaterialBudgetTxt.h
MaterialBudgetAction::theProcessToStop
G4String theProcessToStop
Definition: MaterialBudgetAction.h:73
MaterialBudgetTrackerHistos.h
MaterialBudgetAction::theHistoMgr
std::shared_ptr< TestHistoMgr > theHistoMgr
Definition: MaterialBudgetAction.h:65
EndOfTrack
Definition: EndOfTrack.h:6
MaterialBudgetAction::firstParticle
bool firstParticle
Definition: MaterialBudgetAction.h:70
MaterialBudgetAction::operator=
const MaterialBudgetAction & operator=(const MaterialBudgetAction &)
Observer.h
MaterialBudgetAction::saveToTree
bool saveToTree
Definition: MaterialBudgetAction.h:67
MaterialBudgetAction::theData
std::shared_ptr< MaterialBudgetData > theData
Definition: MaterialBudgetAction.h:61
SimWatcher.h
TestHistoMgr.h
MaterialBudgetAction::theVolumeList
std::vector< G4String > theVolumeList
Definition: MaterialBudgetAction.h:72
MaterialBudgetMtdHistos.h
MaterialBudgetAction::storeDecay
bool storeDecay
Definition: MaterialBudgetAction.h:68
BeginOfTrack
Definition: BeginOfTrack.h:6
EndOfEvent
Definition: EndOfEvent.h:6
MaterialBudgetAction::update
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
Definition: MaterialBudgetAction.cc:147
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MaterialBudgetAction::saveToHistos
bool saveToHistos
Definition: MaterialBudgetAction.h:67
MaterialBudgetAction
Definition: MaterialBudgetAction.h:33
edm::ParameterSet
Definition: ParameterSet.h:47
MaterialBudgetAction::~MaterialBudgetAction
~MaterialBudgetAction() override
Definition: MaterialBudgetAction.cc:144
MaterialBudgetTree.h
MaterialBudgetAction::theHistoList
std::string theHistoList
Definition: MaterialBudgetAction.h:74
MaterialBudgetAction::theTxt
std::shared_ptr< MaterialBudgetTxt > theTxt
Definition: MaterialBudgetAction.h:64
BeginOfEvent
Definition: BeginOfEvent.h:6
BeginOfRun
Definition: BeginOfRun.h:6
EndOfRun
Definition: EndOfRun.h:6
SimWatcher
Definition: SimWatcher.h:27
MaterialBudgetHGCalHistos.h
MaterialBudgetHistos.h
MaterialBudgetAction::save
void save(const G4Step *aStep)
MaterialBudgetEcalHistos.h
MaterialBudgetAction::theTree
std::shared_ptr< MaterialBudgetTree > theTree
Definition: MaterialBudgetAction.h:62
MaterialBudgetAction::getSubDetectorName
std::string getSubDetectorName(G4StepPoint *aStepPoint)
Definition: MaterialBudgetAction.cc:272
ParameterSet.h
MaterialBudgetAction::StopAfterProcess
bool StopAfterProcess(const G4Step *aStep)
Definition: MaterialBudgetAction.cc:334
MaterialBudgetFormat.h
MaterialBudgetAction::Ekin
double Ekin
Definition: MaterialBudgetAction.h:69