CMS 3D CMS Logo

FP420SD.h
Go to the documentation of this file.
1 //
2 #ifndef FP420_FP420SD_h
3 #define FP420_FP420SD_h
4 //
5 
8 
12 
15 
17 
21 
24 
25 #include "G4Step.hh"
26 #include "G4StepPoint.hh"
27 #include "G4Track.hh"
28 #include "G4VPhysicalVolume.hh"
29 
30 #include <string>
31 
32 class TrackingSlaveSD;
33 //AZ:
34 class FrameRotation;
35 class TrackInformation;
36 class SimTrackManager;
37 class TrackingSlaveSD;
38 class UpdatablePSimHit;
41 
42 //-------------------------------------------------------------------
43 
45  public Observer<const BeginOfRun*>,
46  public Observer<const BeginOfEvent*>,
47  public Observer<const EndOfEvent*> {
48 public:
50 
51  ~FP420SD() override;
52 
53  bool ProcessHits(G4Step*, G4TouchableHistory*) override;
54  uint32_t setDetUnitId(const G4Step*) override;
55 
56  void Initialize(G4HCofThisEvent* HCE) override;
57  void EndOfEvent(G4HCofThisEvent* eventHC) override;
58  void clear() override;
59  void DrawAll() override;
60  void PrintAll() override;
61 
62  virtual double getEnergyDeposit(G4Step* step);
63  void fillHits(edm::PSimHitContainer&, const std::string&) override;
64  void clearHits() override;
65 
66 private:
67  void update(const BeginOfRun*) override;
68  void update(const BeginOfEvent*) override;
69  void update(const ::EndOfEvent*) override;
70 
71  G4ThreeVector SetToLocal(const G4ThreeVector& global);
72  G4ThreeVector SetToLocalExit(const G4ThreeVector& globalPoint);
73  void GetStepInfo(G4Step* aStep);
74  G4bool HitExists();
75  void CreateNewHit();
76  void UpdateHit();
77  void StoreHit(FP420G4Hit*);
78  void ResetForNewPrimary();
79  void Summarize();
80 
81 private:
82  //AZ:
85 
86  G4ThreeVector entrancePoint, exitPoint;
87  G4ThreeVector theEntryPoint;
88  G4ThreeVector theExitPoint;
89 
91 
92  G4int hcID;
95 
96  G4int tsID;
98  G4Track* theTrack;
99  G4VPhysicalVolume* currentPV;
100  // unsigned int unitID, previousUnitID;
102  G4int tSliceID;
103  unsigned int primaryID, primID;
104 
105  G4double tSlice;
106 
107  G4StepPoint* preStepPoint;
108  G4StepPoint* postStepPoint;
109  float edeposit;
110 
111  G4ThreeVector hitPoint;
112  G4ThreeVector hitPointExit;
113  G4ThreeVector hitPointLocal;
114  G4ThreeVector hitPointLocalExit;
115  float Pabs;
116  float Tof;
117  float Eloss;
119 
121  float PhiAtEntry;
122 
123  int ParentId;
124  float Vx, Vy, Vz;
125  float X, Y, Z;
126 
127  //
128  // Hist
129  //
130  int eventno;
131 
132 protected:
134  G4int emPDG;
135  G4int epPDG;
136  G4int gammaPDG;
137 };
138 
139 #endif // FP420SD_h
FP420SD::PhiAtEntry
float PhiAtEntry
Definition: FP420SD.h:121
FP420SD::hitPointLocalExit
G4ThreeVector hitPointLocalExit
Definition: FP420SD.h:114
FP420SD::DrawAll
void DrawAll() override
Definition: FP420SD.cc:404
SimTrackManager
Definition: SimTrackManager.h:35
FP420SD::primaryID
unsigned int primaryID
Definition: FP420SD.h:103
FP420SD::X
float X
Definition: FP420SD.h:125
Observer
Definition: Observer.h:23
FP420SD::Y
float Y
Definition: FP420SD.h:125
BeginOfJob.h
FP420G4HitCollection.h
step
step
Definition: StallMonitor.cc:94
FP420SD::Vy
float Vy
Definition: FP420SD.h:124
SensitiveTkDetector
Definition: SensitiveTkDetector.h:8
FP420G4HitCollection
G4THitsCollection< FP420G4Hit > FP420G4HitCollection
Definition: FP420G4HitCollection.h:14
FP420SD::theEntryPoint
G4ThreeVector theEntryPoint
Definition: FP420SD.h:87
FP420SD::Tof
float Tof
Definition: FP420SD.h:116
FP420SD::postStepPoint
G4StepPoint * postStepPoint
Definition: FP420SD.h:108
FP420SD::tsID
G4int tsID
Definition: FP420SD.h:96
FP420NumberingScheme.h
FP420SD::currentHit
FP420G4Hit * currentHit
Definition: FP420SD.h:97
FP420SD::hitPointExit
G4ThreeVector hitPointExit
Definition: FP420SD.h:112
FP420SD::hitPoint
G4ThreeVector hitPoint
Definition: FP420SD.h:111
EndOfEvent.h
FP420SD::Summarize
void Summarize()
Definition: FP420SD.cc:400
FP420SD::hitPointLocal
G4ThreeVector hitPointLocal
Definition: FP420SD.h:113
FP420SD::Eloss
float Eloss
Definition: FP420SD.h:117
FP420SD::HitExists
G4bool HitExists()
Definition: FP420SD.cc:175
FP420SD::PrintAll
void PrintAll() override
Definition: FP420SD.cc:406
G4ProcessTypeEnumerator
Definition: G4ProcessTypeEnumerator.h:6
FP420SD::edeposit
float edeposit
Definition: FP420SD.h:109
Observer.h
SensitiveTkDetector.h
BeginOfTrack.h
FP420SD::slave
TrackingSlaveSD * slave
Definition: FP420SD.h:83
FrameRotation
Definition: FrameRotation.h:8
BeginOfRun.h
FP420SD::GetStepInfo
void GetStepInfo(G4Step *aStep)
Definition: FP420SD.cc:126
G4TrackToParticleID
Definition: G4TrackToParticleID.h:6
FP420SD::getEnergyDeposit
virtual double getEnergyDeposit(G4Step *step)
Definition: FP420SD.cc:87
FP420SD::primID
unsigned int primID
Definition: FP420SD.h:103
FP420SD::update
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
Definition: FP420SD.cc:431
SensitiveDetectorCatalog
Definition: SensitiveDetectorCatalog.h:10
FP420SD::numberingScheme
FP420NumberingScheme * numberingScheme
Definition: FP420SD.h:84
FP420SD::FP420SD
FP420SD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: FP420SD.cc:46
FP420SD::entrancePoint
G4ThreeVector entrancePoint
Definition: FP420SD.h:86
FP420SD::currentPV
G4VPhysicalVolume * currentPV
Definition: FP420SD.h:99
edm::ParameterSet
Definition: ParameterSet.h:47
FP420SD::ResetForNewPrimary
void ResetForNewPrimary()
Definition: FP420SD.cc:217
FP420SD::theHC
FP420G4HitCollection * theHC
Definition: FP420SD.h:93
FP420SD::theTrack
G4Track * theTrack
Definition: FP420SD.h:98
FP420SD::fillHits
void fillHits(edm::PSimHitContainer &, const std::string &) override
Definition: FP420SD.cc:419
UpdatablePSimHit
Definition: UpdatablePSimHit.h:12
FP420SD::Initialize
void Initialize(G4HCofThisEvent *HCE) override
Definition: FP420SD.cc:89
BeginOfEvent.h
TrackInformation
Definition: TrackInformation.h:12
FP420SD::~FP420SD
~FP420SD() override
Definition: FP420SD.cc:82
FP420SD::epPDG
G4int epPDG
Definition: FP420SD.h:135
TrackingSlaveSD
Definition: TrackingSlaveSD.h:11
FP420SD::exitPoint
G4ThreeVector exitPoint
Definition: FP420SD.h:86
BeginOfEvent
Definition: BeginOfEvent.h:6
BeginOfRun
Definition: BeginOfRun.h:6
FP420SD::tSlice
G4double tSlice
Definition: FP420SD.h:105
FP420SD::ParticleType
short ParticleType
Definition: FP420SD.h:118
FP420SD::StoreHit
void StoreHit(FP420G4Hit *)
Definition: FP420SD.cc:223
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FP420SD::SetToLocal
G4ThreeVector SetToLocal(const G4ThreeVector &global)
Definition: FP420SD.cc:314
FP420SD::clearHits
void clearHits() override
Definition: FP420SD.cc:441
FP420SD::edepositHAD
float edepositHAD
Definition: FP420SD.h:133
FP420SD::EndOfEvent
void EndOfEvent(G4HCofThisEvent *eventHC) override
Definition: FP420SD.cc:326
FP420SD::incidentEnergy
float incidentEnergy
Definition: FP420SD.h:90
FP420SD::Vz
float Vz
Definition: FP420SD.h:124
FP420G4Hit
Definition: FP420G4Hit.h:18
FP420SD::gammaPDG
G4int gammaPDG
Definition: FP420SD.h:136
FP420SD::clear
void clear() override
Definition: FP420SD.cc:402
FP420SD::preStepPoint
G4StepPoint * preStepPoint
Definition: FP420SD.h:107
FP420SD::emPDG
G4int emPDG
Definition: FP420SD.h:134
Frameworkfwd.h
FP420SD::CreateNewHit
void CreateNewHit()
Definition: FP420SD.cc:233
FP420SD::unitID
uint32_t unitID
Definition: FP420SD.h:101
LocalPoint.h
FP420SD::theManager
const SimTrackManager * theManager
Definition: FP420SD.h:94
FP420SD::SetToLocalExit
G4ThreeVector SetToLocalExit(const G4ThreeVector &globalPoint)
Definition: FP420SD.cc:320
FP420SD::tSliceID
G4int tSliceID
Definition: FP420SD.h:102
FP420SD::ProcessHits
bool ProcessHits(G4Step *, G4TouchableHistory *) override
Definition: FP420SD.cc:106
FP420SD::hcID
G4int hcID
Definition: FP420SD.h:92
ParameterSetfwd.h
FP420SD::ThetaAtEntry
float ThetaAtEntry
Definition: FP420SD.h:120
FP420G4Hit.h
FP420SD::ParentId
int ParentId
Definition: FP420SD.h:123
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
FP420SD
Definition: FP420SD.h:44
FP420SD::previousUnitID
uint32_t previousUnitID
Definition: FP420SD.h:101
FP420SD::Vx
float Vx
Definition: FP420SD.h:124
FP420SD::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition: FP420SD.cc:171
FP420SD::eventno
int eventno
Definition: FP420SD.h:130
FP420SD::Pabs
float Pabs
Definition: FP420SD.h:115
FP420SD::Z
float Z
Definition: FP420SD.h:125
FP420NumberingScheme
Definition: FP420NumberingScheme.h:15
FP420SD::theExitPoint
G4ThreeVector theExitPoint
Definition: FP420SD.h:88
FP420SD::UpdateHit
void UpdateHit()
Definition: FP420SD.cc:293
FP420SD::edepositEM
float edepositEM
Definition: FP420SD.h:133