CMS 3D CMS Logo

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

const_iterator begin () override
 
virtual void clearHits ()
 
const_iterator end () override
 
bool format () override
 
 MuonSlaveSD (MuonSubDetector *, const SimTrackManager *)
 
 ~MuonSlaveSD () override
 
- 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 26 of file MuonSlaveSD.h.

Member Typedef Documentation

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

Definition at line 30 of file MuonSlaveSD.h.

typedef Collection::const_iterator MuonSlaveSD::const_iterator

Definition at line 31 of file MuonSlaveSD.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file MuonSlaveSD.cc.

References edmIntegrityCheck::d, and detector.

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

Definition at line 17 of file MuonSlaveSD.cc.

17  {
18 }

Member Function Documentation

const_iterator MuonSlaveSD::begin ( void  )
inlineoverridevirtual

Reimplemented from TrackingSlaveSD.

Definition at line 36 of file MuonSlaveSD.h.

References hits_.

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

Definition at line 20 of file MuonSlaveSD.cc.

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

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

Reimplemented from TrackingSlaveSD.

Definition at line 37 of file MuonSlaveSD.h.

References hits_.

37 { return hits_.end();}
Collection hits_
Definition: MuonSlaveSD.h:40
bool MuonSlaveSD::format ( )
overridevirtual

Reimplemented from TrackingSlaveSD.

Definition at line 26 of file MuonSlaveSD.cc.

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

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

Member Data Documentation

MuonSubDetector* MuonSlaveSD::detector
private

Definition at line 43 of file MuonSlaveSD.h.

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

Collection MuonSlaveSD::hits_
protected

Definition at line 40 of file MuonSlaveSD.h.

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

const SimTrackManager* MuonSlaveSD::m_trackManager
private

Definition at line 45 of file MuonSlaveSD.h.