CMS 3D CMS Logo

FiberSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_ShowerLibraryProducer_FiberSD_h
2 #define SimG4CMS_ShowerLibraryProducer_FiberSD_h
3 
6 
14 
17 
19 
20 #include "G4Track.hh"
21 
22 #include <iostream>
23 #include <fstream>
24 #include <vector>
25 
26 class G4Step;
27 class G4HCofThisEvent;
28 
30  public Observer<const BeginOfJob *>,
31  public Observer<const BeginOfRun *>,
32  public Observer<const BeginOfEvent *>,
33  public Observer<const EndOfEvent *> {
34 public:
35  explicit FiberSD(const std::string &,
37  const HcalDDDSimConstants *,
39  edm::ParameterSet const &,
40  const SimTrackManager *);
41  ~FiberSD() override;
42 
43  void Initialize(G4HCofThisEvent *HCE) override;
44  G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override;
45  void EndOfEvent(G4HCofThisEvent *HCE) override;
46  void clear() override;
47  void DrawAll() override;
48  void PrintAll() override;
49 
50  void clearHits() override;
51  uint32_t setDetUnitId(const G4Step *) override;
52  void fillHits(edm::PCaloHitContainer &, const std::string &) override;
53 
54 protected:
55  void update(const BeginOfJob *) override;
56  void update(const BeginOfRun *) override;
57  void update(const BeginOfEvent *) override;
58  void update(const ::EndOfEvent *) override;
59 
60 private:
62 
63  G4int theHCID;
65 };
66 
67 #endif
SimTrackManager
Definition: SimTrackManager.h:35
Observer
Definition: Observer.h:23
MessageLogger.h
SensitiveCaloDetector.h
FiberSD
Definition: FiberSD.h:29
BeginOfJob.h
FiberSD::update
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: FiberSD.cc:110
FiberSD::theHC
FiberG4HitsCollection * theHC
Definition: FiberSD.h:64
FiberSD::~FiberSD
~FiberSD() override
Definition: FiberSD.cc:34
FiberSD::EndOfEvent
void EndOfEvent(G4HCofThisEvent *HCE) override
Definition: FiberSD.cc:98
FiberSD::fillHits
void fillHits(edm::PCaloHitContainer &, const std::string &) override
Definition: FiberSD.cc:128
EndOfEvent.h
FiberSD::clear
void clear() override
Definition: FiberSD.cc:104
Observer.h
HcalDDDSimConstants
Definition: HcalDDDSimConstants.h:24
SensitiveCaloDetector
Definition: SensitiveCaloDetector.h:10
BeginOfRun.h
FiberSD::DrawAll
void DrawAll() override
Definition: FiberSD.cc:106
FiberSD::theHCID
G4int theHCID
Definition: FiberSD.h:63
HcalSimulationConstants
Definition: HcalSimulationConstants.h:15
FiberG4Hit.h
SensitiveDetectorCatalog
Definition: SensitiveDetectorCatalog.h:10
BeginOfJob
Definition: BeginOfJob.h:8
HFShower
Definition: HFShower.h:22
HFShower.h
edm::ParameterSet
Definition: ParameterSet.h:47
FiberSD::ProcessHits
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override
Definition: FiberSD.cc:50
FiberSD::clearHits
void clearHits() override
Definition: FiberSD.cc:118
BeginOfEvent.h
BeginOfEvent
Definition: BeginOfEvent.h:6
BeginOfRun
Definition: BeginOfRun.h:6
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FiberSD::theShower
HFShower * theShower
Definition: FiberSD.h:61
SimTrackManager.h
FiberSD::FiberSD
FiberSD(const std::string &, const HcalSimulationConstants *, const HcalDDDSimConstants *, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: FiberSD.cc:22
HcalSimulationConstants.h
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
FiberSD::PrintAll
void PrintAll() override
Definition: FiberSD.cc:108
FiberG4HitsCollection
G4THitsCollection< FiberG4Hit > FiberG4HitsCollection
Definition: FiberG4Hit.h:54
FiberSD::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition: FiberSD.cc:120
FiberSD::Initialize
void Initialize(G4HCofThisEvent *HCE) override
Definition: FiberSD.cc:39
HcalDDDSimConstants.h