|
|
Go to the documentation of this file. 1 #ifndef SiPixelDigitizerAlgorithm_h
2 #define SiPixelDigitizerAlgorithm_h
22 #include "boost/multi_array.hpp"
30 class HepRandomEngine;
66 const std::vector<PSimHit>::const_iterator inputEnd,
67 const size_t inputBeginGlobalIndex,
68 const unsigned int tofBin,
72 CLHEP::HepRandomEngine*);
74 std::vector<PixelDigi>& digis,
75 std::vector<PixelDigiSimLink>& simlinks,
77 CLHEP::HepRandomEngine*);
86 std::unique_ptr<PixelFEDChannelCollection>
chooseScenario(
const std::vector<PileupSummaryInfo>& ps,
87 CLHEP::HepRandomEngine* engine);
121 if (
_frac[0] < -0.5) {
130 if (
_frac[0] < -0.5) {
133 _hitInfos.emplace_back(hitp, hitIndex, tofBin);
147 if (
other._frac[0] > -0.5) {
148 if (!
other._hitInfos.empty()) {
270 std::map<uint32_t, size_t>
iPU;
410 const std::unique_ptr<SiG4UniversalFluctuation>
fluctuate;
411 const std::unique_ptr<GaussianTailNoiseGenerator>
theNoiser;
414 const std::map<int, CalParameters, std::less<int> >
calmap;
418 std::map<int, CalParameters, std::less<int> >
initCal()
const;
420 std::vector<EnergyDepositUnit>& ionization_points,
421 CLHEP::HepRandomEngine*)
const;
426 const std::vector<EnergyDepositUnit>& ionization_points,
427 std::vector<SignalPoint>& collection_points)
const;
428 void induce_signal(std::vector<PSimHit>::const_iterator inputBegin,
429 std::vector<PSimHit>::const_iterator inputEnd,
431 const size_t hitIndex,
432 const unsigned int tofBin,
434 const std::vector<SignalPoint>& collection_points);
439 int NumberOfSegments,
441 CLHEP::HepRandomEngine*)
const;
446 std::vector<PixelDigi>& digis,
447 std::vector<PixelDigiSimLink>& simlinks,
452 CLHEP::HepRandomEngine*);
471 std::map<
int,
float, std::less<int> >& hit_signal,
472 const size_t hitIndex,
473 const unsigned int tofBin,
477 unsigned short int processType);
494 return 0.5 * (1.0 - std::copysign(
std::sqrt(1.
f - unsafe_expf<4>(-
xx * (1.
f + 0.2733
f / (1.
f + 0.147
f *
xx)))),
x));
const float electronsPerVCAL_L1
std::vector< bool > ydouble
void set(const float amplitude)
const bool addChargeVCALSmearing
std::vector< edm::ParameterSet > Parameters
const float theGainSmearing
boost::multi_array< float, 2 > array_2d
std::unordered_map< std::string, PixelFEDChannelCollection > PixelFEDChannelCollectionMap
GloballyPositioned< double > Frame
float missCalibrate(uint32_t detID, const TrackerTopology *tTopo, const PixelGeomDetUnit *pixdet, int col, int row, float amp) const
boost::multi_array< float, 2 > array_2d
const float theOffsetSmearing
const bool AddPixelInefficiency
signal_map_type::iterator signal_map_iterator
double theOuterEfficiency_FPix[20]
int PixelTempRewgt2D(int id_gen, int id_rewgt, array_2d &cluster)
bool killBadFEDChannels() const
const PixelAging pixelAging_
std::map< uint32_t, signal_map_type > signalMaps
const bool KillBadFEDChannels
void printCluster(array_2d &cluster)
const float theThresholdInE_BPix_L1
const std::unique_ptr< SiPixelGainCalibrationOfflineSimService > theSiPixelGainCalibrationService_
const bool use_module_killing_
EnergyDepositUnit(float energy, Local3DPoint position)
const std::unique_ptr< GaussianTailNoiseGenerator > theNoiser
void pixel_inefficiency(const PixelEfficiencies &eff, const PixelGeomDetUnit *pixdet, const TrackerTopology *tTopo, CLHEP::HepRandomEngine *)
std::vector< float > _frac
std::vector< float > track
PixelEfficiencies(const edm::ParameterSet &conf, bool AddPixelInefficiency, int NumberOfBarrelLayers, int NumberOfEndcapDisks)
PixelEfficiencies pixelEfficiencies_
void fluctuateEloss(int particleId, float momentum, float eloss, float length, int NumberOfSegments, float elossVector[], CLHEP::HepRandomEngine *) const
static const int rocIdMaskBits
edm::ESHandle< SiPixelLorentzAngle > SiPixelLorentzAngle_
const double theThresholdSmearing_FPix
Amplitude(float amp, float frac)
const SiPixel2DTemplateDBObject * dbobject_num
void pixel_inefficiency_db(uint32_t detID)
float thePixelPseudoRadDamage[20]
std::unique_ptr< PixelFEDChannelCollection > PixelFEDChannelCollection_
const float theTofLowerCut
std::map< int, CalParameters, std::less< int > > initCal() const
const bool doMissCalibrate
std::vector< std::vector< double > > thePUEfficiency
std::map< uint32_t, size_t > iPU
const std::vector< SimHitInfoForLinks > & hitInfos() const
const bool use_ineff_from_db_
const float theThresholdInE_BPix_L2
void init(const edm::EventSetup &es)
void accumulateSimHits(const std::vector< PSimHit >::const_iterator inputBegin, const std::vector< PSimHit >::const_iterator inputEnd, const size_t inputBeginGlobalIndex, const unsigned int tofBin, const PixelGeomDetUnit *pixdet, const GlobalVector &bfield, const TrackerTopology *tTopo, CLHEP::HepRandomEngine *)
const std::map< int, CalParameters, std::less< int > > calmap
std::map< uint32_t, std::vector< double > > PixelGeomFactorsROCBigPixels
const int NumberOfBarrelLayers
edm::ESHandle< SiPixelQuality > SiPixelBadModule_
double thePixelChipEfficiency[20]
const PixelFEDChannelCollectionMap * quality_map
void module_killing_conf(uint32_t detID)
std::unique_ptr< PixelFEDChannelCollection > chooseScenario(PileupMixingContent *puInfo, CLHEP::HepRandomEngine *)
std::string siPixelQualityLabel
const float theNoiseInElectrons
edm::ESHandle< PixelFEDChannelCollectionMap > PixelFEDChannelCollectionMapHandle
std::vector< double > theModuleEfficiency_BPix[20]
SignalPoint(float x, float y, float sigma_x, float sigma_y, float t, float a=1.0)
double theInstLumiScaleFactor
edm::ESHandle< TrackerGeometry > geom_
const bool addThresholdSmearing
signal_map_type::const_iterator signal_map_const_iterator
void module_killing_DB(uint32_t detID)
SiPixelTemplate2D templ2D
const bool PrintTemplates
Amplitude(float amp, const PSimHit *hitp, size_t hitIndex, unsigned int tofBin, float frac)
std::vector< double > pu_scale
const SiPixel2DTemplateDBObject * dbobject_den
void calculateInstlumiFactor(PileupMixingContent *puInfo)
SignalPoint(float x, float y, float sigma_x, float sigma_y, float t, const PSimHit &hit, float a=1.0)
double theInnerEfficiency_FPix[20]
edm::ESHandle< SiPixelFedCablingMap > map_
const double theThresholdSmearing_BPix_L1
~SiPixelDigitizerAlgorithm()
const bool makeDigiSimLinks_
void operator+=(const float &)
const double theThresholdSmearing_BPix_L2
static int position[264][3]
const float theThresholdInE_BPix
std::vector< SimHitInfoForLinks > _hitInfos
PixelAging(const edm::ParameterSet &conf, bool AddPixelAging, int NumberOfBarrelLayers, int NumberOfEndcapDisks)
const float theTofUpperCut
const float theElectronPerADC
const bool fluctuateCharge
void operator+=(const Amplitude &other)
const float theReadoutNoise
void init_from_db(const edm::ESHandle< TrackerGeometry > &, const edm::ESHandle< SiPixelDynamicInefficiency > &)
const bool addNoisyPixels
EnergyDepositUnit(float energy, float x, float y, float z)
const float electronsPerVCAL_Offset
void make_digis(float thePixelThresholdInE, uint32_t detID, const PixelGeomDetUnit *pixdet, std::vector< PixelDigi > &digis, std::vector< PixelDigiSimLink > &simlinks, const TrackerTopology *tTopo) const
void drift(const PSimHit &hit, const PixelGeomDetUnit *pixdet, const GlobalVector &bfield, const TrackerTopology *tTopo, const std::vector< EnergyDepositUnit > &ionization_points, std::vector< SignalPoint > &collection_points) const
const float electronsPerVCAL_L1_Offset
const std::unique_ptr< SiG4UniversalFluctuation > fluctuate
LocalVector DriftDirection(const PixelGeomDetUnit *pixdet, const GlobalVector &bfield, const DetId &detId) const
SiPixelDigitizerAlgorithm(const edm::ParameterSet &conf)
const float tanLorentzAnglePerTesla_FPix
std::map< int, Amplitude, std::less< int > > signal_map_type
std::map< uint32_t, std::vector< double > > PixelGeomFactorsROCStdPixels
const bool use_deadmodule_DB_
SignalPoint & set_amplitude(float amp)
std::vector< double > theLadderEfficiency_BPix[20]
const float GeVperElectron
const float electronsPerVCAL
double thePixelColEfficiency[20]
const int theAdcFullScale
const int NumberOfEndcapDisks
float pixel_aging(const PixelAging &aging, const PixelGeomDetUnit *pixdet, const TrackerTopology *tTopo) const
const float theThresholdInE_FPix
bool matches(const DetId &, const DetId &, const std::vector< uint32_t > &)
std::map< uint32_t, double > ColGeomFactors
void induce_signal(std::vector< PSimHit >::const_iterator inputBegin, std::vector< PSimHit >::const_iterator inputEnd, const PSimHit &hit, const size_t hitIndex, const unsigned int tofBin, const PixelGeomDetUnit *pixdet, const std::vector< SignalPoint > &collection_points)
const double theThresholdSmearing_BPix
void primary_ionization(const PSimHit &hit, std::vector< EnergyDepositUnit > &ionization_points, CLHEP::HepRandomEngine *) const
const float tanLorentzAnglePerTesla_BPix
std::vector< bool > xdouble
const bool UseReweighting
edm::ESHandle< SiPixelQualityProbabilities > scenarioProbabilityHandle
void setSimAccumulator(const std::map< uint32_t, std::map< int, int > > &signalMap)
edm::ESHandle< SiPixelDynamicInefficiency > SiPixelDynamicInefficiency_
void digitize(const PixelGeomDetUnit *pixdet, std::vector< PixelDigi > &digis, std::vector< PixelDigiSimLink > &simlinks, const TrackerTopology *tTopo, CLHEP::HepRandomEngine *)
const LocalPoint & position() const
const Parameters DeadModules
double thePixelEfficiency[20]
std::vector< SiPixelTemplateStore2D > templateStores_
void init_DynIneffDB(const edm::EventSetup &, const unsigned int &)
double calcQ(float x) const
std::map< uint32_t, double > PixelGeomFactors
bool hitSignalReweight(const PSimHit &hit, std::map< int, float, std::less< int > > &hit_signal, const size_t hitIndex, const unsigned int tofBin, const PixelTopology *topol, uint32_t detID, signal_map_type &theSignal, unsigned short int processType)
std::map< uint32_t, double > ChipGeomFactors
void add_noise(const PixelGeomDetUnit *pixdet, float thePixelThreshold, CLHEP::HepRandomEngine *)
const std::vector< float > & individualampl() const
const bool use_LorentzAngle_DB_