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