#include <GflashG4Watcher.h>
|
void | update (const BeginOfEvent *) override |
| This routine will be called when the appropriate signal arrives. More...
|
|
void | update (const EndOfEvent *) override |
| This routine will be called when the appropriate signal arrives. More...
|
|
void | update (const G4Step *) override |
| This routine will be called when the appropriate signal arrives. More...
|
|
Definition at line 22 of file GflashG4Watcher.h.
◆ GflashG4Watcher()
Definition at line 21 of file GflashG4Watcher.cc.
29 TH1::AddDirectory(kTRUE);
31 em_incE =
new TH1F(
"em_incE",
"Incoming energy at Ecal;E (GeV);Number of Events", 500, 0.0, 500.0);
32 em_vtx_rho =
new TH1F(
"em_vtx_rho",
"vertex position;#rho (cm);Number of Events", 100, 0.0, 10.0);
33 em_vtx_z =
new TH1F(
"em_vtx_z",
"vertex position;z (cm);Number of Events", 100, -10.0, 10.0);
35 eb_ssp_rho =
new TH1F(
"eb_ssp_rho",
"Shower starting position;#rho (cm);Number of Events", 200, 0.0, 200.0);
37 "longitudinal hit position;shower depth (cm);Number "
38 "of energy weighted hits",
42 eb_hit_lat =
new TH1F(
"eb_hit_lat",
"lateral hit position;arm (cm);Number of energy weighted hits", 100, 0.0, 5.0);
44 "eb_hit_rz",
"hit position along the shower direction;shower depth (cm);arm (cm)", 400, 0.0, 200.0, 100, 0.0, 5.0);
46 "longitudinal hit position in Sensitive Detector;shower depth "
47 "(cm);Number of energy weighted hits",
52 "lateral hit position in Sensitive Detector;arm "
53 "(cm);Number of energy weighted hits",
58 "hit position along the shower direction in "
59 "Sensitive Detector;shower depth (cm);arm (cm)",
67 ee_ssp_z =
new TH1F(
"ee_ssp_z",
"Shower starting position;z (cm);Number of Events", 800, -400.0, 400.0);
69 "longitudinal hit position;shower depth (cm);Number "
70 "of energy weighted hits",
74 ee_hit_lat =
new TH1F(
"ee_hit_lat",
"lateral hit position;arm (cm);Number of energy weighted hits", 100, 0.0, 5.0);
76 "ee_hit_rz",
"hit position along the shower direction;shower depth (cm);arm (cm)", 800, 0.0, 400.0, 100, 0.0, 5.0);
78 "longitudinal hit position in Sensitive Detector;shower depth "
79 "(cm);Number of energy weighted hits",
84 "lateral hit position in Sensitive Detector;arm "
85 "(cm);Number of energy weighted hits",
90 "hit position along the shower direction in "
91 "Sensitive Detector;shower depth (cm);arm (cm)",
References edm::ParameterSet::getParameter(), AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ ~GflashG4Watcher()
GflashG4Watcher::~GflashG4Watcher |
( |
| ) |
|
|
override |
◆ update() [1/3]
◆ update() [2/3]
void GflashG4Watcher::update |
( |
const EndOfEvent * |
| ) |
|
|
overrideprivatevirtual |
◆ update() [3/3]
void GflashG4Watcher::update |
( |
const G4Step * |
| ) |
|
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const G4Step * >.
Definition at line 128 of file GflashG4Watcher.cc.
129 if (aStep ==
nullptr)
132 double hitEnergy = aStep->GetTotalEnergyDeposit();
134 if (hitEnergy < 1.0
e-6)
142 G4ThreeVector hitPosition = aStep->GetPreStepPoint()->GetPosition();
148 G4VSensitiveDetector *aSensitive = aStep->GetPreStepPoint()->GetSensitiveDetector();
154 eb_hit_rz->Fill(diff_z / cm, diff_r / cm, hitEnergy /
GeV);
164 ee_hit_rz->Fill(diff_z / cm, diff_r / cm, hitEnergy /
GeV);
References funct::abs(), angle(), funct::cos(), change_name::diff, MillePedeFileConverter_cfg::e, GeV, and funct::sin().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
◆ eb_hit_lat
TH1F* GflashG4Watcher::eb_hit_lat |
|
private |
◆ eb_hit_lat_sd
TH1F* GflashG4Watcher::eb_hit_lat_sd |
|
private |
◆ eb_hit_long
TH1F* GflashG4Watcher::eb_hit_long |
|
private |
◆ eb_hit_long_sd
TH1F* GflashG4Watcher::eb_hit_long_sd |
|
private |
◆ eb_hit_rz
TH2F* GflashG4Watcher::eb_hit_rz |
|
private |
◆ eb_hit_rz_sd
TH2F* GflashG4Watcher::eb_hit_rz_sd |
|
private |
◆ eb_ssp_rho
TH1F* GflashG4Watcher::eb_ssp_rho |
|
private |
◆ ee_hit_lat
TH1F* GflashG4Watcher::ee_hit_lat |
|
private |
◆ ee_hit_lat_sd
TH1F* GflashG4Watcher::ee_hit_lat_sd |
|
private |
◆ ee_hit_long
TH1F* GflashG4Watcher::ee_hit_long |
|
private |
◆ ee_hit_long_sd
TH1F* GflashG4Watcher::ee_hit_long_sd |
|
private |
◆ ee_hit_rz
TH2F* GflashG4Watcher::ee_hit_rz |
|
private |
◆ ee_hit_rz_sd
TH2F* GflashG4Watcher::ee_hit_rz_sd |
|
private |
◆ ee_ssp_z
TH1F* GflashG4Watcher::ee_ssp_z |
|
private |
◆ em_incE
TH1F* GflashG4Watcher::em_incE |
|
private |
◆ em_vtx_rho
TH1F* GflashG4Watcher::em_vtx_rho |
|
private |
◆ em_vtx_z
TH1F* GflashG4Watcher::em_vtx_z |
|
private |
◆ histFile_
TFile* GflashG4Watcher::histFile_ |
|
private |
◆ histFileName_
std::string GflashG4Watcher::histFileName_ |
|
private |
◆ inc_direction
G4ThreeVector GflashG4Watcher::inc_direction |
|
private |
◆ inc_energy
G4double GflashG4Watcher::inc_energy |
|
private |
◆ inc_flag
G4bool GflashG4Watcher::inc_flag |
|
private |
◆ inc_position
G4ThreeVector GflashG4Watcher::inc_position |
|
private |
◆ inc_vertex
G4ThreeVector GflashG4Watcher::inc_vertex |
|
private |
◆ out_energy
G4double GflashG4Watcher::out_energy |
|
private |
◆ recoEnergyScaleEB_
double GflashG4Watcher::recoEnergyScaleEB_ |
|
private |
◆ recoEnergyScaleEE_
double GflashG4Watcher::recoEnergyScaleEE_ |
|
private |