|
|
Go to the documentation of this file.
16 #include "CLHEP/Random/RandFlat.h"
17 #include "CLHEP/Random/RandGauss.h"
20 #include <gsl/gsl_sf_erf.h>
30 edm::LogInfo(
"SimRomanPotSimFP420") <<
"Creating a FP420DigiMain";
123 edm::LogInfo(
"SimRomanPotSimFP420") <<
"FP420DigiMain end of constructor";
145 std::vector<PSimHit>::const_iterator simHitIter =
input.begin();
146 std::vector<PSimHit>::const_iterator simHitIterEnd =
input.end();
147 for (; simHitIter != simHitIterEnd; ++simHitIter) {
148 const PSimHit ihit = *simHitIter;
157 float tof = ihit.
tof();
161 std::cout <<
" *******FP420DigiMain: intindex= " << iu << std::endl;
162 std::cout <<
" tof= " << tof <<
" EnergyLoss= " << losenergy <<
" pabs= " << ihit.
pabs() << std::endl;
169 <<
" trackId= " << ihit.
trackId() << std::endl;
172 std::cout <<
" bfield= " << bfield << std::endl;
176 std::cout <<
" tof= " << tof <<
" EnergyLoss= " << losenergy <<
" pabs= " << ihit.
pabs() << std::endl;
183 std::cout <<
" inside tof: OK " << std::endl;
200 afterNoise = theSignal;
217 std::cout <<
" ****FP420DigiMain: push_digis start: do for loop dm.size()=" <<
dm.size() << std::endl;
223 for (DigitalMapType::const_iterator
i =
dm.begin();
i !=
dm.end();
i++) {
231 std::cout <<
" ****FP420DigiMain:push_digis: ndigis = " <<
ndigis << std::endl;
232 std::cout <<
"push_digis: strip = " << (*i).first <<
" adc = " << (*i).second << std::endl;
240 for (HitToDigisMapType::const_iterator mi = htd.begin(); mi != htd.end(); mi++) {
242 if (
dm.find((*mi).first) !=
dm.end()) {
245 map<const PSimHit *, Amplitude> totalAmplitudePerSimHit;
246 for (std::vector<std::pair<const PSimHit *, Amplitude>>::const_iterator simul = (*mi).second.begin();
247 simul != (*mi).second.end();
249 totalAmplitudePerSimHit[(*simul).first] += (*simul).second;
hit_map_type processHit(const PSimHit &, const G4ThreeVector &, int, int, double, int, double, double, int)
ZeroSuppressFP420 * theZSuppressFP420
static const std::string input
void push_digis(const DigitalMapType &, const HitToDigisMapType &, const PileUpFP420::signal_map_type &)
DigiConverterFP420 * theDConverterFP420
PileUpFP420 * thePileUpFP420
std::vector< HDigiFP420 > digis
DConverterFP420::DigitalMapType DigitalMapType
float tof() const
deprecated name for timeOfFlight()
ZSuppressFP420::DigitalMapType zeroSuppress(const DigitalMapType &, int) override
T getUntrackedParameter(std::string const &, T const &) const
Local3DPoint entryPoint() const
Entry point in the local Det frame.
unsigned int detUnitId() const
std::map< int, float, std::less< int > > hit_map_type
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
FP420DigiMain(const edm::ParameterSet &conf)
Local3DPoint exitPoint() const
Exit point in the local Det frame.
GaussNoiseFP420 * theGNoiseFP420
DigitalMapType convert(const signal_map_type &) override
HitDigitizerFP420 * theHitDigitizerFP420
std::vector< HDigiFP420 > run(const std::vector< PSimHit > &input, const G4ThreeVector &, unsigned int)
virtual void add(const HitDigitizerFP420::hit_map_type &, const PSimHit &hit, int)
std::map< int, Amplitude, std::less< int > > signal_map_type
PileUpFP420::HitToDigisMapType HitToDigisMapType
T getParameter(std::string const &) const
float energyLoss() const
The energy deposit in the PSimHit, in ???.
signal_map_type dumpSignal()
unsigned int trackId() const
std::map< int, std::vector< std::pair< const PSimHit *, Amplitude > >, std::less< int > > HitToDigisMapType
Abs< T >::type abs(const T &t)
HitToDigisMapType dumpLink()
PileUpFP420::signal_map_type addNoise(const PileUpFP420::signal_map_type &) override