CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
PileUpFP420 Class Reference

#include <PileUpFP420.h>

Public Types

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

Public Member Functions

virtual void add (const HitDigitizerFP420::hit_map_type &, const PSimHit &hit, int)
 
HitToDigisMapType dumpLink ()
 
signal_map_type dumpSignal ()
 
 PileUpFP420 ()
 
void reset ()
 
virtual ~PileUpFP420 ()
 

Private Member Functions

void resetLink ()
 
void resetSignal ()
 

Private Attributes

signal_map_type theMap
 
HitToDigisMapType theMapLink
 

Detailed Description

Definition at line 10 of file PileUpFP420.h.

Member Typedef Documentation

typedef float PileUpFP420::Amplitude

Definition at line 12 of file PileUpFP420.h.

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

Definition at line 14 of file PileUpFP420.h.

typedef std::map<int, Amplitude, std::less<int> > PileUpFP420::signal_map_type

Definition at line 13 of file PileUpFP420.h.

Constructor & Destructor Documentation

virtual PileUpFP420::~PileUpFP420 ( )
inlinevirtual

Definition at line 16 of file PileUpFP420.h.

16 {}
PileUpFP420::PileUpFP420 ( )
inline

Definition at line 18 of file PileUpFP420.h.

References add(), and reset().

18 { reset(); }
void reset()
Definition: PileUpFP420.h:20

Member Function Documentation

void PileUpFP420::add ( const HitDigitizerFP420::hit_map_type in,
const PSimHit hit,
int  verbosity 
)
virtual

Definition at line 13 of file PileUpFP420.cc.

References gather_cfg::cout, theMap, and theMapLink.

Referenced by PileUpFP420(), counter.Counter::register(), and FP420DigiMain::run().

13  {
14  if (verbosity > 0) {
15  std::cout << " ==========================****PileUpFP420: add start = " << std::endl;
16  }
17  for (HitDigitizerFP420::hit_map_type::const_iterator im = in.begin(); im != in.end(); im++) {
18  theMap[(*im).first] += Amplitude((*im).second);
19 
20  theMapLink[(*im).first].push_back(std::pair<const PSimHit *, Amplitude>(&hit, Amplitude((*im).second)));
21 
22  if (verbosity > 0) {
23  std::cout << "*********** Amplitude((*im).first) = " << Amplitude((*im).first) << std::endl;
24  std::cout << " Amplitude((*im).second) = " << Amplitude((*im).second) << std::endl;
25  }
26  } // for loop
27 
28  if (verbosity > 0) {
29  std::cout << " ==========================****PileUpFP420: add end = " << std::endl;
30  }
31 }
signal_map_type theMap
Definition: PileUpFP420.h:31
float Amplitude
Definition: PileUpFP420.h:12
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:30
HitToDigisMapType PileUpFP420::dumpLink ( )
inline

Definition at line 25 of file PileUpFP420.h.

References resetLink(), resetSignal(), and theMapLink.

Referenced by FP420DigiMain::run().

25 { return theMapLink; }
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:30
signal_map_type PileUpFP420::dumpSignal ( )
inline

Definition at line 24 of file PileUpFP420.h.

References theMap.

Referenced by FP420DigiMain::run().

24 { return theMap; }
signal_map_type theMap
Definition: PileUpFP420.h:31
void PileUpFP420::reset ( void  )
inline

Definition at line 20 of file PileUpFP420.h.

References resetLink(), and resetSignal().

Referenced by PileUpFP420(), and FP420DigiMain::run().

20  {
21  resetLink();
22  resetSignal();
23  }
void resetLink()
Definition: PileUpFP420.cc:33
void resetSignal()
Definition: PileUpFP420.cc:32
void PileUpFP420::resetLink ( )
private

Definition at line 33 of file PileUpFP420.cc.

References theMapLink.

Referenced by dumpLink(), and reset().

33 { theMapLink.clear(); }
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:30
void PileUpFP420::resetSignal ( )
private

Definition at line 32 of file PileUpFP420.cc.

References theMap.

Referenced by dumpLink(), and reset().

32 { theMap.clear(); }
signal_map_type theMap
Definition: PileUpFP420.h:31

Member Data Documentation

signal_map_type PileUpFP420::theMap
private

Definition at line 31 of file PileUpFP420.h.

Referenced by add(), dumpSignal(), and resetSignal().

HitToDigisMapType PileUpFP420::theMapLink
private

Definition at line 30 of file PileUpFP420.h.

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