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 
9 
10 #include "G4Track.hh"
11 
12 #include <iostream>
13 #include <fstream>
14 #include <vector>
15 
16 class G4Step;
17 class G4HCofThisEvent;
18 
20 public:
21  explicit HFChamberSD(const std::string&,
22  const edm::EventSetup&,
24  const edm::ParameterSet&,
25  const SimTrackManager*);
26  ~HFChamberSD() override;
27 
28  void Initialize(G4HCofThisEvent* HCE) override;
29  G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) override;
30  void EndOfEvent(G4HCofThisEvent* HCE) override;
31  void clear() override;
32  void DrawAll() override;
33  void PrintAll() override;
34 
35  void clearHits() override;
36  uint32_t setDetUnitId(const G4Step*) override;
37  void fillHits(edm::PCaloHitContainer&, const std::string&) override;
38 
39 private:
41 
42  G4int theHCID;
44  int theNSteps;
45 };
46 
47 #endif
void clear() override
Definition: HFChamberSD.cc:76
std::vector< PCaloHit > PCaloHitContainer
void clearHits() override
Definition: HFChamberSD.cc:82
~HFChamberSD() override
Definition: HFChamberSD.cc:26
uint32_t setDetUnitId(const G4Step *) override
Definition: HFChamberSD.cc:84
HFShowerG4HitsCollection * theHC
Definition: HFChamberSD.h:43
void Initialize(G4HCofThisEvent *HCE) override
Definition: HFChamberSD.cc:28
void fillHits(edm::PCaloHitContainer &, const std::string &) override
Definition: HFChamberSD.cc:89
void PrintAll() override
Definition: HFChamberSD.cc:80
G4int theHCID
Definition: HFChamberSD.h:42
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override
Definition: HFChamberSD.cc:36
void EndOfEvent(G4HCofThisEvent *HCE) override
Definition: HFChamberSD.cc:71
const SimTrackManager * m_trackManager
Definition: HFChamberSD.h:40
HFChamberSD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, const edm::ParameterSet &, const SimTrackManager *)
Definition: HFChamberSD.cc:19
void DrawAll() override
Definition: HFChamberSD.cc:78
G4THitsCollection< HFShowerG4Hit > HFShowerG4HitsCollection
Definition: HFShowerG4Hit.h:55