CMS 3D CMS Logo

GflashG4Watcher.h
Go to the documentation of this file.
4 
5 #include "G4ThreeVector.hh"
6 #include "globals.hh"
7 #include <TFile.h>
8 #include <TH1F.h>
9 #include <TH2F.h>
10 #include <TProfile.h>
11 #include <TTree.h>
12 #include <string>
13 
14 //
15 // class decleration
16 //
17 
18 class BeginOfEvent;
19 class EndOfEvent;
20 class G4Step;
21 
22 class GflashG4Watcher : public SimWatcher,
23  public Observer<const BeginOfEvent *>,
24  public Observer<const EndOfEvent *>,
25  public Observer<const G4Step *> {
26 public:
28  ~GflashG4Watcher() override;
29 
30 private:
31  G4bool inc_flag;
32  G4double inc_energy;
33  G4double out_energy;
34  G4ThreeVector inc_vertex;
35  G4ThreeVector inc_direction;
36  G4ThreeVector inc_position;
37 
38  void update(const BeginOfEvent *) override;
39  void update(const EndOfEvent *) override;
40  void update(const G4Step *) override;
41 
42  // histograms for GflashG4Watcher
43 
47 
48  TFile *histFile_;
49 
50  TH1F *em_incE;
51  TH1F *em_vtx_rho;
52  TH1F *em_vtx_z;
53 
54  TH1F *eb_ssp_rho;
55  TH1F *eb_hit_long;
56  TH1F *eb_hit_lat;
57  TH2F *eb_hit_rz;
60  TH2F *eb_hit_rz_sd;
61 
62  TH1F *ee_ssp_z;
63  TH1F *ee_hit_long;
64  TH1F *ee_hit_lat;
65  TH2F *ee_hit_rz;
68  TH2F *ee_hit_rz_sd;
69 };
GflashG4Watcher::eb_hit_rz_sd
TH2F * eb_hit_rz_sd
Definition: GflashG4Watcher.h:60
GflashG4Watcher::eb_ssp_rho
TH1F * eb_ssp_rho
Definition: GflashG4Watcher.h:54
GflashG4Watcher::recoEnergyScaleEE_
double recoEnergyScaleEE_
Definition: GflashG4Watcher.h:46
Observer
Definition: Observer.h:23
GflashG4Watcher::ee_ssp_z
TH1F * ee_ssp_z
Definition: GflashG4Watcher.h:62
GflashG4Watcher::eb_hit_lat
TH1F * eb_hit_lat
Definition: GflashG4Watcher.h:56
GflashG4Watcher::eb_hit_long_sd
TH1F * eb_hit_long_sd
Definition: GflashG4Watcher.h:58
GflashG4Watcher::histFile_
TFile * histFile_
Definition: GflashG4Watcher.h:48
GflashG4Watcher::em_vtx_z
TH1F * em_vtx_z
Definition: GflashG4Watcher.h:52
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
GflashG4Watcher::inc_direction
G4ThreeVector inc_direction
Definition: GflashG4Watcher.h:35
GflashG4Watcher::eb_hit_rz
TH2F * eb_hit_rz
Definition: GflashG4Watcher.h:57
GflashG4Watcher::ee_hit_long
TH1F * ee_hit_long
Definition: GflashG4Watcher.h:63
Observer.h
GflashG4Watcher::inc_flag
G4bool inc_flag
Definition: GflashG4Watcher.h:31
GflashG4Watcher::inc_energy
G4double inc_energy
Definition: GflashG4Watcher.h:32
GflashG4Watcher::em_vtx_rho
TH1F * em_vtx_rho
Definition: GflashG4Watcher.h:51
GflashG4Watcher::em_incE
TH1F * em_incE
Definition: GflashG4Watcher.h:50
GflashG4Watcher::recoEnergyScaleEB_
double recoEnergyScaleEB_
Definition: GflashG4Watcher.h:45
GflashG4Watcher::inc_vertex
G4ThreeVector inc_vertex
Definition: GflashG4Watcher.h:34
GflashG4Watcher::ee_hit_rz_sd
TH2F * ee_hit_rz_sd
Definition: GflashG4Watcher.h:68
SimWatcher.h
GflashG4Watcher::ee_hit_rz
TH2F * ee_hit_rz
Definition: GflashG4Watcher.h:65
GflashG4Watcher::eb_hit_long
TH1F * eb_hit_long
Definition: GflashG4Watcher.h:55
GflashG4Watcher::GflashG4Watcher
GflashG4Watcher(const edm::ParameterSet &p)
Definition: GflashG4Watcher.cc:21
EndOfEvent
Definition: EndOfEvent.h:6
GflashG4Watcher::ee_hit_long_sd
TH1F * ee_hit_long_sd
Definition: GflashG4Watcher.h:66
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GflashG4Watcher::out_energy
G4double out_energy
Definition: GflashG4Watcher.h:33
GflashG4Watcher::histFileName_
std::string histFileName_
Definition: GflashG4Watcher.h:44
edm::ParameterSet
Definition: ParameterSet.h:47
GflashG4Watcher::ee_hit_lat
TH1F * ee_hit_lat
Definition: GflashG4Watcher.h:64
BeginOfEvent
Definition: BeginOfEvent.h:6
SimWatcher
Definition: SimWatcher.h:27
GflashG4Watcher
Definition: GflashG4Watcher.h:22
GflashG4Watcher::eb_hit_lat_sd
TH1F * eb_hit_lat_sd
Definition: GflashG4Watcher.h:59
GflashG4Watcher::inc_position
G4ThreeVector inc_position
Definition: GflashG4Watcher.h:36
GflashG4Watcher::~GflashG4Watcher
~GflashG4Watcher() override
Definition: GflashG4Watcher.cc:100
GflashG4Watcher::ee_hit_lat_sd
TH1F * ee_hit_lat_sd
Definition: GflashG4Watcher.h:67
ParameterSet.h
GflashG4Watcher::update
void update(const BeginOfEvent *) override
This routine will be called when the appropriate signal arrives.
Definition: GflashG4Watcher.cc:106