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

◆ Amplitude

typedef float PileUpFP420::Amplitude

Definition at line 12 of file PileUpFP420.h.

◆ HitToDigisMapType

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

Definition at line 14 of file PileUpFP420.h.

◆ signal_map_type

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

Definition at line 13 of file PileUpFP420.h.

Constructor & Destructor Documentation

◆ ~PileUpFP420()

virtual PileUpFP420::~PileUpFP420 ( )
inlinevirtual

Definition at line 16 of file PileUpFP420.h.

16 {}

◆ PileUpFP420()

PileUpFP420::PileUpFP420 ( )
inline

Definition at line 18 of file PileUpFP420.h.

18 { reset(); }

References reset().

Member Function Documentation

◆ add()

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

Definition at line 13 of file PileUpFP420.cc.

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 }

References gather_cfg::cout, recoMuon::in, theMap, theMapLink, and HIPAlignmentAlgorithm_cfi::verbosity.

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

◆ dumpLink()

HitToDigisMapType PileUpFP420::dumpLink ( )
inline

Definition at line 25 of file PileUpFP420.h.

25 { return theMapLink; }

References theMapLink.

Referenced by FP420DigiMain::run().

◆ dumpSignal()

signal_map_type PileUpFP420::dumpSignal ( )
inline

Definition at line 24 of file PileUpFP420.h.

24 { return theMap; }

References theMap.

Referenced by FP420DigiMain::run().

◆ reset()

void PileUpFP420::reset ( void  )
inline

Definition at line 20 of file PileUpFP420.h.

20  {
21  resetLink();
22  resetSignal();
23  }

References resetLink(), and resetSignal().

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

◆ resetLink()

void PileUpFP420::resetLink ( )
private

Definition at line 33 of file PileUpFP420.cc.

33 { theMapLink.clear(); }

References theMapLink.

Referenced by reset().

◆ resetSignal()

void PileUpFP420::resetSignal ( )
private

Definition at line 32 of file PileUpFP420.cc.

32 { theMap.clear(); }

References theMap.

Referenced by reset().

Member Data Documentation

◆ theMap

signal_map_type PileUpFP420::theMap
private

Definition at line 31 of file PileUpFP420.h.

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

◆ theMapLink

HitToDigisMapType PileUpFP420::theMapLink
private

Definition at line 30 of file PileUpFP420.h.

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

HIPAlignmentAlgorithm_cfi.verbosity
verbosity
Definition: HIPAlignmentAlgorithm_cfi.py:7
PileUpFP420::theMapLink
HitToDigisMapType theMapLink
Definition: PileUpFP420.h:30
PileUpFP420::resetLink
void resetLink()
Definition: PileUpFP420.cc:33
gather_cfg.cout
cout
Definition: gather_cfg.py:144
PileUpFP420::Amplitude
float Amplitude
Definition: PileUpFP420.h:12
PileUpFP420::reset
void reset()
Definition: PileUpFP420.h:20
recoMuon::in
Definition: RecoMuonEnumerators.h:6
PileUpFP420::resetSignal
void resetSignal()
Definition: PileUpFP420.cc:32
PileUpFP420::theMap
signal_map_type theMap
Definition: PileUpFP420.h:31
hit
Definition: SiStripHitEffFromCalibTree.cc:88