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 
35  edm::ParameterSet const &, const SimTrackManager*);
36  virtual ~FiberSD();
37 
38  virtual void Initialize(G4HCofThisEvent*HCE);
39  virtual G4bool ProcessHits(G4Step* aStep,G4TouchableHistory* ROhist);
40  virtual void EndOfEvent(G4HCofThisEvent* HCE);
41  virtual void clear();
42  virtual void DrawAll();
43  virtual void PrintAll();
44 
45 protected:
46 
47  virtual void clearHits();
48  virtual uint32_t setDetUnitId(G4Step*);
50 
51  virtual void update(const BeginOfJob *);
52  virtual void update(const BeginOfRun *);
53  virtual void update(const BeginOfEvent *);
54  virtual void update(const ::EndOfEvent *);
55 
56 private:
57 
61 
62  G4int theHCID;
64 };
65 
66 #endif
67 
const SimTrackManager * m_trackManager
Definition: FiberSD.h:59
std::vector< PCaloHit > PCaloHitContainer
std::string theName
Definition: FiberSD.h:58
virtual void DrawAll()
Definition: FiberSD.cc:127
virtual void update(const BeginOfJob *)
This routine will be called when the appropriate signal arrives.
Definition: FiberSD.cc:131
type of data representation of DDCompactView
Definition: DDCompactView.h:90
virtual void fillHits(edm::PCaloHitContainer &, std::string)
Definition: FiberSD.cc:162
virtual void PrintAll()
Definition: FiberSD.cc:129
HFShower * theShower
Definition: FiberSD.h:60
virtual uint32_t setDetUnitId(G4Step *)
Definition: FiberSD.cc:154
FiberSD(std::string, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: FiberSD.cc:21
FiberG4HitsCollection * theHC
Definition: FiberSD.h:63
G4THitsCollection< FiberG4Hit > FiberG4HitsCollection
Definition: FiberG4Hit.h:58
virtual void clearHits()
Definition: FiberSD.cc:152
virtual void Initialize(G4HCofThisEvent *HCE)
Definition: FiberSD.cc:57
virtual void EndOfEvent(G4HCofThisEvent *HCE)
Definition: FiberSD.cc:118
virtual ~FiberSD()
Definition: FiberSD.cc:51
virtual void clear()
Definition: FiberSD.cc:125
G4int theHCID
Definition: FiberSD.h:62
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
Definition: FiberSD.cc:67