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 
11 
14 
16 
17 #include "G4Track.hh"
18 
19 #include <iostream>
20 #include <fstream>
21 #include <vector>
22 
23 class G4Step;
24 class G4HCofThisEvent;
25 
27  public Observer<const BeginOfJob *>,
28  public Observer<const BeginOfRun *>,
29  public Observer<const BeginOfEvent*>,
30  public Observer<const EndOfEvent*> {
31 
32 public:
33 
34  explicit FiberSD(const std::string&, const DDCompactView&,
36  edm::ParameterSet const &, const SimTrackManager*);
37  ~FiberSD() override;
38 
39  void Initialize(G4HCofThisEvent*HCE) override;
40  G4bool ProcessHits(G4Step* aStep,G4TouchableHistory* ROhist) override;
41  void EndOfEvent(G4HCofThisEvent* HCE) override;
42  void clear() override;
43  void DrawAll() override;
44  void PrintAll() override;
45 
46  void clearHits() override;
47  uint32_t setDetUnitId(const G4Step*) override;
48  void fillHits(edm::PCaloHitContainer&, const std::string&) override;
49 
50 protected:
51 
52  void update(const BeginOfJob *) override;
53  void update(const BeginOfRun *) override;
54  void update(const BeginOfEvent *) override;
55  void update(const ::EndOfEvent *) override;
56 
57 private:
58 
61 
62  G4int theHCID;
64 };
65 
66 #endif
67 
uint32_t setDetUnitId(const G4Step *) override
Definition: FiberSD.cc:133
const SimTrackManager * m_trackManager
Definition: FiberSD.h:59
void clearHits() override
Definition: FiberSD.cc:131
std::vector< PCaloHit > PCaloHitContainer
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
void update(const BeginOfJob *) override
This routine will be called when the appropriate signal arrives.
Definition: FiberSD.cc:111
FiberSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: FiberSD.cc:21
void Initialize(G4HCofThisEvent *HCE) override
Definition: FiberSD.cc:37
HFShower * theShower
Definition: FiberSD.h:60
~FiberSD() override
Definition: FiberSD.cc:31
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override
Definition: FiberSD.cc:47
FiberG4HitsCollection * theHC
Definition: FiberSD.h:63
G4THitsCollection< FiberG4Hit > FiberG4HitsCollection
Definition: FiberG4Hit.h:58
void fillHits(edm::PCaloHitContainer &, const std::string &) override
Definition: FiberSD.cc:141
void DrawAll() override
Definition: FiberSD.cc:107
void EndOfEvent(G4HCofThisEvent *HCE) override
Definition: FiberSD.cc:98
void clear() override
Definition: FiberSD.cc:105
G4int theHCID
Definition: FiberSD.h:62
void PrintAll() override
Definition: FiberSD.cc:109