CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
RPPileUpSignals Class Reference

#include <RPPileUpSignals.h>

Public Member Functions

void add (const simromanpot::strip_charge_map &charge_induced, int PSimHitIndex)
 
simromanpot::strip_charge_map_links_typedumpLinks ()
 
const
simromanpot::strip_charge_map
dumpSignal ()
 
void reset ()
 
 RPPileUpSignals (const edm::ParameterSet &params, RPDetId det_id)
 

Private Attributes

RPDetId det_id_
 
bool links_persistence_
 
simromanpot::strip_charge_map the_strip_charge_piled_up_map_
 
simromanpot::strip_charge_map_links_type the_strip_charge_piled_up_map_links_
 
bool verbosity_
 

Detailed Description

Definition at line 8 of file RPPileUpSignals.h.

Constructor & Destructor Documentation

RPPileUpSignals::RPPileUpSignals ( const edm::ParameterSet params,
RPDetId  det_id 
)

Definition at line 6 of file RPPileUpSignals.cc.

References edm::ParameterSet::getParameter(), links_persistence_, and verbosity_.

6  : det_id_(det_id) {
7  links_persistence_ = params.getParameter<bool>("RPDigiSimHitRelationsPresistence");
8  verbosity_ = params.getParameter<int>("RPVerbosity");
9 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

void RPPileUpSignals::add ( const simromanpot::strip_charge_map charge_induced,
int  PSimHitIndex 
)

Definition at line 16 of file RPPileUpSignals.cc.

References det_id_, mps_fire::i, links_persistence_, the_strip_charge_piled_up_map_, the_strip_charge_piled_up_map_links_, and verbosity_.

Referenced by counter.Counter::register().

16  {
17  for (simromanpot::strip_charge_map::const_iterator i = charge_induced.begin(); i != charge_induced.end(); ++i) {
18  the_strip_charge_piled_up_map_[i->first] += i->second;
19  if (links_persistence_ && i->second > 0) {
20  the_strip_charge_piled_up_map_links_[i->first].push_back(std::pair<int, double>(PSimHitIndex, i->second));
21  if (verbosity_) {
22  edm::LogInfo("RPPileUpSignals") << "Det id=" << det_id_ << " strip=" << i->first << " charge=" << i->second
23  << "\n";
24  }
25  }
26  }
27 }
simromanpot::strip_charge_map the_strip_charge_piled_up_map_
simromanpot::strip_charge_map_links_type the_strip_charge_piled_up_map_links_
Log< level::Info, false > LogInfo
simromanpot::strip_charge_map_links_type& RPPileUpSignals::dumpLinks ( )
inline

Definition at line 14 of file RPPileUpSignals.h.

References the_strip_charge_piled_up_map_links_.

simromanpot::strip_charge_map_links_type the_strip_charge_piled_up_map_links_
const simromanpot::strip_charge_map& RPPileUpSignals::dumpSignal ( )
inline

Definition at line 13 of file RPPileUpSignals.h.

References the_strip_charge_piled_up_map_.

simromanpot::strip_charge_map the_strip_charge_piled_up_map_
void RPPileUpSignals::reset ( void  )

Definition at line 11 of file RPPileUpSignals.cc.

References the_strip_charge_piled_up_map_, and the_strip_charge_piled_up_map_links_.

11  {
14 }
simromanpot::strip_charge_map the_strip_charge_piled_up_map_
simromanpot::strip_charge_map_links_type the_strip_charge_piled_up_map_links_

Member Data Documentation

RPDetId RPPileUpSignals::det_id_
private

Definition at line 20 of file RPPileUpSignals.h.

Referenced by add().

bool RPPileUpSignals::links_persistence_
private

Definition at line 19 of file RPPileUpSignals.h.

Referenced by add(), and RPPileUpSignals().

simromanpot::strip_charge_map RPPileUpSignals::the_strip_charge_piled_up_map_
private

Definition at line 17 of file RPPileUpSignals.h.

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

simromanpot::strip_charge_map_links_type RPPileUpSignals::the_strip_charge_piled_up_map_links_
private

Definition at line 18 of file RPPileUpSignals.h.

Referenced by add(), dumpLinks(), and reset().

bool RPPileUpSignals::verbosity_
private

Definition at line 21 of file RPPileUpSignals.h.

Referenced by add(), and RPPileUpSignals().