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
~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
Definition: StallMonitor.cc:94
void getCastorBranchData(const CaloG4HitCollection *hc)
std::string eventNtFileName