CMS 3D CMS Logo

CastorTestAnalysis.h
Go to the documentation of this file.
1 // File: CastorTestAnalysis.h
3 // Date: 02.07 Panos Katsas
4 // Description: simulation analysis steering code
5 //
7 #undef debug
8 #ifndef CastorTestAnalysis_h
9 #define CastorTestAnalysis_h
10 
16 
17 #include "G4SDManager.hh"
18 #include "G4Step.hh"
19 #include "G4Track.hh"
20 #include "G4Event.hh"
21 #include "G4PrimaryVertex.hh"
22 #include "G4VProcess.hh"
23 #include "G4HCofThisEvent.hh"
24 #include "G4UserEventAction.hh"
25 #include "CLHEP/Units/GlobalSystemOfUnits.h"
26 #include "CLHEP/Units/GlobalPhysicalConstants.h"
27 
33 
34 #include <cassert>
35 #include <iostream>
36 #include <string>
37 #include <map>
38 #include <cmath>
39 #include <memory>
40 #include <vector>
41 
42 #include <CLHEP/Random/Randomize.h>
43 
44 #include "TROOT.h"
45 #include "TFile.h"
46 #include "TH1.h"
47 #include "TH2.h"
48 #include "TProfile.h"
49 #include "TNtuple.h"
50 #include "TRandom.h"
51 #include "TLorentzVector.h"
52 #include "TUnixSystem.h"
53 #include "TSystem.h"
54 #include "TMath.h"
55 #include "TF1.h"
56 
57 class G4Step;
58 class BeginOfJob;
59 class BeginOfRun;
60 class EndOfRun;
61 class BeginOfEvent;
62 class EndOfEvent;
64 
66  public Observer<const BeginOfJob *>,
67  public Observer<const BeginOfRun *>,
68  public Observer<const EndOfRun *>,
69  public Observer<const BeginOfEvent *>,
70  public Observer<const EndOfEvent *>,
71  public Observer<const G4Step *> {
72 public:
74  ~CastorTestAnalysis() override;
75 
76 private:
77  // observer classes
78  void update(const BeginOfJob *run) override;
79  void update(const BeginOfRun *run) override;
80  void update(const EndOfRun *run) override;
81  void update(const BeginOfEvent *evt) override;
82  void update(const EndOfEvent *evt) override;
83  void update(const G4Step *step) override;
84 
85 private:
87  void Finish();
88 
89  int verbosity;
94 
97 
98  TNtuple *castorstepntuple;
100 
102 
106 
107  Float_t castorsteparray[14];
108  Float_t castoreventarray[11];
109 };
110 
111 #endif // CastorTestAnalysis_h
Observer
Definition: Observer.h:23
BeginOfJob.h
CastorTestAnalysis::eventGlobalHit
int eventGlobalHit
Definition: CastorTestAnalysis.h:105
step
step
Definition: StallMonitor.cc:94
CaloG4HitCollection.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CastorTestAnalysis::CastorTestAnalysis
CastorTestAnalysis(const edm::ParameterSet &p)
Definition: CastorTestAnalysis.cc:57
CastorTestAnalysis::eventIndex
int eventIndex
Definition: CastorTestAnalysis.h:103
EndOfEvent.h
Observer.h
CastorTestAnalysis::theCastorNumScheme
CastorNumberingScheme * theCastorNumScheme
Definition: CastorTestAnalysis.h:101
BeginOfRun.h
SimWatcher.h
CastorTestAnalysis
Definition: CastorTestAnalysis.h:65
CastorTestAnalysis::doNTcastorstep
int doNTcastorstep
Definition: CastorTestAnalysis.h:90
CastorTestAnalysis::getCastorBranchData
void getCastorBranchData(const CaloG4HitCollection *hc)
Definition: CastorTestAnalysis.cc:307
CastorTestAnalysis::eventNtFileName
std::string eventNtFileName
Definition: CastorTestAnalysis.h:93
BeginOfJob
Definition: BeginOfJob.h:8
CastorTestAnalysis::castorOutputStepFile
TFile * castorOutputStepFile
Definition: CastorTestAnalysis.h:96
EndOfEvent
Definition: EndOfEvent.h:6
CastorTestAnalysis::castoreventarray
Float_t castoreventarray[11]
Definition: CastorTestAnalysis.h:108
CastorTestAnalysis::stepNtFileName
std::string stepNtFileName
Definition: CastorTestAnalysis.h:92
CastorTestAnalysis::stepIndex
int stepIndex
Definition: CastorTestAnalysis.h:104
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CastorTestAnalysis::castorstepntuple
TNtuple * castorstepntuple
Definition: CastorTestAnalysis.h:98
CastorTestAnalysis::castorsteparray
Float_t castorsteparray[14]
Definition: CastorTestAnalysis.h:107
edm::ParameterSet
Definition: ParameterSet.h:47
CastorTestAnalysis::Finish
void Finish()
Definition: CastorTestAnalysis.cc:362
CastorNumberingScheme
Definition: CastorNumberingScheme.h:30
CastorTestAnalysis::~CastorTestAnalysis
~CastorTestAnalysis() override
Definition: CastorTestAnalysis.cc:89
CastorTestAnalysis::castoreventntuple
TNtuple * castoreventntuple
Definition: CastorTestAnalysis.h:99
BeginOfEvent.h
BeginOfEvent
Definition: BeginOfEvent.h:6
BeginOfRun
Definition: BeginOfRun.h:6
EndOfRun
Definition: EndOfRun.h:6
SimWatcher
Definition: SimWatcher.h:27
EndOfRun.h
CastorTestAnalysis::verbosity
int verbosity
Definition: CastorTestAnalysis.h:89
CastorTestAnalysis::doNTcastorevent
int doNTcastorevent
Definition: CastorTestAnalysis.h:91
writedatasetfile.run
run
Definition: writedatasetfile.py:27
CastorTestAnalysis::castorOutputEventFile
TFile * castorOutputEventFile
Definition: CastorTestAnalysis.h:95
CaloG4HitCollection
G4THitsCollection< CaloG4Hit > CaloG4HitCollection
Definition: CaloG4HitCollection.h:11
ParameterSet.h
CaloG4Hit.h
CastorTestAnalysis::update
void update(const BeginOfJob *run) override
This routine will be called when the appropriate signal arrives.
Definition: CastorTestAnalysis.cc:101