SimRomanPot
SimFP420
src
PileUpFP420.cc
Go to the documentation of this file.
1
// File: PileUpFP420.cc
3
// Date: 12.2006
4
// Description: PileUpFP420 for FP420
5
// Modifications:
7
//#include "SimG4CMS/FP420/interface/FP420G4HitCollection.h"
8
//#include "SimG4CMS/FP420/interface/FP420G4Hit.h"
9
#include "
SimDataFormats/TrackingHit/interface/PSimHit.h
"
10
#include "
SimRomanPot/SimFP420/interface/PileUpFP420.h
"
11
//#include "SimDataFormats/TrackingHit/interface/PSimHitContainer.h"
12
13
void
PileUpFP420::add
(
const
HitDigitizerFP420::hit_map_type
&
in
,
const
PSimHit
&
hit
,
int
verbosity
) {
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
}
32
void
PileUpFP420::resetSignal
() {
theMap
.clear(); }
33
void
PileUpFP420::resetLink
() {
theMapLink
.clear(); }
ctppsCommonDQMSource_cfi.verbosity
verbosity
Definition:
ctppsCommonDQMSource_cfi.py:14
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
HitDigitizerFP420::hit_map_type
std::map< int, float, std::less< int > > hit_map_type
Definition:
HitDigitizerFP420.h:18
PSimHit.h
PileUpFP420::add
virtual void add(const HitDigitizerFP420::hit_map_type &, const PSimHit &hit, int)
Definition:
PileUpFP420.cc:13
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
PileUpFP420::resetSignal
void resetSignal()
Definition:
PileUpFP420.cc:32
PileUpFP420::theMap
signal_map_type theMap
Definition:
PileUpFP420.h:31
PSimHit
Definition:
PSimHit.h:15
PileUpFP420.h
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16