CMS 3D CMS Logo

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 15 of file CaloSlaveSD.h.

Member Typedef Documentation

◆ Collection

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

Definition at line 17 of file CaloSlaveSD.h.

◆ const_iterator

typedef Collection::const_iterator CaloSlaveSD::const_iterator

Definition at line 19 of file CaloSlaveSD.h.

◆ iterator

typedef Collection::iterator CaloSlaveSD::iterator

Definition at line 18 of file CaloSlaveSD.h.

Constructor & Destructor Documentation

◆ CaloSlaveSD()

CaloSlaveSD::CaloSlaveSD ( std::string  n)

Definition at line 14 of file CaloSlaveSD.cc.

14  : name_(n) {
15  LogDebug("HitBuildInfo") << "CaloSlaveSD Called with name " << n << "\n";
16 }

References LogDebug, and dqmiodumpmetadata::n.

◆ ~CaloSlaveSD()

CaloSlaveSD::~CaloSlaveSD ( )
virtual

Definition at line 18 of file CaloSlaveSD.cc.

18 {}

Member Function Documentation

◆ begin()

virtual const_iterator CaloSlaveSD::begin ( void  )
inlinevirtual

Definition at line 29 of file CaloSlaveSD.h.

29 { return hits_.begin(); }

References hits_.

◆ Clean()

void CaloSlaveSD::Clean ( )
virtual

Definition at line 37 of file CaloSlaveSD.cc.

37  {
38  LogDebug("HitBuildIndo") << "CaloSlaveSD " << name_ << " cleaning the collection";
39  Collection().swap(hits_);
40 }

References hits_, LogDebug, and name_.

◆ end()

virtual const_iterator CaloSlaveSD::end ( void  )
inlinevirtual

Definition at line 30 of file CaloSlaveSD.h.

30 { return hits_.end(); }

References hits_.

◆ format()

bool CaloSlaveSD::format ( )
virtual

Definition at line 25 of file CaloSlaveSD.cc.

25  {
26  LogDebug("HitBuildInfo") << " CaloSlaveSD " << name_ << "formatting " << hits_.size() << " hits.";
27  return true;
28 }

References hits_, LogDebug, and name_.

◆ hits()

Collection& CaloSlaveSD::hits ( void  )
inline

Definition at line 27 of file CaloSlaveSD.h.

27 { return hits_; }

References hits_.

◆ Initialize()

void CaloSlaveSD::Initialize ( )
virtual

Definition at line 20 of file CaloSlaveSD.cc.

20  {
21  LogDebug("HitBuildInfo") << " initialize CaloSlaveSD " << name_ << "\n";
22  hits_.clear();
23 }

References hits_, LogDebug, and name_.

◆ name()

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

Definition at line 24 of file CaloSlaveSD.h.

24 { return name_; }

References name_.

Referenced by config.CFG::__str__(), and validation.Sample::digest().

◆ processHits()

bool CaloSlaveSD::processHits ( uint32_t  unitID,
double  eDepEM,
double  eDepHad,
double  tSlice,
int  tkID,
uint16_t  depth = 0 
)
virtual

Definition at line 30 of file CaloSlaveSD.cc.

30  {
31  PCaloHit aCal = PCaloHit(unitID, eDepEM, eDepHad, tSlice, tkID, depth);
32  LogDebug("HitBuildInfo") << " Sent Hit " << aCal << " to ROU " << name_;
33  hits_.push_back(aCal);
34  return true;
35 }

References LEDCalibrationChannels::depth, hits_, LogDebug, and name_.

◆ ReserveMemory()

void CaloSlaveSD::ReserveMemory ( unsigned int  size)
virtual

Definition at line 42 of file CaloSlaveSD.cc.

42  {
43  if (hits_.capacity() < size)
44  hits_.reserve(size);
45 }

References hits_, and findQualityFiles::size.

◆ type()

std::string CaloSlaveSD::type ( )
inline

Definition at line 28 of file CaloSlaveSD.h.

28 { return "calo"; }

Member Data Documentation

◆ hits_

Collection CaloSlaveSD::hits_
protected

Definition at line 35 of file CaloSlaveSD.h.

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

◆ name_

std::string CaloSlaveSD::name_
private

Definition at line 38 of file CaloSlaveSD.h.

Referenced by Clean(), format(), Initialize(), name(), and processHits().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CaloSlaveSD::Collection
std::vector< PCaloHit > Collection
Definition: CaloSlaveSD.h:17
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
PCaloHit
Definition: PCaloHit.h:8
CaloSlaveSD::hits_
Collection hits_
Definition: CaloSlaveSD.h:35
CaloSlaveSD::name_
std::string name_
Definition: CaloSlaveSD.h:38
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443