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 | Private Member Functions | Private Attributes
SiPileUpSignals Class Reference

#include <SiPileUpSignals.h>

Public Types

typedef float Amplitude
 
typedef std::map< int,
std::vector< std::pair< const
PSimHit *, int > >, std::less
< int > > 
HitCounterToDigisMapType
 
typedef std::map< int,
std::vector< std::pair< const
PSimHit *, Amplitude >
>, std::less< int > > 
HitToDigisMapType
 

Public Member Functions

virtual void add (const std::vector< double > &locAmpl, const size_t &firstChannelWithSignal, const size_t &lastChannelWithSignal, const PSimHit *hit, const int &counter)
 
const HitCounterToDigisMapTypedumpCounterLink () const
 
const HitToDigisMapTypedumpLink () const
 
void reset ()
 
 SiPileUpSignals ()
 
virtual ~SiPileUpSignals ()
 

Private Member Functions

void resetLink ()
 

Private Attributes

HitCounterToDigisMapType theCounterMapLink
 
HitToDigisMapType theMapLink
 

Detailed Description

Class which takes the responses from each SimHit and piles-up them, within a given module. More precisely, it keeps for each strip the link to each individual measurement.

Definition at line 13 of file SiPileUpSignals.h.

Member Typedef Documentation

Definition at line 16 of file SiPileUpSignals.h.

typedef std::map< int , std::vector < std::pair < const PSimHit*, int > >, std::less<int> > SiPileUpSignals::HitCounterToDigisMapType

Definition at line 22 of file SiPileUpSignals.h.

typedef std::map< int , std::vector < std::pair < const PSimHit*, Amplitude > >, std::less<int> > SiPileUpSignals::HitToDigisMapType

Definition at line 19 of file SiPileUpSignals.h.

Constructor & Destructor Documentation

SiPileUpSignals::SiPileUpSignals ( )
inline

Definition at line 24 of file SiPileUpSignals.h.

References reset().

24 { reset(); }
virtual SiPileUpSignals::~SiPileUpSignals ( )
inlinevirtual

Definition at line 26 of file SiPileUpSignals.h.

26 { }

Member Function Documentation

void SiPileUpSignals::add ( const std::vector< double > &  locAmpl,
const size_t &  firstChannelWithSignal,
const size_t &  lastChannelWithSignal,
const PSimHit hit,
const int &  counter 
)
virtual

Definition at line 9 of file SiPileUpSignals.cc.

References theCounterMapLink, and theMapLink.

Referenced by SiStripDigitizerAlgorithm::run().

11  {
12  for (size_t iChannel=firstChannelWithSignal; iChannel<lastChannelWithSignal; ++iChannel) {
13  theMapLink[iChannel].push_back(std::pair < const PSimHit*, Amplitude >(hit,Amplitude(locAmpl[iChannel])));
14  theCounterMapLink[iChannel].push_back(std::make_pair(hit, counter));
15  }
16 }
HitToDigisMapType theMapLink
HitCounterToDigisMapType theCounterMapLink
const HitCounterToDigisMapType& SiPileUpSignals::dumpCounterLink ( ) const
inline

Definition at line 36 of file SiPileUpSignals.h.

References theCounterMapLink.

Referenced by SiStripDigitizerAlgorithm::run().

36 { return theCounterMapLink; }
HitCounterToDigisMapType theCounterMapLink
const HitToDigisMapType& SiPileUpSignals::dumpLink ( ) const
inline

Definition at line 34 of file SiPileUpSignals.h.

References theMapLink.

Referenced by SiStripDigitizerAlgorithm::run().

34 { return theMapLink; }
HitToDigisMapType theMapLink
void SiPileUpSignals::reset ( void  )
inline

Definition at line 32 of file SiPileUpSignals.h.

References resetLink().

Referenced by SiStripDigitizerAlgorithm::run(), and SiPileUpSignals().

32 { resetLink(); }
void SiPileUpSignals::resetLink ( )
private

Definition at line 4 of file SiPileUpSignals.cc.

References theCounterMapLink, and theMapLink.

Referenced by reset().

4  {
5  theMapLink.clear();
6  theCounterMapLink.clear();
7 }
HitToDigisMapType theMapLink
HitCounterToDigisMapType theCounterMapLink

Member Data Documentation

HitCounterToDigisMapType SiPileUpSignals::theCounterMapLink
private

Definition at line 41 of file SiPileUpSignals.h.

Referenced by add(), dumpCounterLink(), and resetLink().

HitToDigisMapType SiPileUpSignals::theMapLink
private

Definition at line 40 of file SiPileUpSignals.h.

Referenced by add(), dumpLink(), and resetLink().