CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

PileUpFP420 Class Reference

#include <PileUpFP420.h>

List of all members.

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 (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 ( ) [inline, virtual]

Definition at line 18 of file PileUpFP420.h.

{}
PileUpFP420::PileUpFP420 ( ) [inline]

Definition at line 20 of file PileUpFP420.h.

References reset().

{reset();}

Member Function Documentation

void PileUpFP420::add ( 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 FP420DigiMain::run().

                                                                                        {
  
  
  if(verbosity>0) {
    std::cout << " ==========================****PileUpFP420: add start       = " << std::endl;
  }
  for (HitDigitizerFP420::hit_map_type::const_iterator im = in.begin(); im!=in.end(); im++ ){
    
    theMap[(*im).first] += Amplitude((*im).second);
    
    theMapLink[(*im).first].push_back( std::pair < const PSimHit*, Amplitude >                                                     (  &hit,  Amplitude((*im).second)   )              );
    
    if(verbosity>0) {
      std::cout << "*********** Amplitude((*im).first)  = " << Amplitude((*im).first)  << std::endl;
      std::cout << " Amplitude((*im).second)  = " << Amplitude((*im).second)  << std::endl;
    }
  } // for loop
  
  if(verbosity>0) {
    std::cout << " ==========================****PileUpFP420: add end       = " << std::endl;
  }
}
HitToDigisMapType PileUpFP420::dumpLink ( ) [inline]

Definition at line 24 of file PileUpFP420.h.

References theMapLink.

Referenced by FP420DigiMain::run().

{return theMapLink;}
signal_map_type PileUpFP420::dumpSignal ( ) [inline]

Definition at line 23 of file PileUpFP420.h.

References theMap.

Referenced by FP420DigiMain::run().

{return theMap;}
void PileUpFP420::reset ( void  ) [inline]

Definition at line 22 of file PileUpFP420.h.

References resetLink(), and resetSignal().

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

void PileUpFP420::resetLink ( ) [private]

Definition at line 38 of file PileUpFP420.cc.

References theMapLink.

Referenced by reset().

                           {
  theMapLink.clear();
}
void PileUpFP420::resetSignal ( ) [private]

Definition at line 35 of file PileUpFP420.cc.

References theMap.

Referenced by reset().

                             {
  theMap.clear();
}

Member Data Documentation

Definition at line 29 of file PileUpFP420.h.

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

Definition at line 28 of file PileUpFP420.h.

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