CMS 3D CMS Logo

PPSDiamondSD.h
Go to the documentation of this file.
1 //Author: Seyed Mohsen Etesami
3 // setesami@cern.ch
4 // 2016 Nov
6 
7 #ifndef PPS_PPSDiamondSD_h
8 #define PPS_PPSDiamondSD_h
9 
15 
20 
23 
24 #include <string>
25 
26 class G4Step;
27 class G4HCofThisEvent;
28 class TrackingSlaveSD;
29 class SimTrackManager;
30 
32  public Observer<const BeginOfEvent*>,
33  public Observer<const EndOfEvent*> {
34 public:
36  ~PPSDiamondSD() override;
37  void printHitInfo();
38 
39  void Initialize(G4HCofThisEvent* HCE) override;
40  void EndOfEvent(G4HCofThisEvent* eventHC) override;
41  void clear() override;
42  void clearTrack(G4Track* Track);
43  void DrawAll() override;
44  void PrintAll() override;
45  void fillHits(edm::PSimHitContainer&, const std::string&) override;
46 
47 private:
48  static constexpr unsigned int maxDiamondHits_ = 15000;
49 
50  void clearHits() override;
51  bool ProcessHits(G4Step* step, G4TouchableHistory* tHistory) override;
52  uint32_t setDetUnitId(const G4Step* step) override;
53  void update(const BeginOfEvent*) override;
54  void update(const ::EndOfEvent*) override;
56 
57  std::unique_ptr<TrackingSlaveSD> slave_;
58  std::unique_ptr<PPSVDetectorOrganization> numberingScheme_;
59 
62 
63  G4ThreeVector setToLocal(const G4ThreeVector& globalPoint);
64  void stepInfo(const G4Step* aStep);
65  G4bool hitExists();
66  void importInfoToHit(); //added pps
67  void updateHit();
69  void resetForNewPrimary();
70  void summarize();
71  bool isPrimary(const G4Track* track);
72 
73  G4ThreeVector entrancePoint_;
75  G4String name_;
76  G4int hcID_;
79  G4Track* theTrack_;
80  G4VPhysicalVolume* currentPV_;
81  unsigned int unitID_;
83  G4double tSlice_;
84 
85  G4StepPoint* preStepPoint_;
86  G4StepPoint* postStepPoint_;
87  G4ThreeVector hitPoint_;
88  G4ThreeVector exitPoint_;
89  G4ThreeVector theLocalEntryPoint_;
90  G4ThreeVector theLocalExitPoint_;
91  double Pabs_;
92  double thePx_, thePy_, thePz_;
93  double Tof_;
94  double Eloss_;
96  double ThetaAtEntry_;
97  double PhiAtEntry_;
98  int ParentId_;
99  double Vx_, Vy_, Vz_;
102  int eventno_;
103 };
104 
105 #endif // PPS_PPSDiamondSD_h
PPSDiamondSD::storeHit
void storeHit(PPSDiamondG4Hit *)
Definition: PPSDiamondSD.cc:191
PPSDiamondSD
Definition: PPSDiamondSD.h:31
SimTrackManager
Definition: SimTrackManager.h:35
PPSDiamondSD::incidentEnergy_
double incidentEnergy_
Definition: PPSDiamondSD.h:74
PPSDiamondSD::theTrack_
G4Track * theTrack_
Definition: PPSDiamondSD.h:79
PPSDiamondG4HitCollection
G4THitsCollection< PPSDiamondG4Hit > PPSDiamondG4HitCollection
Definition: PPSDiamondG4HitCollection.h:12
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
Observer
Definition: Observer.h:23
step
step
Definition: StallMonitor.cc:94
PPSDiamondSD::stepInfo
void stepInfo(const G4Step *aStep)
Definition: PPSDiamondSD.cc:139
PPSDiamondSD::PPSDiamondSD
PPSDiamondSD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: PPSDiamondSD.cc:28
SensitiveTkDetector
Definition: SensitiveTkDetector.h:8
PPSDiamondSD::maxDiamondHits_
static constexpr unsigned int maxDiamondHits_
Definition: PPSDiamondSD.h:48
PPSDiamondSD::ParentId_
int ParentId_
Definition: PPSDiamondSD.h:98
PPSDiamondSD::hcID_
G4int hcID_
Definition: PPSDiamondSD.h:76
PPSDiamondSD::fillHits
void fillHits(edm::PSimHitContainer &, const std::string &) override
Definition: PPSDiamondSD.cc:271
PPSDiamondSD::Eloss_
double Eloss_
Definition: PPSDiamondSD.h:94
PPSDiamondSD::clearTrack
void clearTrack(G4Track *Track)
Definition: PPSDiamondSD.cc:290
PPSDiamondSD::clear
void clear() override
Definition: PPSDiamondSD.cc:262
PPSDiamondSD::PhiAtEntry_
double PhiAtEntry_
Definition: PPSDiamondSD.h:97
EndOfEvent.h
PPSDiamondG4HitCollection.h
PPSDiamondSD::thePz_
double thePz_
Definition: PPSDiamondSD.h:92
PPSDiamondSD::thePy_
double thePy_
Definition: PPSDiamondSD.h:92
PPSDiamondSD::Globaltimehit_
double Globaltimehit_
Definition: PPSDiamondSD.h:100
PPSDiamondSD::theLocalExitPoint_
G4ThreeVector theLocalExitPoint_
Definition: PPSDiamondSD.h:90
PPSDiamondSD::theMPDebug_
int theMPDebug_
Definition: PPSDiamondSD.h:61
PPSDiamondSD::DrawAll
void DrawAll() override
Definition: PPSDiamondSD.cc:264
Observer.h
SensitiveTkDetector.h
PPSDiamondSD::theLocalEntryPoint_
G4ThreeVector theLocalEntryPoint_
Definition: PPSDiamondSD.h:89
PPSDiamondSD::printHitInfo
void printHitInfo()
Definition: PPSDiamondSD.cc:78
PPSDiamondSD::resetForNewPrimary
void resetForNewPrimary()
PPSDiamondSD::ProcessHits
bool ProcessHits(G4Step *step, G4TouchableHistory *tHistory) override
Definition: PPSDiamondSD.cc:116
PPSDiamondSD::currentHit_
PPSDiamondG4Hit * currentHit_
Definition: PPSDiamondSD.h:78
PPSDiamondSD::eventno_
int eventno_
Definition: PPSDiamondSD.h:102
PPSDiamondSD::EndOfEvent
void EndOfEvent(G4HCofThisEvent *eventHC) override
Definition: PPSDiamondSD.cc:239
PPSDiamondSD::setToLocal
G4ThreeVector setToLocal(const G4ThreeVector &globalPoint)
Definition: PPSDiamondSD.cc:231
PPSDiamondSD::tSliceID_
G4int tSliceID_
Definition: PPSDiamondSD.h:82
PPSDiamondSD::exitPoint_
G4ThreeVector exitPoint_
Definition: PPSDiamondSD.h:88
PPSDiamondSD::setNumberingScheme
void setNumberingScheme(PPSVDetectorOrganization *scheme)
Definition: PPSDiamondSD.cc:275
PPSDiamondSD::Vz_
double Vz_
Definition: PPSDiamondSD.h:99
PPSDiamondSD::numberingScheme_
std::unique_ptr< PPSVDetectorOrganization > numberingScheme_
Definition: PPSDiamondSD.h:58
PPSDiamondG4Hit.h
PPSVDetectorOrganization.h
PPSDiamondSD::primaryID_
G4int primaryID_
Definition: PPSDiamondSD.h:82
PPSVDetectorOrganization
Definition: PPSVDetectorOrganization.h:10
SensitiveDetectorCatalog
Definition: SensitiveDetectorCatalog.h:10
PPSDiamondSD::preStepPoint_
G4StepPoint * preStepPoint_
Definition: PPSDiamondSD.h:85
PPSDiamondSD::theHC_
PPSDiamondG4HitCollection * theHC_
Definition: PPSDiamondSD.h:77
PPSDiamondSD::unitID_
unsigned int unitID_
Definition: PPSDiamondSD.h:81
PPSDiamondSD::Tof_
double Tof_
Definition: PPSDiamondSD.h:93
edm::ParameterSet
Definition: ParameterSet.h:47
PPSDiamondSD::Vx_
double Vx_
Definition: PPSDiamondSD.h:99
PPSDiamondSD::PrintAll
void PrintAll() override
Definition: PPSDiamondSD.cc:266
PPSDiamondG4Hit
Definition: PPSDiamondG4Hit.h:13
PPSDiamondSD::update
void update(const BeginOfEvent *) override
This routine will be called when the appropriate signal arrives.
Definition: PPSDiamondSD.cc:281
PPSDiamondSD::isPrimary
bool isPrimary(const G4Track *track)
Definition: PPSDiamondSD.cc:294
PPSDiamondSD::Pabs_
double Pabs_
Definition: PPSDiamondSD.h:91
BeginOfEvent.h
PPSDiamondSD::currentPV_
G4VPhysicalVolume * currentPV_
Definition: PPSDiamondSD.h:80
PPSDiamondSD::Vy_
double Vy_
Definition: PPSDiamondSD.h:99
PPSDiamondNumberingScheme.h
PPSDiamondSD::entrancePoint_
G4ThreeVector entrancePoint_
Definition: PPSDiamondSD.h:73
TrackingSlaveSD
Definition: TrackingSlaveSD.h:11
PPSDiamondSD::verbosity_
int verbosity_
Definition: PPSDiamondSD.h:60
BeginOfEvent
Definition: BeginOfEvent.h:6
PPSDiamondOrganization.h
PPSDiamondSD::ParticleType_
short ParticleType_
Definition: PPSDiamondSD.h:95
PPSDiamondSD::name_
G4String name_
Definition: PPSDiamondSD.h:75
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
generator_cfi.scheme
scheme
Definition: generator_cfi.py:22
Frameworkfwd.h
PPSDiamondSD::~PPSDiamondSD
~PPSDiamondSD() override
Definition: PPSDiamondSD.cc:66
PPSDiamondSD::hitPoint_
G4ThreeVector hitPoint_
Definition: PPSDiamondSD.h:87
ParameterSetfwd.h
PPSDiamondSD::theglobaltimehit_
double theglobaltimehit_
Definition: PPSDiamondSD.h:101
PPSDiamondSD::thePx_
double thePx_
Definition: PPSDiamondSD.h:92
PPSDiamondSD::slave_
std::unique_ptr< TrackingSlaveSD > slave_
Definition: PPSDiamondSD.h:57
PPSDiamondSD::summarize
void summarize()
Definition: PPSDiamondSD.cc:260
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
PPSDiamondSD::postStepPoint_
G4StepPoint * postStepPoint_
Definition: PPSDiamondSD.h:86
PPSDiamondSD::Initialize
void Initialize(G4HCofThisEvent *HCE) override
Definition: PPSDiamondSD.cc:68
PPSDiamondSD::ThetaAtEntry_
double ThetaAtEntry_
Definition: PPSDiamondSD.h:96
PPSDiamondSD::setDetUnitId
uint32_t setDetUnitId(const G4Step *step) override
Definition: PPSDiamondSD.cc:187
PPSDiamondSD::updateHit
void updateHit()
PPSDiamondSD::hitExists
G4bool hitExists()
PPSDiamondSD::tSlice_
G4double tSlice_
Definition: PPSDiamondSD.h:83
PPSDiamondSD::importInfoToHit
void importInfoToHit()
Definition: PPSDiamondSD.cc:202
PPSDiamondSD::clearHits
void clearHits() override
Definition: PPSDiamondSD.cc:292