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 
58 class G4Step;
59 class BeginOfJob;
60 class BeginOfRun;
61 class EndOfRun;
62 class BeginOfEvent;
63 class EndOfEvent;
65 
67  public Observer<const BeginOfJob *>,
68  public Observer<const BeginOfRun *>,
69  public Observer<const EndOfRun *>,
70  public Observer<const BeginOfEvent *>,
71  public Observer<const EndOfEvent *>,
72  public Observer<const G4Step *> {
73 
74 public:
76  ~CastorTestAnalysis() override;
77 
78 private:
79  // observer classes
80  void update(const BeginOfJob * run) override;
81  void update(const BeginOfRun * run) override;
82  void update(const EndOfRun * run) override;
83  void update(const BeginOfEvent * evt) override;
84  void update(const EndOfEvent * evt) override;
85  void update(const G4Step * step) override;
86 
87 private:
88 
90  void Finish();
91 
92  int verbosity;
97 
100 
103 
105 
109 
110  Float_t castorsteparray[14];
111  Float_t castoreventarray[11];
112 
113 };
114 
115 #endif // CastorTestAnalysis_h
~CastorTestAnalysis() override
Float_t castoreventarray[11]
CastorNumberingScheme * theCastorNumScheme
void update(const BeginOfJob *run) override
This routine will be called when the appropriate signal arrives.
CastorTestAnalysis(const edm::ParameterSet &p)
std::string stepNtFileName
G4THitsCollection< CaloG4Hit > CaloG4HitCollection
susybsm::HSCParticleCollection hc
Definition: classes.h:25
step
void getCastorBranchData(const CaloG4HitCollection *hc)
std::string eventNtFileName