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 
24  edm::ParameterSet const &, const SimTrackManager*);
25  ~HFChamberSD() override;
26 
27  void Initialize(G4HCofThisEvent*HCE) override;
28  G4bool ProcessHits(G4Step* aStep,G4TouchableHistory* ROhist) override;
29  void EndOfEvent(G4HCofThisEvent* HCE) override;
30  void clear() override;
31  void DrawAll() override;
32  void PrintAll() override;
33 
34 protected:
35 
36  void clearHits() override;
37  uint32_t setDetUnitId(G4Step*) override;
39 
40 private:
41 
44 
45  G4int theHCID;
47  int theNSteps;
48 };
49 
50 #endif
51 
void clear() override
Definition: HFChamberSD.cc:104
std::vector< PCaloHit > PCaloHitContainer
void clearHits() override
Definition: HFChamberSD.cc:112
HFChamberSD(std::string, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: HFChamberSD.cc:19
void fillHits(edm::PCaloHitContainer &, std::string) override
Definition: HFChamberSD.cc:119
type of data representation of DDCompactView
Definition: DDCompactView.h:90
~HFChamberSD() override
Definition: HFChamberSD.cc:47
uint32_t setDetUnitId(G4Step *) override
Definition: HFChamberSD.cc:114
HFShowerG4HitsCollection * theHC
Definition: HFChamberSD.h:46
void Initialize(G4HCofThisEvent *HCE) override
Definition: HFChamberSD.cc:51
std::string theName
Definition: HFChamberSD.h:42
void PrintAll() override
Definition: HFChamberSD.cc:110
G4int theHCID
Definition: HFChamberSD.h:45
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist) override
Definition: HFChamberSD.cc:61
void EndOfEvent(G4HCofThisEvent *HCE) override
Definition: HFChamberSD.cc:98
const SimTrackManager * m_trackManager
Definition: HFChamberSD.h:43
void DrawAll() override
Definition: HFChamberSD.cc:108
G4THitsCollection< HFShowerG4Hit > HFShowerG4HitsCollection
Definition: HFShowerG4Hit.h:59