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 : public TrackingSlaveSD {
27 public:
28  typedef std::vector<PSimHit> Collection;
29  typedef Collection::const_iterator const_iterator;
31  ~MuonSlaveSD() override;
32  virtual void clearHits();
33  bool format() override;
34  const_iterator begin() override { return hits_.begin(); }
35  const_iterator end() override { return hits_.end(); }
36 
37 protected:
39 
40 private:
42 
44 };
45 
47 public:
48  bool operator()(const PSimHit& a, const PSimHit& b);
49  int sortId(const PSimHit& a) const;
50 };
51 
53 public:
54  bool operator()(const PSimHit& a, const PSimHit& b);
55  int sortId(const PSimHit& a) const;
56 };
57 
59 public:
60  bool operator()(const PSimHit& a, const PSimHit& b);
61  int sortId(const PSimHit& a) const;
62 };
63 
65 public:
66  bool operator()(const PSimHit& a, const PSimHit& b);
67  int sortId(const PSimHit& a) const;
68 };
69 
71 public:
72  bool operator()(const PSimHit& a, const PSimHit& b);
73  int sortId(const PSimHit& a) const;
74 };
75 
76 #endif // MuonSlaveSD_h
MuonSubDetector * detector
Definition: MuonSlaveSD.h:41
Collection::const_iterator const_iterator
Definition: MuonSlaveSD.h:29
Collection hits_
Definition: MuonSlaveSD.h:38
virtual void clearHits()
Definition: MuonSlaveSD.cc:16
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:54
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:48
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:56
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:40
MuonSlaveSD(MuonSubDetector *, const SimTrackManager *)
Definition: MuonSlaveSD.cc:9
bool format() override
Definition: MuonSlaveSD.cc:21
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:44
Collection::const_iterator const_iterator
const_iterator begin() override
Definition: MuonSlaveSD.h:34
double b
Definition: hdecay.h:120
~MuonSlaveSD() override
Definition: MuonSlaveSD.cc:14
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:38
double a
Definition: hdecay.h:121
const_iterator end() override
Definition: MuonSlaveSD.h:35
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:46
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:50
std::vector< PSimHit > Collection
Definition: MuonSlaveSD.h:28
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:42
std::vector< PSimHit > Collection
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:52
const SimTrackManager * m_trackManager
Definition: MuonSlaveSD.h:43