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
FormatBarrelHits::operator()
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:38
TrackingSlaveSD::Collection
std::vector< PSimHit > Collection
Definition: TrackingSlaveSD.h:13
MuonSubDetector
Definition: MuonSubDetector.h:19
SimTrackManager
Definition: SimTrackManager.h:35
EventAction
Definition: EventAction.h:23
MuonSlaveSD
Definition: MuonSlaveSD.h:26
MuonSlaveSD::end
const_iterator end() override
Definition: MuonSlaveSD.h:35
FormatBarrelHits
Definition: MuonSlaveSD.h:46
MuonSlaveSD::m_trackManager
const SimTrackManager * m_trackManager
Definition: MuonSlaveSD.h:43
MuonSlaveSD::const_iterator
Collection::const_iterator const_iterator
Definition: MuonSlaveSD.h:29
FormatEndcapHits::sortId
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:44
MuonSlaveSD::MuonSlaveSD
MuonSlaveSD(MuonSubDetector *, const SimTrackManager *)
Definition: MuonSlaveSD.cc:9
TrackingSlaveSD.h
MuonSlaveSD::format
bool format() override
Definition: MuonSlaveSD.cc:21
Observer.h
PSimHit.h
TrackingSlaveSD::const_iterator
Collection::const_iterator const_iterator
Definition: TrackingSlaveSD.h:14
FormatRpcHits
Definition: MuonSlaveSD.h:58
FormatGemHits
Definition: MuonSlaveSD.h:64
FormatMe0Hits::sortId
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:56
EndOfEvent
Definition: EndOfEvent.h:6
b
double b
Definition: hdecay.h:118
FormatEndcapHits
Definition: MuonSlaveSD.h:52
a
double a
Definition: hdecay.h:119
FormatEndcapHits::operator()
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:42
MuonSlaveSD::Collection
std::vector< PSimHit > Collection
Definition: MuonSlaveSD.h:28
TrackingSlaveSD
Definition: TrackingSlaveSD.h:11
FormatMe0Hits
Definition: MuonSlaveSD.h:70
FormatMe0Hits::operator()
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:54
MuonSlaveSD::hits_
Collection hits_
Definition: MuonSlaveSD.h:38
FormatBarrelHits::sortId
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:40
FormatGemHits::sortId
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:52
MuonSlaveSD::detector
MuonSubDetector * detector
Definition: MuonSlaveSD.h:41
MuonSlaveSD::begin
const_iterator begin() override
Definition: MuonSlaveSD.h:34
PSimHit
Definition: PSimHit.h:15
FormatRpcHits::sortId
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:48
FormatRpcHits::operator()
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:46
FormatGemHits::operator()
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:50
MuonSlaveSD::clearHits
virtual void clearHits()
Definition: MuonSlaveSD.cc:16
MuonSlaveSD::~MuonSlaveSD
~MuonSlaveSD() override
Definition: MuonSlaveSD.cc:14