CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 14 of file TrackingSlaveSD.h.

typedef Collection::const_iterator TrackingSlaveSD::const_iterator

Definition at line 15 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 
13  LogDebug("HitBuildInfo")<< " TrackingSlaveSD " << name_;
14 
15 }
#define LogDebug(id)
std::string name_
TrackingSlaveSD::~TrackingSlaveSD ( )
virtual

Definition at line 17 of file TrackingSlaveSD.cc.

18 {}

Member Function Documentation

virtual const_iterator TrackingSlaveSD::begin ( void  )
inlinevirtual

Reimplemented in MuonSlaveSD.

Definition at line 25 of file TrackingSlaveSD.h.

References hits_.

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

Reimplemented in MuonSlaveSD.

Definition at line 26 of file TrackingSlaveSD.h.

References hits_.

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

Reimplemented in MuonSlaveSD.

Definition at line 49 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

50 {
51 
52  LogDebug("HitBuildInfo")<< " TrackingSlaveSD " << name_<< " formatting " << hits_.size() << " hits.";
53 
54  return true;
55 }
#define LogDebug(id)
std::vector< PSimHit > hits_
std::string name_
std::vector<PSimHit>& TrackingSlaveSD::hits ( void  )
inline
void TrackingSlaveSD::Initialize ( )
virtual

Definition at line 20 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

Referenced by Bcm1fSD::clearHits(), PltSD::clearHits(), TkAccumulatingSensitiveDetector::clearHits(), FastTimerSD::clearHits(), BHMSD::clearHits(), TotemSD::clearHits(), MuonSensitiveDetector::clearHits(), BscSD::clearHits(), and FP420SD::clearHits().

20  {
21 
22 
23  LogDebug("HitBuildInfo")<< " initialize TrackingSlaveSD "<< name_;
24 
25  hits_.clear();
26 }
#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 57 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

Referenced by FastTimerSD::EndOfEvent(), BHMSD::EndOfEvent(), TotemSD::EndOfEvent(), BscSD::EndOfEvent(), FP420SD::EndOfEvent(), MuonSensitiveDetector::saveHit(), Bcm1fSD::sendHit(), PltSD::sendHit(), and TkAccumulatingSensitiveDetector::sendHit().

58 {
59 
60  LogDebug("HitBuildInfo")<<" Sent Hit " << ps << " to ROU " << name_;
61 
62  hits_.push_back(ps);
63  return true;
64 }
#define LogDebug(id)
std::vector< PSimHit > hits_
std::string name_
void TrackingSlaveSD::setTrackId ( PSimHit hit,
unsigned int  k 
)
protected

Definition at line 66 of file TrackingSlaveSD.cc.

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

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

Definition at line 24 of file TrackingSlaveSD.h.

Referenced by cuy.ValElement::__init__().

24 {return "tk";}

Member Data Documentation

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

Definition at line 29 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().