#include <SiStripDigitizerAlgorithm.h>
Classes | |
struct | AssociationInfo |
Public Types | |
typedef float | Amplitude |
typedef SiDigitalConverter::DigitalRawVecType | DigitalRawVecType |
typedef SiDigitalConverter::DigitalVecType | DigitalVecType |
typedef std::map< int, float, std::less< int > > | hit_map_type |
typedef SiPileUpSignals::SignalMapType | SignalMapType |
Public Member Functions | |
void | accumulateSimHits (const std::vector< PSimHit >::const_iterator inputBegin, const std::vector< PSimHit >::const_iterator inputEnd, size_t inputBeginGlobalIndex, unsigned int tofBin, const StripGeomDetUnit *stripdet, const GlobalVector &bfield, const TrackerTopology *tTopo, CLHEP::HepRandomEngine *) |
void | calculateInstlumiScale (PileupMixingContent *puInfo) |
void | digitize (edm::DetSet< SiStripDigi > &outDigis, edm::DetSet< SiStripRawDigi > &outRawDigis, edm::DetSet< SiStripRawDigi > &outStripAmplitudes, edm::DetSet< SiStripRawDigi > &outStripAmplitudesPostAPV, edm::DetSet< SiStripRawDigi > &outStripAPVBaselines, edm::DetSet< StripDigiSimLink > &outLink, const StripGeomDetUnit *stripdet, edm::ESHandle< SiStripGain > &, edm::ESHandle< SiStripThreshold > &, edm::ESHandle< SiStripNoises > &, edm::ESHandle< SiStripPedestals > &, bool simulateAPVInThisEvent, edm::ESHandle< SiStripApvSimulationParameters > &, std::vector< std::pair< int, std::bitset< 6 >>> &theAffectedAPVvector, CLHEP::HepRandomEngine *, const TrackerTopology *tTopo) |
void | initializeDetUnit (StripGeomDetUnit const *det, const edm::EventSetup &iSetup) |
void | initializeEvent (const edm::EventSetup &iSetup) |
void | setParticleDataTable (const ParticleDataTable *pardt) |
SiStripDigitizerAlgorithm (const edm::ParameterSet &conf) | |
~SiStripDigitizerAlgorithm () | |
Private Types | |
typedef std::map< int, std::vector< AssociationInfo > > | AssociationInfoForChannel |
typedef std::map< uint32_t, AssociationInfoForChannel > | AssociationInfoForDetId |
SiStripDigitizerAlgorithm converts hits to digis
Definition at line 57 of file SiStripDigitizerAlgorithm.h.
typedef float SiStripDigitizerAlgorithm::Amplitude |
Definition at line 63 of file SiStripDigitizerAlgorithm.h.
|
private |
Definition at line 173 of file SiStripDigitizerAlgorithm.h.
|
private |
Definition at line 174 of file SiStripDigitizerAlgorithm.h.
Definition at line 60 of file SiStripDigitizerAlgorithm.h.
Definition at line 59 of file SiStripDigitizerAlgorithm.h.
typedef std::map<int, float, std::less<int> > SiStripDigitizerAlgorithm::hit_map_type |
Definition at line 62 of file SiStripDigitizerAlgorithm.h.
Definition at line 61 of file SiStripDigitizerAlgorithm.h.
SiStripDigitizerAlgorithm::SiStripDigitizerAlgorithm | ( | const edm::ParameterSet & | conf | ) |
Definition at line 38 of file SiStripDigitizerAlgorithm.cc.
References APVProbabilityFile, APVProbaFile, APVSaturationFromHIP, CommonModeNoise, Exception, edm::FileInPath::fullPath(), mps_splice::line, LogDebug, mapOfAPVprobabilities, peakMode, PreMixing_, SingleStripNoise, cms::dd::split(), and AlCaHLTBitMon_QueryRunRegistry::string.
SiStripDigitizerAlgorithm::~SiStripDigitizerAlgorithm | ( | ) |
Definition at line 107 of file SiStripDigitizerAlgorithm.cc.
void SiStripDigitizerAlgorithm::accumulateSimHits | ( | const std::vector< PSimHit >::const_iterator | inputBegin, |
const std::vector< PSimHit >::const_iterator | inputEnd, | ||
size_t | inputBeginGlobalIndex, | ||
unsigned int | tofBin, | ||
const StripGeomDetUnit * | stripdet, | ||
const GlobalVector & | bfield, | ||
const TrackerTopology * | tTopo, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 158 of file SiStripDigitizerAlgorithm.cc.
References associationInfoForDetId_, cosmicShift, firstChannelsWithSignal, GeomDet::geographicalId(), SiStripLorentzAngle::getLorentzAngle(), inefficiency, edm::ESHandleBase::isValid(), lastChannelsWithSignal, lorentzAngleHandle, mag(), makeDigiSimLinks_, DetId::rawId(), StripGeomDetUnit::specificTopology(), GeomDet::surface(), theSiHitDigitizer, theSiPileUpSignals, tofCut, and Surface::toGlobal().
void SiStripDigitizerAlgorithm::calculateInstlumiScale | ( | PileupMixingContent * | puInfo | ) |
Definition at line 249 of file SiStripDigitizerAlgorithm.cc.
References APVSaturationProb_, HLTEgPhaseIITestSequence_cff::bunchSpacing, FirstLumiCalc_, PileupMixingContent::getMix_bunchCrossing(), PileupMixingContent::getMix_bunchSpacing(), PileupMixingContent::getMix_TrueInteractions(), muonGEMDigis_cfi::instLumi, nTruePU_, AlCaHLTBitMon_ParallelJobs::p, and muons2muons_cfi::pu.
void SiStripDigitizerAlgorithm::digitize | ( | edm::DetSet< SiStripDigi > & | outDigis, |
edm::DetSet< SiStripRawDigi > & | outRawDigis, | ||
edm::DetSet< SiStripRawDigi > & | outStripAmplitudes, | ||
edm::DetSet< SiStripRawDigi > & | outStripAmplitudesPostAPV, | ||
edm::DetSet< SiStripRawDigi > & | outStripAPVBaselines, | ||
edm::DetSet< StripDigiSimLink > & | outLink, | ||
const StripGeomDetUnit * | stripdet, | ||
edm::ESHandle< SiStripGain > & | gainHandle, | ||
edm::ESHandle< SiStripThreshold > & | thresholdHandle, | ||
edm::ESHandle< SiStripNoises > & | noiseHandle, | ||
edm::ESHandle< SiStripPedestals > & | pedestalHandle, | ||
bool | simulateAPVInThisEvent, | ||
edm::ESHandle< SiStripApvSimulationParameters > & | apvSimulationParametersHandle, | ||
std::vector< std::pair< int, std::bitset< 6 >>> & | theAffectedAPVvector, | ||
CLHEP::HepRandomEngine * | engine, | ||
const TrackerTopology * | tTopo | ||
) |
Definition at line 285 of file SiStripDigitizerAlgorithm.cc.
References allBadChannels, apv_fCPerElectron_, apv_maxResponse_, apv_mVPerQ_, apv_rate_, APVSaturationFromHIP, APVSaturationProb_, associationInfoForDetId_, BaselineShift, cms::cuda::bs, l1GtPatternGenerator_cfi::bx, cmnRMStec, cmnRMStib, cmnRMStid, cmnRMStob, CommonModeNoise, edm::DetSet< T >::data, SiPixelPhase1Clusters_cfi::e3, edm::DetSet< T >::emplace_back(), JetChargeProducer_cfi::exp, firstChannelsWithSignal, FirstDigitize_, PedestalClient_cfi::gain, GeomDet::geographicalId(), SiStripNoises::getNoise(), SiStripPedestals::getPed(), SiStripNoises::getRange(), SiStripPedestals::getRange(), SiStripGain::getRange(), SiStripGain::getStripGain(), includeAPVSimulation_, createfilelist::int, lastChannelsWithSignal, StripTopology::localPosition(), dqm-mbProfile::log, mapOfAPVprobabilities, noise, nTruePU_, NumberOfBxBetweenHIPandEvent, pedOffset, PV3DBase< T, PVType, FrameType >::perp(), PreMixing_, edm::DetSet< T >::push_back(), RPCpg::rate(), DetId::rawId(), RealPedestals, edm::DetSet< T >::reserve(), SiStripApvSimulationParameters::sampleTEC(), SiStripApvSimulationParameters::sampleTIB(), SiStripApvSimulationParameters::sampleTID(), SiStripApvSimulationParameters::sampleTOB(), SingleStripNoise, SiStripTrackerAffectedAPVMap, StripGeomDetUnit::specificTopology(), digitizers_cfi::strip, ntupleEnum::SubDet, DetId::subdetId(), GeomDet::surface(), SiStripSubdetector::TEC, TrackerTopology::tecWheel(), groupFilesInBlocks::temp, theElectronPerADC, theSiDigitalConverter, theSiNoiseAdder, theSiPileUpSignals, theSiZeroSuppress, SiStripSubdetector::TIB, TrackerTopology::tibLayer(), SiStripSubdetector::TID, TrackerTopology::tidWheel(), SiStripSubdetector::TOB, TrackerTopology::tobLayer(), Surface::toGlobal(), funct::true, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), and zeroSuppression.
void SiStripDigitizerAlgorithm::initializeDetUnit | ( | StripGeomDetUnit const * | det, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 109 of file SiStripDigitizerAlgorithm.cc.
References allBadChannels, SiStripBadStrip::decode(), firstChannelsWithSignal, SiStripBadStrip::data::firstStrip, GeomDet::geographicalId(), edm::EventSetup::get(), get, SiStripBadStrip::getRange(), lastChannelsWithSignal, SiStripBadStrip::data::range, DetId::rawId(), StripGeomDetUnit::specificTopology(), and digitizers_cfi::strip.
void SiStripDigitizerAlgorithm::initializeEvent | ( | const edm::EventSetup & | iSetup | ) |
Definition at line 136 of file SiStripDigitizerAlgorithm.cc.
References APVSaturationProb_, APVSaturationProbScaling_, associationInfoForDetId_, FirstDigitize_, FirstLumiCalc_, edm::EventSetup::get(), get, edm::EventSetup::getData(), lorentzAngleHandle, lorentzAngleName, nTruePU_, pdt, setParticleDataTable(), SiStripTrackerAffectedAPVMap, and theSiPileUpSignals.
|
inline |
Definition at line 105 of file SiStripDigitizerAlgorithm.h.
References pdt, and theSiHitDigitizer.
Referenced by initializeEvent().
|
private |
Definition at line 154 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize(), and initializeDetUnit().
|
private |
Definition at line 155 of file SiStripDigitizerAlgorithm.h.
|
private |
Definition at line 189 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 186 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 188 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 187 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 178 of file SiStripDigitizerAlgorithm.h.
Referenced by SiStripDigitizerAlgorithm().
|
private |
Definition at line 180 of file SiStripDigitizerAlgorithm.h.
Referenced by SiStripDigitizerAlgorithm().
|
private |
Definition at line 126 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize(), and SiStripDigitizerAlgorithm().
|
private |
Definition at line 143 of file SiStripDigitizerAlgorithm.h.
Referenced by calculateInstlumiScale(), digitize(), and initializeEvent().
|
private |
Definition at line 117 of file SiStripDigitizerAlgorithm.h.
Referenced by initializeEvent().
|
private |
Structure that holds the information on the SimTrack contributions. Only filled if makeDigiSimLinks_ is true.
Definition at line 176 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits(), digitize(), and initializeEvent().
|
private |
Definition at line 125 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 116 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 113 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 115 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 114 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 124 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize(), and SiStripDigitizerAlgorithm().
|
private |
Definition at line 135 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits().
|
private |
Definition at line 157 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits(), digitize(), and initializeDetUnit().
|
private |
Definition at line 145 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize(), and initializeEvent().
|
private |
Definition at line 144 of file SiStripDigitizerAlgorithm.h.
Referenced by calculateInstlumiScale(), and initializeEvent().
|
private |
Definition at line 185 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 136 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits().
|
private |
Definition at line 158 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits(), digitize(), and initializeDetUnit().
|
private |
Definition at line 161 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits(), and initializeEvent().
|
private |
Definition at line 111 of file SiStripDigitizerAlgorithm.h.
Referenced by initializeEvent().
|
private |
Definition at line 119 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits().
|
private |
Definition at line 181 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize(), and SiStripDigitizerAlgorithm().
|
private |
Definition at line 121 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 190 of file SiStripDigitizerAlgorithm.h.
Referenced by calculateInstlumiScale(), digitize(), and initializeEvent().
|
private |
Definition at line 183 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 141 of file SiStripDigitizerAlgorithm.h.
|
private |
Definition at line 140 of file SiStripDigitizerAlgorithm.h.
Referenced by initializeEvent(), and setParticleDataTable().
|
private |
Definition at line 120 of file SiStripDigitizerAlgorithm.h.
Referenced by SiStripDigitizerAlgorithm().
|
private |
Definition at line 137 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 138 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize(), and SiStripDigitizerAlgorithm().
|
private |
Definition at line 122 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 123 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize(), and SiStripDigitizerAlgorithm().
|
private |
Definition at line 182 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize(), and initializeEvent().
|
private |
Definition at line 130 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 128 of file SiStripDigitizerAlgorithm.h.
|
private |
Definition at line 150 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 147 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits(), and setParticleDataTable().
|
private |
Definition at line 149 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 148 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits(), digitize(), and initializeEvent().
|
private |
Definition at line 151 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().
|
private |
Definition at line 112 of file SiStripDigitizerAlgorithm.h.
|
private |
Definition at line 133 of file SiStripDigitizerAlgorithm.h.
|
private |
Definition at line 132 of file SiStripDigitizerAlgorithm.h.
|
private |
Definition at line 134 of file SiStripDigitizerAlgorithm.h.
Referenced by accumulateSimHits().
|
private |
Definition at line 129 of file SiStripDigitizerAlgorithm.h.
Referenced by digitize().