Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
11
#include <string>
12
13
//
14
// class decleration
15
//
16
17
class
BeginOfEvent
;
18
class
EndOfEvent
;
19
class
G4Step;
20
21
22
class
GflashG4Watcher
:
public
SimWatcher
,
23
public
Observer
<const BeginOfEvent*>,
24
public
Observer
<const EndOfEvent*>,
25
public
Observer
<const G4Step*> {
26
27
public
:
28
GflashG4Watcher
(
const
edm::ParameterSet
&
p
);
29
~GflashG4Watcher
();
30
31
private
:
32
33
G4bool
inc_flag
;
34
G4double
inc_energy
;
35
G4double
out_energy
;
36
G4ThreeVector
inc_vertex
;
37
G4ThreeVector
inc_direction
;
38
G4ThreeVector
inc_position
;
39
40
void
update
(
const
BeginOfEvent
* );
41
void
update
(
const
EndOfEvent
* );
42
void
update
(
const
G4Step* );
43
44
// histograms for GflashG4Watcher
45
46
std::string
histFileName_
;
47
double
recoEnergyScaleEB_
;
48
double
recoEnergyScaleEE_
;
49
50
TFile*
histFile_
;
51
52
TH1F*
em_incE
;
53
TH1F*
em_vtx_rho
;
54
TH1F*
em_vtx_z
;
55
56
TH1F*
eb_ssp_rho
;
57
TH1F*
eb_hit_long
;
58
TH1F*
eb_hit_lat
;
59
TH2F*
eb_hit_rz
;
60
TH1F*
eb_hit_long_sd
;
61
TH1F*
eb_hit_lat_sd
;
62
TH2F*
eb_hit_rz_sd
;
63
64
TH1F*
ee_ssp_z
;
65
TH1F*
ee_hit_long
;
66
TH1F*
ee_hit_lat
;
67
TH2F*
ee_hit_rz
;
68
TH1F*
ee_hit_long_sd
;
69
TH1F*
ee_hit_lat_sd
;
70
TH2F*
ee_hit_rz_sd
;
71
72
};
73
GflashG4Watcher::inc_flag
G4bool inc_flag
Definition:
GflashG4Watcher.h:33
GflashG4Watcher::em_vtx_z
TH1F * em_vtx_z
Definition:
GflashG4Watcher.h:54
GflashG4Watcher::update
void update(const BeginOfEvent *)
This routine will be called when the appropriate signal arrives.
Definition:
GflashG4Watcher.cc:64
GflashG4Watcher::inc_position
G4ThreeVector inc_position
Definition:
GflashG4Watcher.h:38
GflashG4Watcher::eb_hit_long
TH1F * eb_hit_long
Definition:
GflashG4Watcher.h:57
GflashG4Watcher::ee_ssp_z
TH1F * ee_ssp_z
Definition:
GflashG4Watcher.h:64
GflashG4Watcher::inc_direction
G4ThreeVector inc_direction
Definition:
GflashG4Watcher.h:37
GflashG4Watcher::inc_energy
G4double inc_energy
Definition:
GflashG4Watcher.h:34
GflashG4Watcher::eb_hit_rz
TH2F * eb_hit_rz
Definition:
GflashG4Watcher.h:59
EndOfEvent
Definition:
EndOfEvent.h:6
GflashG4Watcher::em_vtx_rho
TH1F * em_vtx_rho
Definition:
GflashG4Watcher.h:53
Observer.h
GflashG4Watcher::eb_hit_lat_sd
TH1F * eb_hit_lat_sd
Definition:
GflashG4Watcher.h:61
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParameterSet.h
GflashG4Watcher::ee_hit_long
TH1F * ee_hit_long
Definition:
GflashG4Watcher.h:65
GflashG4Watcher::eb_hit_lat
TH1F * eb_hit_lat
Definition:
GflashG4Watcher.h:58
GflashG4Watcher::GflashG4Watcher
GflashG4Watcher(const edm::ParameterSet &p)
Definition:
GflashG4Watcher.cc:21
GflashG4Watcher::recoEnergyScaleEE_
double recoEnergyScaleEE_
Definition:
GflashG4Watcher.h:48
GflashG4Watcher::ee_hit_rz_sd
TH2F * ee_hit_rz_sd
Definition:
GflashG4Watcher.h:70
SimWatcher
Definition:
SimWatcher.h:32
GflashG4Watcher::em_incE
TH1F * em_incE
Definition:
GflashG4Watcher.h:52
GflashG4Watcher::eb_hit_rz_sd
TH2F * eb_hit_rz_sd
Definition:
GflashG4Watcher.h:62
GflashG4Watcher::ee_hit_long_sd
TH1F * ee_hit_long_sd
Definition:
GflashG4Watcher.h:68
GflashG4Watcher
Definition:
GflashG4Watcher.h:22
Observer
Definition:
Observer.h:24
GflashG4Watcher::histFileName_
std::string histFileName_
Definition:
GflashG4Watcher.h:46
BeginOfEvent
Definition:
BeginOfEvent.h:6
GflashG4Watcher::ee_hit_lat
TH1F * ee_hit_lat
Definition:
GflashG4Watcher.h:66
GflashG4Watcher::eb_hit_long_sd
TH1F * eb_hit_long_sd
Definition:
GflashG4Watcher.h:60
GflashG4Watcher::eb_ssp_rho
TH1F * eb_ssp_rho
Definition:
GflashG4Watcher.h:56
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
GflashG4Watcher::inc_vertex
G4ThreeVector inc_vertex
Definition:
GflashG4Watcher.h:36
SimWatcher.h
GflashG4Watcher::out_energy
G4double out_energy
Definition:
GflashG4Watcher.h:35
edm::ParameterSet
Definition:
ParameterSet.h:35
GflashG4Watcher::ee_hit_rz
TH2F * ee_hit_rz
Definition:
GflashG4Watcher.h:67
GflashG4Watcher::recoEnergyScaleEB_
double recoEnergyScaleEB_
Definition:
GflashG4Watcher.h:47
GflashG4Watcher::~GflashG4Watcher
~GflashG4Watcher()
Definition:
GflashG4Watcher.cc:57
GflashG4Watcher::ee_hit_lat_sd
TH1F * ee_hit_lat_sd
Definition:
GflashG4Watcher.h:69
GflashG4Watcher::histFile_
TFile * histFile_
Definition:
GflashG4Watcher.h:50
Generated for CMSSW Reference Manual by
1.8.5