CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
TrackingSlaveSD Class Reference

#include <TrackingSlaveSD.h>

Inheritance diagram for TrackingSlaveSD:
MuonSlaveSD

Public Types

typedef std::vector< PSimHitCollection
 
typedef Collection::const_iterator const_iterator
 

Public Member Functions

virtual const_iterator begin ()
 
virtual const_iterator end ()
 
virtual bool format ()
 
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 Member Functions

void setTrackId (PSimHit &hit, unsigned int k)
 

Protected Attributes

std::vector< PSimHithits_
 

Private Attributes

std::string name_
 

Detailed Description

Definition at line 11 of file TrackingSlaveSD.h.

Member Typedef Documentation

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

Definition at line 13 of file TrackingSlaveSD.h.

typedef Collection::const_iterator TrackingSlaveSD::const_iterator

Definition at line 14 of file TrackingSlaveSD.h.

Constructor & Destructor Documentation

TrackingSlaveSD::TrackingSlaveSD ( std::string  myName)

Definition at line 11 of file TrackingSlaveSD.cc.

References LogDebug, and name_.

11  : name_(myName) {
12  LogDebug("HitBuildInfo") << " TrackingSlaveSD " << name_;
13 }
#define LogDebug(id)
std::string name_
TrackingSlaveSD::~TrackingSlaveSD ( )
virtual

Definition at line 15 of file TrackingSlaveSD.cc.

15 {}

Member Function Documentation

virtual const_iterator TrackingSlaveSD::begin ( void  )
inlinevirtual

Reimplemented in MuonSlaveSD.

Definition at line 24 of file TrackingSlaveSD.h.

References hits_.

24 { return hits_.begin(); }
std::vector< PSimHit > hits_
virtual const_iterator TrackingSlaveSD::end ( void  )
inlinevirtual

Reimplemented in MuonSlaveSD.

Definition at line 25 of file TrackingSlaveSD.h.

References hits_.

25 { return hits_.end(); }
std::vector< PSimHit > hits_
bool TrackingSlaveSD::format ( )
virtual

Reimplemented in MuonSlaveSD.

Definition at line 46 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

46  {
47  LogDebug("HitBuildInfo") << " TrackingSlaveSD " << name_ << " formatting " << hits_.size() << " hits.";
48 
49  return true;
50 }
#define LogDebug(id)
std::vector< PSimHit > hits_
std::string name_
std::vector<PSimHit>& TrackingSlaveSD::hits ( void  )
inline

Definition at line 22 of file TrackingSlaveSD.h.

References hits_.

Referenced by TimingSD::fillHits(), MuonSensitiveDetector::fillHits(), TotemSD::fillHits(), and FP420SD::fillHits().

22 { return hits_; }
std::vector< PSimHit > hits_
void TrackingSlaveSD::Initialize ( )
virtual

Definition at line 17 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

Referenced by TimingSD::clearHits(), MuonSensitiveDetector::clearHits(), TotemSD::clearHits(), and FP420SD::clearHits().

17  {
18  LogDebug("HitBuildInfo") << " initialize TrackingSlaveSD " << name_;
19 
20  hits_.clear();
21 }
#define LogDebug(id)
std::vector< PSimHit > hits_
std::string name_
std::string TrackingSlaveSD::name ( void  ) const
inline
bool TrackingSlaveSD::processHits ( const PSimHit ps)
virtual

Definition at line 52 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

Referenced by TimingSD::EndOfEvent(), TotemSD::EndOfEvent(), FP420SD::EndOfEvent(), and MuonSensitiveDetector::saveHit().

52  {
53  LogDebug("HitBuildInfo") << " Sent Hit " << ps << " to ROU " << name_;
54 
55  hits_.push_back(ps);
56  return true;
57 }
#define LogDebug(id)
std::vector< PSimHit > hits_
std::string name_
void TrackingSlaveSD::setTrackId ( PSimHit hit,
unsigned int  k 
)
protected

Definition at line 59 of file TrackingSlaveSD.cc.

References dqmdumpme::k, and PSimHit::theTrackId.

59 { hit.theTrackId = k; }
unsigned int theTrackId
Definition: PSimHit.h:140
std::string TrackingSlaveSD::type ( )
inline

Definition at line 23 of file TrackingSlaveSD.h.

23 { return "tk"; }

Member Data Documentation

std::vector<PSimHit> TrackingSlaveSD::hits_
protected

Definition at line 28 of file TrackingSlaveSD.h.

Referenced by begin(), end(), format(), hits(), Initialize(), and processHits().

std::string TrackingSlaveSD::name_
private

Definition at line 32 of file TrackingSlaveSD.h.

Referenced by format(), Initialize(), name(), processHits(), and TrackingSlaveSD().