CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPPileUpSignals.cc
Go to the documentation of this file.
1 
4 #include <iostream>
5 
7  links_persistence_ = params.getParameter<bool>("RPDigiSimHitRelationsPresistence");
8  verbosity_ = params.getParameter<int>("RPVerbosity");
9 }
10 
14 }
15 
16 void RPPileUpSignals::add(const simromanpot::strip_charge_map &charge_induced, int PSimHitIndex) {
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_
void add(const simromanpot::strip_charge_map &charge_induced, int PSimHitIndex)
simromanpot::strip_charge_map_links_type the_strip_charge_piled_up_map_links_
RPPileUpSignals(const edm::ParameterSet &params, RPDetId det_id)
uint32_t RPDetId
Definition: RPSimTypes.h:11
Log< level::Info, false > LogInfo
std::map< unsigned short, double > strip_charge_map
Definition: RPSimTypes.h:14
T getParameter(std::string const &) const
Definition: ParameterSet.h:303