CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Attributes | Private Attributes

MuonSlaveSD Class Reference

#include <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.

                                                        : 
  TrackingSlaveSD(d->name() ), m_trackManager(manager)
{
  detector=d;

}
MuonSlaveSD::~MuonSlaveSD ( ) [virtual]

Definition at line 18 of file MuonSlaveSD.cc.

                          { 
}

Member Function Documentation

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

{
  LogDebug("MuonSimDebug") << " MuonSlaveSD::clearHits "<< detector->name() << std::endl;
  hits_.clear();
}
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;
}

Member Data Documentation

Definition at line 44 of file MuonSlaveSD.h.

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

Reimplemented from TrackingSlaveSD.

Definition at line 41 of file MuonSlaveSD.h.

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

Definition at line 46 of file MuonSlaveSD.h.