CMS 3D CMS Logo

HFChamberSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_ShowerLibraryProducer_HFChamberSD_h
2 #define SimG4CMS_ShowerLibraryProducer_HFChamberSD_h
3 
6 
11 
12 #include "G4Track.hh"
13 
14 #include <iostream>
15 #include <fstream>
16 #include <vector>
17 
18 class G4Step;
19 class G4HCofThisEvent;
20 
22 public:
23  explicit HFChamberSD(const std::string&, const SensitiveDetectorCatalog&, const SimTrackManager*);
24  ~HFChamberSD() override;
25 
26  void Initialize(G4HCofThisEvent* HCE) override;
27  G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override;
28  void EndOfEvent(G4HCofThisEvent* HCE) override;
29  void clear() override;
30  void DrawAll() override;
31  void PrintAll() override;
32 
33  void clearHits() override;
34  uint32_t setDetUnitId(const G4Step*) override;
35  void fillHits(edm::PCaloHitContainer&, const std::string&) override;
36 
37 private:
38  G4int theHCID;
40  int theNSteps;
41 };
42 
43 #endif
void clear() override
Definition: HFChamberSD.cc:80
std::vector< PCaloHit > PCaloHitContainer
void clearHits() override
Definition: HFChamberSD.cc:86
HFChamberSD(const std::string &, const SensitiveDetectorCatalog &, const SimTrackManager *)
Definition: HFChamberSD.cc:21
~HFChamberSD() override
Definition: HFChamberSD.cc:26
uint32_t setDetUnitId(const G4Step *) override
Definition: HFChamberSD.cc:88
HFShowerG4HitsCollection * theHC
Definition: HFChamberSD.h:39
void Initialize(G4HCofThisEvent *HCE) override
Definition: HFChamberSD.cc:28
void fillHits(edm::PCaloHitContainer &, const std::string &) override
Definition: HFChamberSD.cc:93
void PrintAll() override
Definition: HFChamberSD.cc:84
G4int theHCID
Definition: HFChamberSD.h:38
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override
Definition: HFChamberSD.cc:38
void EndOfEvent(G4HCofThisEvent *HCE) override
Definition: HFChamberSD.cc:75
void DrawAll() override
Definition: HFChamberSD.cc:82
G4THitsCollection< HFShowerG4Hit > HFShowerG4HitsCollection
Definition: HFShowerG4Hit.h:55