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
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 14 of file PileUpFP420.h.

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

Definition at line 16 of file PileUpFP420.h.

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

Definition at line 15 of file PileUpFP420.h.

Constructor & Destructor Documentation

virtual PileUpFP420::~PileUpFP420 ( )
inlinevirtual

Definition at line 18 of file PileUpFP420.h.

18 {}
PileUpFP420::PileUpFP420 ( )
inline

Definition at line 20 of file PileUpFP420.h.

References reset().

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

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 counter.Counter::register(), and FP420DigiMain::run().

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

Definition at line 24 of file PileUpFP420.h.

References theMapLink.

Referenced by FP420DigiMain::run().

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

Definition at line 23 of file PileUpFP420.h.

References theMap.

Referenced by FP420DigiMain::run().

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

Definition at line 22 of file PileUpFP420.h.

References resetLink(), and resetSignal().

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

void resetLink()
Definition: PileUpFP420.cc:38
void resetSignal()
Definition: PileUpFP420.cc:35
void PileUpFP420::resetLink ( )
private

Definition at line 38 of file PileUpFP420.cc.

References theMapLink.

Referenced by reset().

38  {
39  theMapLink.clear();
40 }
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:28
void PileUpFP420::resetSignal ( )
private

Definition at line 35 of file PileUpFP420.cc.

References theMap.

Referenced by reset().

35  {
36  theMap.clear();
37 }
signal_map_type theMap
Definition: PileUpFP420.h:29

Member Data Documentation

signal_map_type PileUpFP420::theMap
private

Definition at line 29 of file PileUpFP420.h.

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

HitToDigisMapType PileUpFP420::theMapLink
private

Definition at line 28 of file PileUpFP420.h.

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