CMS 3D CMS Logo

MuonSlaveSD.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_Muon_MuonSlaveSD_h
2 #define SimG4CMS_Muon_MuonSlaveSD_h
3 
17 
18 class EndOfEvent;
19 class EventAction;
20 
21 #include <string>
22 
23 class MuonSubDetector;
24 class SimTrackManager;
26 
27 class MuonSlaveSD :
28 public TrackingSlaveSD
29 {
30 public:
31  typedef std::vector<PSimHit> Collection;
32  typedef Collection::const_iterator const_iterator;
34  virtual ~MuonSlaveSD();
35  virtual void clearHits();
36  virtual bool format();
37  virtual const_iterator begin() { return hits_.begin();}
38  virtual const_iterator end() { return hits_.end();}
39 
40 protected:
41  Collection hits_;
42 
43 private:
45 
47 
48 };
49 
51  public:
52  bool operator() (const PSimHit & a, const PSimHit & b);
53  int sortId (const PSimHit & a) const;
54 };
55 
57  public:
58  bool operator() (const PSimHit & a, const PSimHit & b);
59  int sortId (const PSimHit & a) const;
60 };
61 
63  public:
64  bool operator() (const PSimHit & a, const PSimHit & b);
65  int sortId (const PSimHit & a) const;
66 };
67 
69  public:
70  bool operator() (const PSimHit & a, const PSimHit & b);
71  int sortId (const PSimHit & a) const;
72 };
73 
75  public:
76  bool operator() (const PSimHit & a, const PSimHit & b);
77  int sortId (const PSimHit & a) const;
78 };
79 
80 #endif // MuonSlaveSD_h
MuonSubDetector * detector
Definition: MuonSlaveSD.h:44
Collection::const_iterator const_iterator
Definition: MuonSlaveSD.h:32
Collection hits_
Definition: MuonSlaveSD.h:41
virtual void clearHits()
Definition: MuonSlaveSD.cc:21
virtual ~MuonSlaveSD()
Definition: MuonSlaveSD.cc:18
MuonSlaveSD(MuonSubDetector *, const SimTrackManager *)
Definition: MuonSlaveSD.cc:10
virtual const_iterator begin()
Definition: MuonSlaveSD.h:37
virtual bool format()
Definition: MuonSlaveSD.cc:27
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
std::vector< PSimHit > Collection
Definition: MuonSlaveSD.h:31
virtual const_iterator end()
Definition: MuonSlaveSD.h:38
const SimTrackManager * m_trackManager
Definition: MuonSlaveSD.h:46