#include <SimG4CMS/Muon/interface/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 |
Modification:
Definition at line 27 of file MuonSlaveSD.h.
typedef std::vector<PSimHit> MuonSlaveSD::Collection |
typedef Collection::const_iterator MuonSlaveSD::const_iterator |
MuonSlaveSD::MuonSlaveSD | ( | MuonSubDetector * | d, | |
const SimTrackManager * | manager | |||
) |
Definition at line 10 of file MuonSlaveSD.cc.
References detector.
00011 : 00012 TrackingSlaveSD(d->name() ), m_trackManager(manager) 00013 { 00014 detector=d; 00015 00016 }
MuonSlaveSD::~MuonSlaveSD | ( | ) | [virtual] |
virtual const_iterator MuonSlaveSD::begin | ( | void | ) | [inline, virtual] |
Reimplemented from TrackingSlaveSD.
Definition at line 37 of file MuonSlaveSD.h.
References hits_.
00037 { return hits_.begin();}
void MuonSlaveSD::clearHits | ( | ) | [virtual] |
Definition at line 21 of file MuonSlaveSD.cc.
References detector, lat::endl(), hits_, LogDebug, and MuonSubDetector::name().
00022 { 00023 LogDebug("MuonSimDebug") << " MuonSlaveSD::clearHits "<< detector->name() << std::endl; 00024 hits_.clear(); 00025 }
virtual const_iterator MuonSlaveSD::end | ( | void | ) | [inline, virtual] |
Reimplemented from TrackingSlaveSD.
Definition at line 38 of file MuonSlaveSD.h.
References hits_.
00038 { return hits_.end();}
Reimplemented from TrackingSlaveSD.
Definition at line 27 of file MuonSlaveSD.cc.
References detector, lat::endl(), hits_, MuonSubDetector::isBarrel(), MuonSubDetector::isEndcap(), MuonSubDetector::isRpc(), LogDebug, MuonSubDetector::name(), and python::multivaluedict::sort().
00028 { 00029 LogDebug("MuonSimDebug") << " MuonSlaveSD "<<detector->name()<<" formatting " << hits_.size() <<" hits."<< std::endl; 00030 if (detector->isBarrel()) { 00031 sort(hits_.begin(),hits_.end(), FormatBarrelHits()); 00032 } else if (detector->isEndcap()) { 00033 sort(hits_.begin(),hits_.end(), FormatEndcapHits()); 00034 } else if (detector->isRpc()) { 00035 sort(hits_.begin(),hits_.end(), FormatRpcHits()); 00036 } 00037 00038 return true; 00039 }
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.