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 
18 
19 #include <string>
20 
21 class EndOfEvent;
22 class EventAction;
23 class MuonSubDetector;
24 class SimTrackManager;
25 
26 class MuonSlaveSD :
27 public TrackingSlaveSD
28 {
29 public:
30  typedef std::vector<PSimHit> Collection;
31  typedef Collection::const_iterator const_iterator;
33  ~MuonSlaveSD() override;
34  virtual void clearHits();
35  bool format() override;
36  const_iterator begin() override { return hits_.begin();}
37  const_iterator end() override { return hits_.end();}
38 
39 protected:
40  Collection hits_;
41 
42 private:
44 
46 
47 };
48 
50  public:
51  bool operator() (const PSimHit & a, const PSimHit & b);
52  int sortId (const PSimHit & a) const;
53 };
54 
56  public:
57  bool operator() (const PSimHit & a, const PSimHit & b);
58  int sortId (const PSimHit & a) const;
59 };
60 
62  public:
63  bool operator() (const PSimHit & a, const PSimHit & b);
64  int sortId (const PSimHit & a) const;
65 };
66 
68  public:
69  bool operator() (const PSimHit & a, const PSimHit & b);
70  int sortId (const PSimHit & a) const;
71 };
72 
74  public:
75  bool operator() (const PSimHit & a, const PSimHit & b);
76  int sortId (const PSimHit & a) const;
77 };
78 
79 #endif // MuonSlaveSD_h
MuonSubDetector * detector
Definition: MuonSlaveSD.h:43
Collection::const_iterator const_iterator
Definition: MuonSlaveSD.h:31
Collection hits_
Definition: MuonSlaveSD.h:40
virtual void clearHits()
Definition: MuonSlaveSD.cc:20
MuonSlaveSD(MuonSubDetector *, const SimTrackManager *)
Definition: MuonSlaveSD.cc:10
bool format() override
Definition: MuonSlaveSD.cc:26
const_iterator begin() override
Definition: MuonSlaveSD.h:36
double b
Definition: hdecay.h:120
~MuonSlaveSD() override
Definition: MuonSlaveSD.cc:17
double a
Definition: hdecay.h:121
const_iterator end() override
Definition: MuonSlaveSD.h:37
std::vector< PSimHit > Collection
Definition: MuonSlaveSD.h:30
const SimTrackManager * m_trackManager
Definition: MuonSlaveSD.h:45