CMS 3D CMS Logo

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_mapdumpSignal ()
 
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::RPPileUpSignals ( const edm::ParameterSet params,
RPDetId  det_id 
)

Definition at line 6 of file RPPileUpSignals.cc.

6  : det_id_(det_id) {
7  links_persistence_ = params.getParameter<bool>("RPDigiSimHitRelationsPresistence");
8  verbosity_ = params.getParameter<int>("RPVerbosity");
9 }

References links_persistence_, CalibrationSummaryClient_cfi::params, and verbosity_.

Member Function Documentation

◆ add()

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

Definition at line 16 of file RPPileUpSignals.cc.

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 }

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().

◆ dumpLinks()

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_.

◆ dumpSignal()

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

Definition at line 13 of file RPPileUpSignals.h.

References the_strip_charge_piled_up_map_.

◆ reset()

void RPPileUpSignals::reset ( void  )

Member Data Documentation

◆ det_id_

RPDetId RPPileUpSignals::det_id_
private

Definition at line 20 of file RPPileUpSignals.h.

Referenced by add().

◆ links_persistence_

bool RPPileUpSignals::links_persistence_
private

Definition at line 19 of file RPPileUpSignals.h.

Referenced by add(), and RPPileUpSignals().

◆ the_strip_charge_piled_up_map_

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().

◆ the_strip_charge_piled_up_map_links_

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().

◆ verbosity_

bool RPPileUpSignals::verbosity_
private

Definition at line 21 of file RPPileUpSignals.h.

Referenced by add(), and RPPileUpSignals().

mps_fire.i
i
Definition: mps_fire.py:428
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
RPPileUpSignals::links_persistence_
bool links_persistence_
Definition: RPPileUpSignals.h:19
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
RPPileUpSignals::the_strip_charge_piled_up_map_links_
simromanpot::strip_charge_map_links_type the_strip_charge_piled_up_map_links_
Definition: RPPileUpSignals.h:18
RPPileUpSignals::the_strip_charge_piled_up_map_
simromanpot::strip_charge_map the_strip_charge_piled_up_map_
Definition: RPPileUpSignals.h:17
RPPileUpSignals::verbosity_
bool verbosity_
Definition: RPPileUpSignals.h:21
RPPileUpSignals::det_id_
RPDetId det_id_
Definition: RPPileUpSignals.h:20