CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
31 
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;
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 
73 public:
75  virtual ~CastorTestAnalysis();
76 
77 private:
78  // observer classes
79  void update(const BeginOfJob * run);
80  void update(const BeginOfRun * run);
81  void update(const EndOfRun * run);
82  void update(const BeginOfEvent * evt);
83  void update(const EndOfEvent * evt);
84  void update(const G4Step * step);
85 
86 private:
87 
89  void Finish();
90 
91  int verbosity;
96 
99 
102 
104 
108 
109  Float_t castorsteparray[14];
110  Float_t castoreventarray[11];
111 
112 };
113 
114 #endif // CastorTestAnalysis_h
Float_t castoreventarray[11]
CastorNumberingScheme * theCastorNumScheme
CastorTestAnalysis(const edm::ParameterSet &p)
std::string stepNtFileName
G4THitsCollection< CaloG4Hit > CaloG4HitCollection
void update(const BeginOfJob *run)
This routine will be called when the appropriate signal arrives.
void getCastorBranchData(const CaloG4HitCollection *hc)
std::string eventNtFileName