#include <L1RCTProducer.h>
Public Member Functions | |
void | beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &context) final |
void | beginRun (edm::Run const &r, const edm::EventSetup &c) final |
const std::vector< int > | getFedVectorFromOmds (const edm::EventSetup &) |
const std::vector< int > | getFedVectorFromRunInfo (const edm::EventSetup &) |
L1RCTProducer (const edm::ParameterSet &ps) | |
void | printFedVector (const std::vector< int > &) |
void | printUpdatedFedMask () |
void | printUpdatedFedMaskVerbose () |
void | produce (edm::Event &e, const edm::EventSetup &c) final |
void | updateConfiguration (const edm::EventSetup &) |
void | updateFedVector (const edm::EventSetup &, bool getFromOmds, int) |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
Private Types | |
enum | crateSection { c_min, ebOddFed = c_min, ebEvenFed, eeFed, hbheFed, hfFed, hfFedUp, c_max = hfFedUp } |
Private Attributes | |
std::vector< int > | bunchCrossings |
std::string | conditionsLabel |
std::vector< edm::InputTag > | ecalDigis |
std::unique_ptr< L1RCTChannelMask > | fedUpdatedMask |
bool | getFedsFromOmds |
std::vector< edm::InputTag > | hcalDigis |
unsigned int | queryDelayInLS |
unsigned int | queryIntervalInLS |
std::unique_ptr< L1RCT > | rct |
std::unique_ptr< L1RCTLookupTables > | rctLookupTables |
bool | useEcal |
bool | useHcal |
Static Private Attributes | |
static const int | crateFED [18][6] |
static const int | maxBarrel = 17 |
static const int | maxEndcap = 28 |
static const int | maxHF = 32 |
static const int | minBarrel = 1 |
static const int | minEndcap = 17 |
static const int | minHF = 29 |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Definition at line 45 of file L1RCTProducer.h.
|
private |
|
explicit |
Definition at line 33 of file L1RCTProducer.cc.
|
final |
Definition at line 70 of file L1RCTProducer.cc.
References getFedsFromOmds, edm::LuminosityBlockBase::luminosityBlock(), queryDelayInLS, queryIntervalInLS, edm::LuminosityBlockBase::run(), convertSQLiteXML::runNumber, and updateFedVector().
|
final |
Definition at line 60 of file L1RCTProducer.cc.
References options_cfi::eventSetup, writedatasetfile::run, convertSQLiteXML::runNumber, updateConfiguration(), and updateFedVector().
const std::vector< int > L1RCTProducer::getFedVectorFromOmds | ( | const edm::EventSetup & | eventSetup | ) |
Definition at line 297 of file L1RCTProducer.cc.
References options_cfi::eventSetup, get, getFedVectorFromRunInfo(), edm::ESHandleBase::isValid(), edm::ESHandle< T >::product(), and edmLumisInFiles::summary.
Referenced by updateFedVector().
const std::vector< int > L1RCTProducer::getFedVectorFromRunInfo | ( | const edm::EventSetup & | eventSetup | ) |
Definition at line 285 of file L1RCTProducer.cc.
References options_cfi::eventSetup, get, edm::ESHandle< T >::product(), and edmLumisInFiles::summary.
Referenced by getFedVectorFromOmds(), and updateFedVector().
void L1RCTProducer::printFedVector | ( | const std::vector< int > & | fedVector | ) |
Definition at line 372 of file L1RCTProducer.cc.
References filterCSVwithJSON::copy, and gather_cfg::cout.
void L1RCTProducer::printUpdatedFedMask | ( | ) |
void L1RCTProducer::printUpdatedFedMaskVerbose | ( | ) |
Definition at line 388 of file L1RCTProducer.cc.
References gather_cfg::cout, fedUpdatedMask, mps_fire::i, dqmiolumiharvest::j, and dqmdumpme::k.
|
final |
Definition at line 316 of file L1RCTProducer.cc.
References bunchCrossings, bsc_activity_cfg::ecal, ecalDigis, Exception, patCandidatesForDimuonsSequences_cff::hcal, hcalDigis, mps_fire::i, dqmiolumiharvest::j, eostools::move(), rct, simplePhotonAnalyzer_cfi::sample, useEcal, and useHcal.
void L1RCTProducer::updateConfiguration | ( | const edm::EventSetup & | eventSetup | ) |
Definition at line 95 of file L1RCTProducer.cc.
References conditionsLabel, MillePedeFileConverter_cfg::e, options_cfi::eventSetup, get, edm::ESHandle< T >::product(), alignCSCRings::r, rctLookupTables, and alignCSCRings::s.
Referenced by beginRun().
void L1RCTProducer::updateFedVector | ( | const edm::EventSetup & | eventSetup, |
bool | getFromOmds, | ||
int | runNumber | ||
) |
Definition at line 130 of file L1RCTProducer.cc.
References c_max, c_min, crateFED, fwrapper::cs, ebEvenFed, ebOddFed, bsc_activity_cfg::ecal, L1RCTChannelMask::ecalMask, eeFed, distMuonTCMETValueMapProducer_cff::eta_max, egammaIdentification::eta_min, options_cfi::eventSetup, fedUpdatedMask, spr::find(), get, getFedVectorFromOmds(), getFedVectorFromRunInfo(), hbheFed, L1RCTChannelMask::hcalMask, hfFed, hfFedUp, L1RCTChannelMask::hfMask, mps_fire::i, LEDCalibrationChannels::ieta, dqmiolumiharvest::j, dqmdumpme::k, maxBarrel, maxEndcap, maxHF, minBarrel, minEndcap, minHF, edm::ESHandle< T >::product(), and rctLookupTables.
Referenced by beginLuminosityBlock(), and beginRun().
|
private |
Definition at line 70 of file L1RCTProducer.h.
Referenced by produce().
|
private |
Definition at line 74 of file L1RCTProducer.h.
Referenced by updateConfiguration().
|
staticprivate |
Definition at line 81 of file L1RCTProducer.h.
Referenced by updateFedVector().
|
private |
Definition at line 68 of file L1RCTProducer.h.
Referenced by L1RCTProducer(), and produce().
|
private |
Definition at line 77 of file L1RCTProducer.h.
Referenced by printUpdatedFedMask(), printUpdatedFedMaskVerbose(), and updateFedVector().
|
private |
Definition at line 71 of file L1RCTProducer.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 69 of file L1RCTProducer.h.
Referenced by L1RCTProducer(), and produce().
|
staticprivate |
Definition at line 84 of file L1RCTProducer.h.
Referenced by updateFedVector().
|
staticprivate |
Definition at line 86 of file L1RCTProducer.h.
Referenced by updateFedVector().
|
staticprivate |
Definition at line 88 of file L1RCTProducer.h.
Referenced by updateFedVector().
|
staticprivate |
Definition at line 83 of file L1RCTProducer.h.
Referenced by updateFedVector().
|
staticprivate |
Definition at line 85 of file L1RCTProducer.h.
Referenced by updateFedVector().
|
staticprivate |
Definition at line 87 of file L1RCTProducer.h.
Referenced by updateFedVector().
|
private |
Definition at line 72 of file L1RCTProducer.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 73 of file L1RCTProducer.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 65 of file L1RCTProducer.h.
Referenced by produce().
|
private |
Definition at line 64 of file L1RCTProducer.h.
Referenced by updateConfiguration(), and updateFedVector().
|
private |
Definition at line 66 of file L1RCTProducer.h.
Referenced by produce().
|
private |
Definition at line 67 of file L1RCTProducer.h.
Referenced by produce().