CMS 3D CMS Logo

PrintSensitive.h
Go to the documentation of this file.
1 #ifndef SimG4Core_PrintSensitive_H
2 #define SimG4Core_PrintSensitive_H
3 
7 
8 #include "G4NavigationHistory.hh"
9 
10 #include <iostream>
11 #include <string>
12 
13 class BeginOfRun;
14 class G4VPhysicalVolume;
15 
16 class PrintSensitive : public SimWatcher, public Observer<const BeginOfRun *> {
17 public:
19  ~PrintSensitive() override;
20 
21 private:
22  void update(const BeginOfRun *run) override;
23  void dumpTouch(G4VPhysicalVolume *pv, unsigned int leafDepth, bool printIt, std::ostream &out = std::cout);
24  G4VPhysicalVolume *getTopPV();
25 
26 private:
28  int nchar;
29  G4NavigationHistory fHistory;
30 };
31 
32 #endif
std::string name
G4NavigationHistory fHistory
PrintSensitive(edm::ParameterSet const &p)
void update(const BeginOfRun *run) override
This routine will be called when the appropriate signal arrives.
G4VPhysicalVolume * getTopPV()
def pv(vc)
Definition: MetAnalyzer.py:7
void dumpTouch(G4VPhysicalVolume *pv, unsigned int leafDepth, bool printIt, std::ostream &out=std::cout)
~PrintSensitive() override