CMS 3D CMS Logo

TrackingMaterialProducer.h
Go to the documentation of this file.
1 #ifndef TrackingMaterialProducer_h
2 #define TrackingMaterialProducer_h
3 #include <string>
4 #include <vector>
5 
8 
9 #include "G4LogicalVolume.hh"
10 
12 
13 #include "TProfile.h"
14 #include "TFile.h"
15 
16 class BeginOfJob;
17 class EndOfJob;
18 class BeginOfEvent;
19 class BeginOfTrack;
20 class EndOfTrack;
21 class G4Step;
22 
23 class G4StepPoint;
24 class G4VTouchable;
25 class G4VPhysicalVolume;
26 class G4LogicalVolume;
27 class G4TouchableHistory;
28 namespace edm {class ParameterSet;}
29 
31  public Observer<const BeginOfJob*>,
32  public Observer<const EndOfJob*>,
33  public Observer<const BeginOfEvent*>,
34  public Observer<const BeginOfTrack*>,
35  public Observer<const G4Step*>,
36  public Observer<const EndOfTrack*>
37 {
38 public:
40  ~TrackingMaterialProducer() override;
41 
42 private:
43  void update(const BeginOfJob*) override;
44  void update(const BeginOfEvent*) override;
45  void update(const BeginOfTrack*) override;
46  void update(const G4Step*) override;
47  void update(const EndOfTrack*) override;
48  void update(const EndOfJob*) override;
49  void produce(edm::Event&, const edm::EventSetup&) override;
50 
51  bool isSelected( const G4VTouchable* touch );
52  bool isSelectedFast( const G4TouchableHistory* touch );
53 
54 private:
56  std::vector<std::string> m_selectedNames;
57  std::vector<const G4LogicalVolume *> m_selectedVolumes;
59  std::vector<MaterialAccountingTrack>* m_tracks;
60  TFile * output_file_;
61  TProfile * radLen_vs_eta_;
62 };
63 
64 #endif // TrackingMaterialProducer_h
MaterialAccountingTrack m_track
std::vector< MaterialAccountingTrack > * m_tracks
std::vector< const G4LogicalVolume * > m_selectedVolumes
std::vector< std::string > m_selectedNames
HLT enums.
#define update(a, b)