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  ~MuonSlaveSD() override;
35  virtual void clearHits();
36  bool format() override;
37  const_iterator begin() override { return hits_.begin();}
38  const_iterator end() override { 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
MuonSlaveSD(MuonSubDetector *, const SimTrackManager *)
Definition: MuonSlaveSD.cc:10
bool format() override
Definition: MuonSlaveSD.cc:27
const_iterator begin() override
Definition: MuonSlaveSD.h:37
double b
Definition: hdecay.h:120
~MuonSlaveSD() override
Definition: MuonSlaveSD.cc:18
double a
Definition: hdecay.h:121
const_iterator end() override
Definition: MuonSlaveSD.h:38
std::vector< PSimHit > Collection
Definition: MuonSlaveSD.h:31
const SimTrackManager * m_trackManager
Definition: MuonSlaveSD.h:46