CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes

TrackingSlaveSD Class Reference

#include <TrackingSlaveSD.h>

Inheritance diagram for TrackingSlaveSD:
MuonSlaveSD

List of all members.

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

Reimplemented in MuonSlaveSD.

Definition at line 14 of file TrackingSlaveSD.h.

typedef Collection::const_iterator TrackingSlaveSD::const_iterator

Reimplemented in MuonSlaveSD.

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_.

                                                 : name_(myName){

 LogDebug("HitBuildInfo")<< " TrackingSlaveSD " << name_; 

}
TrackingSlaveSD::~TrackingSlaveSD ( ) [virtual]

Definition at line 17 of file TrackingSlaveSD.cc.

{}

Member Function Documentation

virtual const_iterator TrackingSlaveSD::begin ( void  ) [inline, virtual]

Reimplemented in MuonSlaveSD.

Definition at line 25 of file TrackingSlaveSD.h.

References hits_.

{ return hits_.begin();}
virtual const_iterator TrackingSlaveSD::end ( void  ) [inline, virtual]

Reimplemented in MuonSlaveSD.

Definition at line 26 of file TrackingSlaveSD.h.

References hits_.

{ return hits_.end();}
bool TrackingSlaveSD::format ( ) [virtual]

Reimplemented in MuonSlaveSD.

Definition at line 49 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

{

  LogDebug("HitBuildInfo")<< " TrackingSlaveSD " << name_<< " formatting " << hits_.size() << " hits.";

  return true;
}
std::vector<PSimHit>& TrackingSlaveSD::hits ( ) [inline]
void TrackingSlaveSD::Initialize ( ) [virtual]

Definition at line 20 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

Referenced by PLTSensitiveDetector::clearHits(), TotemSD::clearHits(), FP420SD::clearHits(), TkAccumulatingSensitiveDetector::clearHits(), BscSD::clearHits(), and MuonSensitiveDetector::clearHits().

                                {


  LogDebug("HitBuildInfo")<< " initialize TrackingSlaveSD "<< name_;

  hits_.clear(); 
}
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 TotemSD::EndOfEvent(), FP420SD::EndOfEvent(), BscSD::EndOfEvent(), MuonSensitiveDetector::saveHit(), TkAccumulatingSensitiveDetector::sendHit(), and PLTSensitiveDetector::sendHit().

{

  LogDebug("HitBuildInfo")<<" Sent Hit " << ps << " to ROU " << name_;

  hits_.push_back(ps);
  return true;
} 
void TrackingSlaveSD::setTrackId ( PSimHit hit,
unsigned int  k 
) [protected]

Definition at line 66 of file TrackingSlaveSD.cc.

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

{ hit.theTrackId = k; }
std::string TrackingSlaveSD::type ( ) [inline]

Definition at line 24 of file TrackingSlaveSD.h.

{return "tk";}

Member Data Documentation

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

Reimplemented in MuonSlaveSD.

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().