CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FiberSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_ShowerLibraryProducer_FiberSD_h
2 #define SimG4CMS_ShowerLibraryProducer_FiberSD_h
3 
10 
13 
15 
16 #include "G4Track.hh"
17 
18 #include <iostream>
19 #include <fstream>
20 #include <vector>
21 
22 class G4Step;
23 class G4HCofThisEvent;
24 
26  public Observer<const BeginOfRun *>,
27  public Observer<const BeginOfEvent*>,
28  public Observer<const EndOfEvent*> {
29 
30 public:
31 
32  FiberSD(std::string, const DDCompactView&, SensitiveDetectorCatalog&,
33  edm::ParameterSet const &, const SimTrackManager*);
34  virtual ~FiberSD();
35 
36  virtual void Initialize(G4HCofThisEvent*HCE);
37  virtual G4bool ProcessHits(G4Step* aStep,G4TouchableHistory* ROhist);
38  virtual void EndOfEvent(G4HCofThisEvent* HCE);
39  virtual void clear();
40  virtual void DrawAll();
41  virtual void PrintAll();
42 
43 protected:
44 
45  virtual void clearHits();
46  virtual uint32_t setDetUnitId(G4Step*);
47  virtual void fillHits(edm::PCaloHitContainer&, std::string);
48 
49  virtual void update(const BeginOfRun *);
50  virtual void update(const BeginOfEvent *);
51  virtual void update(const ::EndOfEvent *);
52 
53 private:
54 
55  std::string theName;
58 
59  G4int theHCID;
61 };
62 
63 #endif
64 
const SimTrackManager * m_trackManager
Definition: FiberSD.h:56
std::vector< PCaloHit > PCaloHitContainer
std::string theName
Definition: FiberSD.h:55
virtual void DrawAll()
Definition: FiberSD.cc:114
type of data representation of DDCompactView
Definition: DDCompactView.h:77
virtual void update(const BeginOfRun *)
This routine will be called when the appropriate signal arrives.
Definition: FiberSD.cc:118
virtual void fillHits(edm::PCaloHitContainer &, std::string)
Definition: FiberSD.cc:134
virtual void PrintAll()
Definition: FiberSD.cc:116
FiberSD(std::string, const DDCompactView &, SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: FiberSD.cc:17
HFShower * theShower
Definition: FiberSD.h:57
virtual uint32_t setDetUnitId(G4Step *)
Definition: FiberSD.cc:126
FiberG4HitsCollection * theHC
Definition: FiberSD.h:60
G4THitsCollection< FiberG4Hit > FiberG4HitsCollection
Definition: FiberG4Hit.h:59
virtual void clearHits()
Definition: FiberSD.cc:124
virtual void Initialize(G4HCofThisEvent *HCE)
Definition: FiberSD.cc:53
virtual void EndOfEvent(G4HCofThisEvent *HCE)
Definition: FiberSD.cc:106
virtual ~FiberSD()
Definition: FiberSD.cc:47
virtual void clear()
Definition: FiberSD.cc:112
G4int theHCID
Definition: FiberSD.h:59
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
Definition: FiberSD.cc:63