CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Attributes | Private Attributes
MuonSlaveSD Class Reference

#include <MuonSlaveSD.h>

Inheritance diagram for MuonSlaveSD:
TrackingSlaveSD

Public Types

typedef std::vector< PSimHitCollection
 
typedef Collection::const_iterator const_iterator
 
- Public Types inherited from TrackingSlaveSD
typedef std::vector< PSimHitCollection
 
typedef Collection::const_iterator const_iterator
 

Public Member Functions

virtual const_iterator begin ()
 
virtual void clearHits ()
 
virtual const_iterator end ()
 
virtual bool format ()
 
 MuonSlaveSD (MuonSubDetector *, const SimTrackManager *)
 
virtual ~MuonSlaveSD ()
 
- Public Member Functions inherited from TrackingSlaveSD
std::vector< PSimHit > & hits ()
 
virtual void Initialize ()
 
std::string name () const
 
virtual bool processHits (const PSimHit &)
 
 TrackingSlaveSD (std::string)
 
std::string type ()
 
virtual ~TrackingSlaveSD ()
 

Protected Attributes

Collection hits_
 
- Protected Attributes inherited from TrackingSlaveSD
std::vector< PSimHithits_
 

Private Attributes

MuonSubDetectordetector
 
const SimTrackManagerm_trackManager
 

Additional Inherited Members

- Protected Member Functions inherited from TrackingSlaveSD
void setTrackId (PSimHit &hit, unsigned int k)
 

Detailed Description

a copy of the TrackingSlaveSD extended by muon hit formatting; interface to the database

Author
Arno Straessner, CERN arno..nosp@m.stra.nosp@m.essne.nosp@m.r@ce.nosp@m.rn.ch

Modification:

Definition at line 27 of file MuonSlaveSD.h.

Member Typedef Documentation

typedef std::vector<PSimHit> MuonSlaveSD::Collection

Definition at line 31 of file MuonSlaveSD.h.

typedef Collection::const_iterator MuonSlaveSD::const_iterator

Definition at line 32 of file MuonSlaveSD.h.

Constructor & Destructor Documentation

MuonSlaveSD::MuonSlaveSD ( MuonSubDetector d,
const SimTrackManager manager 
)

Definition at line 10 of file MuonSlaveSD.cc.

References detector.

11  :
12  TrackingSlaveSD(d->name() ), m_trackManager(manager)
13 {
14  detector=d;
15 
16 }
MuonSubDetector * detector
Definition: MuonSlaveSD.h:44
std::string name()
TrackingSlaveSD(std::string)
const SimTrackManager * m_trackManager
Definition: MuonSlaveSD.h:46
MuonSlaveSD::~MuonSlaveSD ( )
virtual

Definition at line 18 of file MuonSlaveSD.cc.

18  {
19 }

Member Function Documentation

virtual const_iterator MuonSlaveSD::begin ( void  )
inlinevirtual

Reimplemented from TrackingSlaveSD.

Definition at line 37 of file MuonSlaveSD.h.

References hits_.

37 { return hits_.begin();}
Collection hits_
Definition: MuonSlaveSD.h:41
void MuonSlaveSD::clearHits ( )
virtual

Definition at line 21 of file MuonSlaveSD.cc.

References detector, hits_, LogDebug, and MuonSubDetector::name().

22 {
23  LogDebug("MuonSimDebug") << " MuonSlaveSD::clearHits "<< detector->name() << std::endl;
24  hits_.clear();
25 }
#define LogDebug(id)
MuonSubDetector * detector
Definition: MuonSlaveSD.h:44
Collection hits_
Definition: MuonSlaveSD.h:41
std::string name()
virtual const_iterator MuonSlaveSD::end ( void  )
inlinevirtual

Reimplemented from TrackingSlaveSD.

Definition at line 38 of file MuonSlaveSD.h.

References hits_.

38 { return hits_.end();}
Collection hits_
Definition: MuonSlaveSD.h:41
bool MuonSlaveSD::format ( )
virtual

Reimplemented from TrackingSlaveSD.

Definition at line 27 of file MuonSlaveSD.cc.

References detector, hits_, MuonSubDetector::isBarrel(), MuonSubDetector::isEndcap(), MuonSubDetector::isGEM(), MuonSubDetector::isME0(), MuonSubDetector::isRPC(), LogDebug, MuonSubDetector::name(), and python.multivaluedict::sort().

28 {
29  LogDebug("MuonSimDebug") << " MuonSlaveSD "<<detector->name()<<" formatting " << hits_.size() <<" hits."<< std::endl;
30  if (detector->isBarrel()) {
31  sort(hits_.begin(),hits_.end(), FormatBarrelHits());
32  } else if (detector->isEndcap()) {
33  sort(hits_.begin(),hits_.end(), FormatEndcapHits());
34  } else if (detector->isRPC()) {
35  sort(hits_.begin(),hits_.end(), FormatRpcHits());
36  } else if (detector->isGEM()) {
37  sort(hits_.begin(),hits_.end(), FormatGemHits());
38  } else if (detector->isME0()) {
39  sort(hits_.begin(),hits_.end(), FormatMe0Hits());
40  }
41  return true;
42 }
#define LogDebug(id)
MuonSubDetector * detector
Definition: MuonSlaveSD.h:44
Collection hits_
Definition: MuonSlaveSD.h:41
std::string name()

Member Data Documentation

MuonSubDetector* MuonSlaveSD::detector
private

Definition at line 44 of file MuonSlaveSD.h.

Referenced by clearHits(), format(), and MuonSlaveSD().

Collection MuonSlaveSD::hits_
protected

Definition at line 41 of file MuonSlaveSD.h.

Referenced by begin(), clearHits(), end(), and format().

const SimTrackManager* MuonSlaveSD::m_trackManager
private

Definition at line 46 of file MuonSlaveSD.h.