test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonSlaveSD.h
Go to the documentation of this file.
1 #ifndef MuonSlaveSD_h
2 #define 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:
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 
68 #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
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:47
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
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:67
Collection::const_iterator const_iterator
int sortId(const PSimHit &a) const
Definition: MuonSlaveSD.cc:57
double b
Definition: hdecay.h:120
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:42
double a
Definition: hdecay.h:121
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:62
std::vector< PSimHit > Collection
Definition: MuonSlaveSD.h:31
virtual const_iterator end()
Definition: MuonSlaveSD.h:38
bool operator()(const PSimHit &a, const PSimHit &b)
Definition: MuonSlaveSD.cc:52
std::vector< PSimHit > Collection
const SimTrackManager * m_trackManager
Definition: MuonSlaveSD.h:46