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

◆ Collection

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

Definition at line 13 of file TrackingSlaveSD.h.

◆ const_iterator

typedef Collection::const_iterator TrackingSlaveSD::const_iterator

Definition at line 14 of file TrackingSlaveSD.h.

Constructor & Destructor Documentation

◆ TrackingSlaveSD()

TrackingSlaveSD::TrackingSlaveSD ( std::string  myName)

Definition at line 11 of file TrackingSlaveSD.cc.

11  : name_(myName) {
12  LogDebug("HitBuildInfo") << " TrackingSlaveSD " << name_;
13 }

References LogDebug, and name_.

◆ ~TrackingSlaveSD()

TrackingSlaveSD::~TrackingSlaveSD ( )
virtual

Definition at line 15 of file TrackingSlaveSD.cc.

15 {}

Member Function Documentation

◆ begin()

virtual const_iterator TrackingSlaveSD::begin ( void  )
inlinevirtual

Reimplemented in MuonSlaveSD.

Definition at line 24 of file TrackingSlaveSD.h.

24 { return hits_.begin(); }

References hits_.

◆ end()

virtual const_iterator TrackingSlaveSD::end ( void  )
inlinevirtual

Reimplemented in MuonSlaveSD.

Definition at line 25 of file TrackingSlaveSD.h.

25 { return hits_.end(); }

References hits_.

◆ format()

bool TrackingSlaveSD::format ( )
virtual

Reimplemented in MuonSlaveSD.

Definition at line 46 of file TrackingSlaveSD.cc.

46  {
47  LogDebug("HitBuildInfo") << " TrackingSlaveSD " << name_ << " formatting " << hits_.size() << " hits.";
48 
49  return true;
50 }

References hits_, LogDebug, and name_.

◆ hits()

std::vector<PSimHit>& TrackingSlaveSD::hits ( void  )
inline

Definition at line 22 of file TrackingSlaveSD.h.

22 { return hits_; }

References hits_.

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

◆ Initialize()

void TrackingSlaveSD::Initialize ( )
virtual

Definition at line 17 of file TrackingSlaveSD.cc.

17  {
18  LogDebug("HitBuildInfo") << " initialize TrackingSlaveSD " << name_;
19 
20  hits_.clear();
21 }

References hits_, LogDebug, and name_.

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

◆ name()

std::string TrackingSlaveSD::name ( void  ) const
inline

◆ processHits()

bool TrackingSlaveSD::processHits ( const PSimHit ps)
virtual

Definition at line 52 of file TrackingSlaveSD.cc.

52  {
53  LogDebug("HitBuildInfo") << " Sent Hit " << ps << " to ROU " << name_;
54 
55  hits_.push_back(ps);
56  return true;
57 }

References hits_, LogDebug, and name_.

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

◆ setTrackId()

void TrackingSlaveSD::setTrackId ( PSimHit hit,
unsigned int  k 
)
protected

Definition at line 59 of file TrackingSlaveSD.cc.

59 { hit.theTrackId = k; }

References dqmdumpme::k.

◆ type()

std::string TrackingSlaveSD::type ( )
inline

Definition at line 23 of file TrackingSlaveSD.h.

23 { return "tk"; }

Member Data Documentation

◆ hits_

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

Definition at line 28 of file TrackingSlaveSD.h.

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

◆ name_

std::string TrackingSlaveSD::name_
private

Definition at line 32 of file TrackingSlaveSD.h.

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

TrackingSlaveSD::hits_
std::vector< PSimHit > hits_
Definition: TrackingSlaveSD.h:28
TrackingSlaveSD::name_
std::string name_
Definition: TrackingSlaveSD.h:32
dqmdumpme.k
k
Definition: dqmdumpme.py:60
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
hit
Definition: SiStripHitEffFromCalibTree.cc:88