#include <MuonSlaveSD.h>
Public Types | |
typedef std::vector< PSimHit > | Collection |
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 () |
Protected Attributes | |
Collection | hits_ |
Private Attributes | |
MuonSubDetector * | detector |
const SimTrackManager * | m_trackManager |
a copy of the TrackingSlaveSD extended by muon hit formatting; interface to the database
Modification:
Definition at line 27 of file MuonSlaveSD.h.
typedef std::vector<PSimHit> MuonSlaveSD::Collection |
Reimplemented from TrackingSlaveSD.
Definition at line 31 of file MuonSlaveSD.h.
typedef Collection::const_iterator MuonSlaveSD::const_iterator |
Reimplemented from TrackingSlaveSD.
Definition at line 32 of file MuonSlaveSD.h.
MuonSlaveSD::MuonSlaveSD | ( | MuonSubDetector * | d, |
const SimTrackManager * | manager | ||
) |
Definition at line 10 of file MuonSlaveSD.cc.
References detector.
: TrackingSlaveSD(d->name() ), m_trackManager(manager) { detector=d; }
MuonSlaveSD::~MuonSlaveSD | ( | ) | [virtual] |
Definition at line 18 of file MuonSlaveSD.cc.
{ }
virtual const_iterator MuonSlaveSD::begin | ( | void | ) | [inline, virtual] |
Reimplemented from TrackingSlaveSD.
Definition at line 37 of file MuonSlaveSD.h.
References hits_.
{ return hits_.begin();}
void MuonSlaveSD::clearHits | ( | ) | [virtual] |
Definition at line 21 of file MuonSlaveSD.cc.
References detector, hits_, LogDebug, and MuonSubDetector::name().
virtual const_iterator MuonSlaveSD::end | ( | void | ) | [inline, virtual] |
Reimplemented from TrackingSlaveSD.
Definition at line 38 of file MuonSlaveSD.h.
References hits_.
{ return hits_.end();}
bool MuonSlaveSD::format | ( | ) | [virtual] |
Reimplemented from TrackingSlaveSD.
Definition at line 27 of file MuonSlaveSD.cc.
References detector, hits_, MuonSubDetector::isBarrel(), MuonSubDetector::isEndcap(), MuonSubDetector::isRpc(), LogDebug, MuonSubDetector::name(), and python::multivaluedict::sort().
{ LogDebug("MuonSimDebug") << " MuonSlaveSD "<<detector->name()<<" formatting " << hits_.size() <<" hits."<< std::endl; if (detector->isBarrel()) { sort(hits_.begin(),hits_.end(), FormatBarrelHits()); } else if (detector->isEndcap()) { sort(hits_.begin(),hits_.end(), FormatEndcapHits()); } else if (detector->isRpc()) { sort(hits_.begin(),hits_.end(), FormatRpcHits()); } return true; }
MuonSubDetector* MuonSlaveSD::detector [private] |
Definition at line 44 of file MuonSlaveSD.h.
Referenced by clearHits(), format(), and MuonSlaveSD().
Collection MuonSlaveSD::hits_ [protected] |
Reimplemented from TrackingSlaveSD.
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.