|
|
|
std::unique_ptr< EcalTrigPrimFunctionalAlgo > | algo_ |
|
bool | barrelOnly_ |
|
int | binOfMaximum_ |
|
unsigned long long | cacheID_ |
|
bool | debug_ |
|
bool | famos_ |
|
bool | fillBinOfMaximumFromHistory_ |
|
bool | tcpFormat_ |
|
edm::EDGetTokenT< EBDigiCollection > | tokenEB_ |
|
const edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > | tokenEcalMapping_ |
|
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > | tokenEcalTPGCrystalStatus_ |
|
edm::ESGetToken< EcalTPGFineGrainEBGroup, EcalTPGFineGrainEBGroupRcd > | tokenEcalTPGFineGrainEBGroup_ |
|
edm::ESGetToken< EcalTPGFineGrainEBIdMap, EcalTPGFineGrainEBIdMapRcd > | tokenEcalTPGFineGrainEBIdMap_ |
|
edm::ESGetToken< EcalTPGFineGrainStripEE, EcalTPGFineGrainStripEERcd > | tokenEcalTPGFineGrainStripEE_ |
|
edm::ESGetToken< EcalTPGFineGrainTowerEE, EcalTPGFineGrainTowerEERcd > | tokenEcalTPGFineGrainTowerEE_ |
|
edm::ESGetToken< EcalTPGLinearizationConst, EcalTPGLinearizationConstRcd > | tokenEcalTPGLinearization_ |
|
edm::ESGetToken< EcalTPGLutGroup, EcalTPGLutGroupRcd > | tokenEcalTPGLutGroup_ |
|
edm::ESGetToken< EcalTPGLutIdMap, EcalTPGLutIdMapRcd > | tokenEcalTPGLutIdMap_ |
|
edm::ESGetToken< EcalTPGOddWeightGroup, EcalTPGOddWeightGroupRcd > | tokenEcalTPGOddWeightGroup_ |
|
edm::ESGetToken< EcalTPGOddWeightIdMap, EcalTPGOddWeightIdMapRcd > | tokenEcalTPGOddWeightIdMap_ |
|
edm::ESGetToken< EcalTPGPedestals, EcalTPGPedestalsRcd > | tokenEcalTPGPedestals_ |
|
edm::ESGetToken< EcalTPGSlidingWindow, EcalTPGSlidingWindowRcd > | tokenEcalTPGSlidingWindow_ |
|
edm::ESGetToken< EcalTPGSpike, EcalTPGSpikeRcd > | tokenEcalTPGSpike_ |
|
edm::ESGetToken< EcalTPGStripStatus, EcalTPGStripStatusRcd > | tokenEcalTPGStripStatus_ |
|
edm::ESGetToken< EcalTPGTowerStatus, EcalTPGTowerStatusRcd > | tokenEcalTPGTowerStatus_ |
|
edm::ESGetToken< EcalTPGTPMode, EcalTPGTPModeRcd > | tokenEcalTPGTPMode_ |
|
edm::ESGetToken< EcalTPGWeightGroup, EcalTPGWeightGroupRcd > | tokenEcalTPGWeightGroup_ |
|
edm::ESGetToken< EcalTPGWeightIdMap, EcalTPGWeightIdMapRcd > | tokenEcalTPGWeightIdMap_ |
|
edm::EDGetTokenT< EEDigiCollection > | tokenEE_ |
|
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > | tokenEndcapGeom_ |
|
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > | tokenETTMap_ |
|
bool | tpInfoPrintout_ |
|
EcalTrigPrimProducer produces a EcalTrigPrimDigiCollection The barrel code does a detailed simulation The code for the endcap is simulated in a rough way, due to missing strip geometry
- Author
- Ursula Berthon, Stephanie Baffioni, LLR Palaiseau
- Version
- 1st Version may 2006
-
2nd Version jul 2006
Definition at line 77 of file EcalTrigPrimProducer.cc.
◆ EcalTrigPrimProducer()
◆ ~EcalTrigPrimProducer()
EcalTrigPrimProducer::~EcalTrigPrimProducer |
( |
| ) |
|
|
override |
◆ beginRun()
Definition at line 222 of file EcalTrigPrimProducer.cc.
228 algo_ = std::make_unique<EcalTrigPrimFunctionalAlgo>(
233 algo_ = std::make_unique<EcalTrigPrimFunctionalAlgo>(
References algo_, barrelOnly_, binOfMaximum_, debug_, famos_, fillBinOfMaximumFromHistory_, findBinOfMaximum(), writedatasetfile::run, singleTopDQM_cfi::setup, tcpFormat_, tokenEcalMapping_, tokenEndcapGeom_, tokenETTMap_, and tpInfoPrintout_.
◆ endRun()
◆ fillDescriptions()
◆ getRecords()
unsigned long long EcalTrigPrimProducer::getRecords |
( |
edm::EventSetup const & |
setup | ) |
|
|
private |
Definition at line 243 of file EcalTrigPrimProducer.cc.
262 algo_->setPointers(ecaltpLin,
268 ecaltpgOddWeightGroup,
284 algo_->setPointers2(ecaltpgFgEBGroup,
288 ecaltpgFineGrainTowerEE,
References algo_, singleTopDQM_cfi::setup, tokenEcalTPGCrystalStatus_, tokenEcalTPGFineGrainEBGroup_, tokenEcalTPGFineGrainEBIdMap_, tokenEcalTPGFineGrainStripEE_, tokenEcalTPGFineGrainTowerEE_, tokenEcalTPGLinearization_, tokenEcalTPGLutGroup_, tokenEcalTPGLutIdMap_, tokenEcalTPGOddWeightGroup_, tokenEcalTPGOddWeightIdMap_, tokenEcalTPGPedestals_, tokenEcalTPGSlidingWindow_, tokenEcalTPGSpike_, tokenEcalTPGStripStatus_, tokenEcalTPGTowerStatus_, tokenEcalTPGTPMode_, tokenEcalTPGWeightGroup_, and tokenEcalTPGWeightIdMap_.
Referenced by produce().
◆ produce()
Definition at line 301 of file EcalTrigPrimProducer.cc.
319 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Barrel dataframes with producer " <<
labels.module <<
" and label "
320 <<
labels.productInstance <<
"!!!";
327 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Endcap dataframes with producer " <<
labels.module <<
" and label "
328 <<
labels.productInstance <<
"!!!";
334 throw cms::Exception(
" ProductNotFound") <<
"No EBDataFrames(EEDataFrames) with producer " <<
labels.module
335 <<
" and label " <<
labels.productInstance <<
" found in input!!\n";
339 LogDebug(
"EcalTPG") <<
" =================> Treating event " <<
e.id() <<
", Number of EBDataFrames "
340 << ebDigis.
product()->
size() <<
", Number of EEDataFrames " <<
eeDigis.product()->size();
342 LogDebug(
"EcalTPG") <<
" =================> Treating event " <<
e.id() <<
", Number of EBDataFrames "
345 auto pOut = std::make_unique<EcalTrigPrimDigiCollection>();
346 auto pOutTcp = std::make_unique<EcalTrigPrimDigiCollection>();
362 edm::LogInfo(
"produce") <<
"For Barrel + Endcap, " <<
pOut->size() <<
" TP Digis were produced";
366 for (
unsigned int i = 0;
i <
pOut->size(); ++
i) {
368 for (
int isam = 0; isam < (*pOut)[
i].size(); ++isam) {
369 if ((*
pOut)[
i][isam].raw())
373 LogDebug(
"EcalTPG") <<
" For tower " << (((*pOut)[
i])).id() <<
", TP is " << (*pOut)[
i];
376 LogDebug(
"EcalTPG") <<
"\n =================> For Barrel , " <<
pOut->size()
377 <<
" TP Digis were produced (including zero ones)";
379 LogDebug(
"EcalTPG") <<
"\n =================> For Barrel + Endcap, " <<
pOut->size()
380 <<
" TP Digis were produced (including zero ones)";
References algo_, Reference_intrackfit_cff::barrel, barrelOnly_, cacheID_, edm::eventsetup::EventSetupRecord::cacheIdentifier(), MillePedeFileConverter_cfg::e, SimL1EmulatorDM_cff::eeDigis, makeMuonMisalignmentScenario::endcap, Exception, edm::EventSetup::get(), getRecords(), mps_fire::i, SummaryClient_cfi::labels, LogDebug, eostools::move(), L1TrackObjectNtupleMaker_cfg::pOut, print(), edm::Handle< T >::product(), edm::DataFrameContainer::size(), tcpFormat_, tokenEB_, and tokenEE_.
◆ algo_
◆ barrelOnly_
bool EcalTrigPrimProducer::barrelOnly_ |
|
private |
◆ binOfMaximum_
int EcalTrigPrimProducer::binOfMaximum_ |
|
private |
◆ cacheID_
unsigned long long EcalTrigPrimProducer::cacheID_ |
|
private |
◆ debug_
bool EcalTrigPrimProducer::debug_ |
|
private |
◆ famos_
bool EcalTrigPrimProducer::famos_ |
|
private |
◆ fillBinOfMaximumFromHistory_
bool EcalTrigPrimProducer::fillBinOfMaximumFromHistory_ |
|
private |
◆ tcpFormat_
bool EcalTrigPrimProducer::tcpFormat_ |
|
private |
◆ tokenEB_
◆ tokenEcalMapping_
◆ tokenEcalTPGCrystalStatus_
◆ tokenEcalTPGFineGrainEBGroup_
◆ tokenEcalTPGFineGrainEBIdMap_
◆ tokenEcalTPGFineGrainStripEE_
◆ tokenEcalTPGFineGrainTowerEE_
◆ tokenEcalTPGLinearization_
◆ tokenEcalTPGLutGroup_
◆ tokenEcalTPGLutIdMap_
◆ tokenEcalTPGOddWeightGroup_
◆ tokenEcalTPGOddWeightIdMap_
◆ tokenEcalTPGPedestals_
◆ tokenEcalTPGSlidingWindow_
◆ tokenEcalTPGSpike_
◆ tokenEcalTPGStripStatus_
◆ tokenEcalTPGTowerStatus_
◆ tokenEcalTPGTPMode_
◆ tokenEcalTPGWeightGroup_
◆ tokenEcalTPGWeightIdMap_
◆ tokenEE_
◆ tokenEndcapGeom_
◆ tokenETTMap_
◆ tpInfoPrintout_
bool EcalTrigPrimProducer::tpInfoPrintout_ |
|
private |
edm::EDGetTokenT< EEDigiCollection > tokenEE_
edm::ESGetToken< EcalTPGStripStatus, EcalTPGStripStatusRcd > tokenEcalTPGStripStatus_
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > tokenEcalTPGCrystalStatus_
static int findBinOfMaximum(bool iFillFromHistory, int iPSetValue, edm::ProcessHistory const &iHistory)
T const * product() const
edm::ESGetToken< EcalTPGPedestals, EcalTPGPedestalsRcd > tokenEcalTPGPedestals_
edm::ESGetToken< EcalTPGFineGrainStripEE, EcalTPGFineGrainStripEERcd > tokenEcalTPGFineGrainStripEE_
edm::EDGetTokenT< EBDigiCollection > tokenEB_
edm::ESGetToken< EcalTPGLutIdMap, EcalTPGLutIdMapRcd > tokenEcalTPGLutIdMap_
Log< level::Info, false > LogInfo
Log< level::Warning, false > LogWarning
edm::ESGetToken< EcalTPGSpike, EcalTPGSpikeRcd > tokenEcalTPGSpike_
edm::ESGetToken< EcalTPGLutGroup, EcalTPGLutGroupRcd > tokenEcalTPGLutGroup_
std::unique_ptr< EcalTrigPrimFunctionalAlgo > algo_
unsigned long long cacheID_
edm::ESGetToken< EcalTPGLinearizationConst, EcalTPGLinearizationConstRcd > tokenEcalTPGLinearization_
edm::ESGetToken< EcalTPGWeightGroup, EcalTPGWeightGroupRcd > tokenEcalTPGWeightGroup_
edm::ESGetToken< EcalTPGFineGrainTowerEE, EcalTPGFineGrainTowerEERcd > tokenEcalTPGFineGrainTowerEE_
bool fillBinOfMaximumFromHistory_
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
edm::ESGetToken< EcalTPGTPMode, EcalTPGTPModeRcd > tokenEcalTPGTPMode_
edm::ESGetToken< EcalTPGSlidingWindow, EcalTPGSlidingWindowRcd > tokenEcalTPGSlidingWindow_
edm::ESGetToken< EcalTPGFineGrainEBIdMap, EcalTPGFineGrainEBIdMapRcd > tokenEcalTPGFineGrainEBIdMap_
static const char *const kComment
edm::ESGetToken< EcalTPGWeightIdMap, EcalTPGWeightIdMapRcd > tokenEcalTPGWeightIdMap_
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > tokenEndcapGeom_
edm::ESGetToken< EcalTPGOddWeightIdMap, EcalTPGOddWeightIdMapRcd > tokenEcalTPGOddWeightIdMap_
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > tokenETTMap_
edm::ESGetToken< EcalTPGTowerStatus, EcalTPGTowerStatusRcd > tokenEcalTPGTowerStatus_
unsigned long long cacheIdentifier() const
const edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > tokenEcalMapping_
edm::ESGetToken< EcalTPGOddWeightGroup, EcalTPGOddWeightGroupRcd > tokenEcalTPGOddWeightGroup_
void addDefault(ParameterSetDescription const &psetDescription)
unsigned long long getRecords(edm::EventSetup const &setup)
edm::ESGetToken< EcalTPGFineGrainEBGroup, EcalTPGFineGrainEBGroupRcd > tokenEcalTPGFineGrainEBGroup_