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 
21 public:
22 
23  explicit HFChamberSD(const std::string&, const DDCompactView&,
25  const edm::ParameterSet&, 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:
40 
42 
43  G4int theHCID;
45  int theNSteps;
46 };
47 
48 #endif
49 
void clear() override
Definition: HFChamberSD.cc:84
std::vector< PCaloHit > PCaloHitContainer
void clearHits() override
Definition: HFChamberSD.cc:92
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:83
~HFChamberSD() override
Definition: HFChamberSD.cc:27
uint32_t setDetUnitId(const G4Step *) override
Definition: HFChamberSD.cc:94
HFShowerG4HitsCollection * theHC
Definition: HFChamberSD.h:44
void Initialize(G4HCofThisEvent *HCE) override
Definition: HFChamberSD.cc:31
void fillHits(edm::PCaloHitContainer &, const std::string &) override
Definition: HFChamberSD.cc:99
void PrintAll() override
Definition: HFChamberSD.cc:90
G4int theHCID
Definition: HFChamberSD.h:43
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override
Definition: HFChamberSD.cc:41
void EndOfEvent(G4HCofThisEvent *HCE) override
Definition: HFChamberSD.cc:78
const SimTrackManager * m_trackManager
Definition: HFChamberSD.h:41
HFChamberSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, const edm::ParameterSet &, const SimTrackManager *)
Definition: HFChamberSD.cc:19
void DrawAll() override
Definition: HFChamberSD.cc:88
G4THitsCollection< HFShowerG4Hit > HFShowerG4HitsCollection
Definition: HFShowerG4Hit.h:59