CMS 3D CMS Logo

MuonSlaveSD Class Reference

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

#include <SimG4CMS/Muon/interface/MuonSlaveSD.h>

Inheritance diagram for MuonSlaveSD:

TrackingSlaveSD

List of all members.

Public Types

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 ()

Protected Attributes

Collection hits_

Private Attributes

MuonSubDetectordetector
const SimTrackManagerm_trackManager


Detailed Description

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

Author:
Arno Straessner, CERN <arno.straessner@cern.ch>
Modification:

Definition at line 27 of file MuonSlaveSD.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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]

Definition at line 18 of file MuonSlaveSD.cc.

00018                           { 
00019 }


Member Function Documentation

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();}

bool MuonSlaveSD::format ( void   )  [virtual]

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 }


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]

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.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:28:51 2009 for CMSSW by  doxygen 1.5.4