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.

References LogDebug, and name_.

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

◆ ~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.

References hits_.

24 { return hits_.begin(); }
std::vector< PSimHit > hits_

◆ end()

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_

◆ format()

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 }
std::vector< PSimHit > hits_
std::string name_
#define LogDebug(id)

◆ hits()

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_

◆ Initialize()

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 }
std::vector< PSimHit > hits_
std::string name_
#define LogDebug(id)

◆ name()

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

◆ processHits()

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 }
std::vector< PSimHit > hits_
std::string name_
#define LogDebug(id)

◆ setTrackId()

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

Definition at line 59 of file TrackingSlaveSD.cc.

References isotrackApplyRegressor::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().