CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PLTSensitiveDetector.h
Go to the documentation of this file.
1 #ifndef Forward_PLTSensitiveDetector_h
2 #define Forward_PLTSensitiveDetector_h
3 
4 // system include files
5 
6 // user include files
7 
13 
16 
17 #include "G4Step.hh"
18 #include "G4StepPoint.hh"
19 #include "G4Track.hh"
20 
21 #include <string>
22 
23 class TrackInformation;
24 class SimTrackManager;
25 class TrackingSlaveSD;
26 class UpdatablePSimHit;
29 
31  public Observer<const BeginOfEvent*>,
32  public Observer<const BeginOfTrack*>,
33  public Observer<const BeginOfJob*> {
34 
35 public:
36 
39  edm::ParameterSet const &, const SimTrackManager*);
40  virtual ~PLTSensitiveDetector();
41 
42  virtual bool ProcessHits(G4Step *,G4TouchableHistory *);
43  virtual uint32_t setDetUnitId(G4Step*);
44  virtual void EndOfEvent(G4HCofThisEvent*);
45 
47 
48 private:
49 
50  virtual void sendHit();
51  virtual void updateHit(G4Step *);
52  virtual bool newHit(G4Step *);
53  virtual bool closeHit(G4Step *);
54  virtual void createHit(G4Step *);
55  void update(const BeginOfEvent *);
56  void update(const BeginOfTrack *);
57  void update(const BeginOfJob *);
58  virtual void clearHits();
60 
61 private:
62 
68  float energyCut;
70 
73  G4VPhysicalVolume * oldVolume;
74  uint32_t lastId;
75  unsigned int lastTrack;
76  int eventno;
78 
79 };
80 
81 #endif
UpdatablePSimHit * mySimHit
virtual void createHit(G4Step *)
G4TrackToParticleID * myG4TrackToParticleID
void update(const BeginOfEvent *)
This routine will be called when the appropriate signal arrives.
TrackInformation * getOrCreateTrackInformation(const G4Track *)
G4ProcessTypeEnumerator * theG4ProcessTypeEnumerator
G4VPhysicalVolume * oldVolume
type of data representation of DDCompactView
Definition: DDCompactView.h:77
virtual bool newHit(G4Step *)
virtual bool closeHit(G4Step *)
TrackingSlaveSD * slave
virtual void updateHit(G4Step *)
void fillHits(edm::PSimHitContainer &, std::string use)
virtual uint32_t setDetUnitId(G4Step *)
virtual void EndOfEvent(G4HCofThisEvent *)
virtual bool ProcessHits(G4Step *, G4TouchableHistory *)
PLTSensitiveDetector(std::string, const DDCompactView &, SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
std::vector< PSimHit > PSimHitContainer