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 Attributes | Private Attributes
CaloSlaveSD Class Reference

#include <CaloSlaveSD.h>

Public Types

typedef std::vector< PCaloHitCollection
 
typedef Collection::const_iterator const_iterator
 
typedef Collection::iterator iterator
 

Public Member Functions

virtual const_iterator begin ()
 
 CaloSlaveSD (std::string)
 
virtual void Clean ()
 
virtual const_iterator end ()
 
virtual bool format ()
 
Collectionhits ()
 
virtual void Initialize ()
 
std::string name () const
 
virtual bool processHits (uint32_t, double, double, double, int, uint16_t depth=0)
 
virtual void ReserveMemory (unsigned int size)
 
std::string type ()
 
virtual ~CaloSlaveSD ()
 

Protected Attributes

Collection hits_
 

Private Attributes

std::string name_
 

Detailed Description

Definition at line 16 of file CaloSlaveSD.h.

Member Typedef Documentation

typedef std::vector<PCaloHit> CaloSlaveSD::Collection

Definition at line 19 of file CaloSlaveSD.h.

typedef Collection::const_iterator CaloSlaveSD::const_iterator

Definition at line 21 of file CaloSlaveSD.h.

typedef Collection::iterator CaloSlaveSD::iterator

Definition at line 20 of file CaloSlaveSD.h.

Constructor & Destructor Documentation

CaloSlaveSD::CaloSlaveSD ( std::string  n)

Definition at line 13 of file CaloSlaveSD.cc.

References LogDebug.

13  : name_(n) {
14 
15  LogDebug("HitBuildInfo") << "CaloSlaveSD Called with name " << n << "\n";
16 
17 }
#define LogDebug(id)
std::string name_
Definition: CaloSlaveSD.h:40
CaloSlaveSD::~CaloSlaveSD ( )
virtual

Definition at line 19 of file CaloSlaveSD.cc.

19 {}

Member Function Documentation

virtual const_iterator CaloSlaveSD::begin ( void  )
inlinevirtual

Definition at line 31 of file CaloSlaveSD.h.

References hits_.

31 { return hits_.begin();}
Collection hits_
Definition: CaloSlaveSD.h:37
void CaloSlaveSD::Clean ( )
virtual

Definition at line 43 of file CaloSlaveSD.cc.

References hits_, LogDebug, and name_.

Referenced by CaloSD::fillHits().

43  {
44 
45  LogDebug("HitBuildIndo") << "CaloSlaveSD " << name_ << " cleaning the collection";
46  Collection().swap(hits_);
47 
48 }
#define LogDebug(id)
Collection hits_
Definition: CaloSlaveSD.h:37
std::string name_
Definition: CaloSlaveSD.h:40
std::vector< PCaloHit > Collection
Definition: CaloSlaveSD.h:19
virtual const_iterator CaloSlaveSD::end ( void  )
inlinevirtual

Definition at line 32 of file CaloSlaveSD.h.

References hits_.

32 { return hits_.end();}
Collection hits_
Definition: CaloSlaveSD.h:37
bool CaloSlaveSD::format ( )
virtual

Definition at line 27 of file CaloSlaveSD.cc.

References hits_, LogDebug, and name_.

27  {
28 
29  LogDebug("HitBuildInfo") << " CaloSlaveSD " << name_ << "formatting "
30  << hits_.size() << " hits.";
31  return true;
32 }
#define LogDebug(id)
Collection hits_
Definition: CaloSlaveSD.h:37
std::string name_
Definition: CaloSlaveSD.h:40
Collection& CaloSlaveSD::hits ( )
inline

Definition at line 29 of file CaloSlaveSD.h.

References hits_.

Referenced by CaloSD::fillHits().

29 { return hits_; }
Collection hits_
Definition: CaloSlaveSD.h:37
void CaloSlaveSD::Initialize ( )
virtual

Definition at line 21 of file CaloSlaveSD.cc.

References hits_, LogDebug, and name_.

Referenced by CaloSD::clearHits().

21  {
22 
23  LogDebug("HitBuildInfo") << " initialize CaloSlaveSD "<< name_ << "\n";
24  hits_.clear();
25 }
#define LogDebug(id)
Collection hits_
Definition: CaloSlaveSD.h:37
std::string name_
Definition: CaloSlaveSD.h:40
std::string CaloSlaveSD::name ( ) const
inline

Definition at line 26 of file CaloSlaveSD.h.

References name_.

Referenced by BeautifulSoup.Tag::_invert(), and CaloSD::fillHits().

26 { return name_; }
std::string name_
Definition: CaloSlaveSD.h:40
bool CaloSlaveSD::processHits ( uint32_t  unitID,
double  eDepEM,
double  eDepHad,
double  tSlice,
int  tkID,
uint16_t  depth = 0 
)
virtual

Definition at line 34 of file CaloSlaveSD.cc.

References hits_, LogDebug, and name_.

Referenced by CaloSD::saveHit().

35  {
36 
37  PCaloHit aCal = PCaloHit (unitID, eDepEM, eDepHad, tSlice, tkID, depth);
38  LogDebug("HitBuildInfo") <<" Sent Hit " << aCal << " to ROU " << name_;
39  hits_.push_back(aCal);
40  return true;
41 }
#define LogDebug(id)
Collection hits_
Definition: CaloSlaveSD.h:37
std::string name_
Definition: CaloSlaveSD.h:40
void CaloSlaveSD::ReserveMemory ( unsigned int  size)
virtual

Definition at line 50 of file CaloSlaveSD.cc.

References hits_, and findQualityFiles::size.

Referenced by CaloSD::update().

50  {
51 
52  if ( hits_.capacity() < size ) hits_.reserve(size);
53 
54 }
Collection hits_
Definition: CaloSlaveSD.h:37
tuple size
Write out results.
std::string CaloSlaveSD::type ( )
inline

Definition at line 30 of file CaloSlaveSD.h.

30 { return "calo"; }

Member Data Documentation

Collection CaloSlaveSD::hits_
protected

Definition at line 37 of file CaloSlaveSD.h.

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

std::string CaloSlaveSD::name_
private