CMS 3D CMS Logo

TrackingSlaveSD Class Reference

#include <SimDataFormats/SimHitMaker/interface/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_.

00011                                                  : name_(myName){
00012 
00013  LogDebug("HitBuildInfo")<< " TrackingSlaveSD " << name_; 
00014 
00015 }

TrackingSlaveSD::~TrackingSlaveSD (  )  [virtual]

Definition at line 17 of file TrackingSlaveSD.cc.

00018 {}


Member Function Documentation

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

Reimplemented in MuonSlaveSD.

Definition at line 25 of file TrackingSlaveSD.h.

References hits_.

00025 { return hits_.begin();}

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

Reimplemented in MuonSlaveSD.

Definition at line 26 of file TrackingSlaveSD.h.

References hits_.

00026 { return hits_.end();}

bool TrackingSlaveSD::format ( void   )  [virtual]

Reimplemented in MuonSlaveSD.

Definition at line 49 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

00050 {
00051 
00052   LogDebug("HitBuildInfo")<< " TrackingSlaveSD " << name_<< " formatting " << hits_.size() << " hits.";
00053 
00054   return true;
00055 }

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

Definition at line 23 of file TrackingSlaveSD.h.

References hits_.

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

00023 {return hits_;}

void TrackingSlaveSD::Initialize (  )  [virtual]

Definition at line 20 of file TrackingSlaveSD.cc.

References hits_, LogDebug, and name_.

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

00020                                 {
00021 
00022 
00023   LogDebug("HitBuildInfo")<< " initialize TrackingSlaveSD "<< name_;
00024 
00025   hits_.clear(); 
00026 }

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

Definition at line 22 of file TrackingSlaveSD.h.

References name_.

Referenced by TkAccumulatingSensitiveDetector::fillHits(), FP420SD::fillHits(), MuonSensitiveDetector::fillHits(), TotemSD::fillHits(), BscSD::fillHits(), FP420SD::getNames(), BscSD::getNames(), TkAccumulatingSensitiveDetector::getNames(), and MuonSensitiveDetector::getNames().

00022 { return name_; } 

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(), and TkAccumulatingSensitiveDetector::sendHit().

00058 {
00059 
00060   LogDebug("HitBuildInfo")<<" Sent Hit " << ps << " to ROU " << name_;
00061 
00062   hits_.push_back(ps);
00063   return true;
00064 } 

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

Definition at line 66 of file TrackingSlaveSD.cc.

References PSimHit::theTrackId.

00067 { hit.theTrackId = k; }

std::string TrackingSlaveSD::type ( void   )  [inline]

Definition at line 24 of file TrackingSlaveSD.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:13 2009 for CMSSW by  doxygen 1.5.4