|
void | analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) override |
|
| EcalGetLaserData (const edm::ParameterSet &iConfig) |
|
| ~EcalGetLaserData () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsInputProcessBlocks () |
|
static bool | wantsProcessBlocks () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 35 of file EcalGetLaserData.h.
Implements edm::EDAnalyzer.
Definition at line 87 of file EcalGetLaserData.cc.
93 typedef std::map<std::string, std::string>::const_iterator recordIter;
95 container = (*i).first;
100 if (container ==
"EcalLaserAPDPNRatios") {
118 int hi = ebdetid.hashedIndex();
120 if (
hi < static_cast<int>(laserRatiosMap.
size())) {
121 apdpnpair = laserRatiosMap[
hi];
122 std::cout <<
"A sample value of APDPN pair EB : " <<
hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2
125 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
137 int hi = eedetidpos.hashedIndex();
139 if (
hi < static_cast<int>(laserRatiosMap.
size())) {
140 apdpnpair = laserRatiosMap[
hi];
141 std::cout <<
"A sample value of APDPN pair EE+ : " <<
hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2
144 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
150 hi = eedetidneg.hashedIndex();
152 if (
hi < static_cast<int>(laserRatiosMap.
size())) {
153 apdpnpair = laserRatiosMap[
hi];
154 std::cout <<
"A sample value of APDPN pair EE- : " <<
hi <<
" : " << apdpnpair.
p1 <<
" , " << apdpnpair.
p2
157 edm::LogError(
"EcalGetLaserData") <<
"error with laserRatiosMap!" << std::endl;
162 for (
int i = 0;
i < 92;
i++) {
168 std::cout <<
".. just retrieved the last valid record from DB " << std::endl;
170 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
184 int hi = ebdetid.hashedIndex();
186 if (
hi < static_cast<int>(laserRefMap.
size())) {
187 apdpnref = laserRefMap[
hi];
188 std::cout <<
"A sample value of APDPN Reference value EB : " <<
hi <<
" : " << apdpnref << std::endl;
190 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
202 int hi = eedetidpos.hashedIndex();
204 if (
hi < static_cast<int>(laserRefMap.
size())) {
205 apdpnref = laserRefMap[
hi];
206 std::cout <<
"A sample value of APDPN Reference value EE+ : " <<
hi <<
" : " << apdpnref << std::endl;
209 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
214 EEDetId eedetidneg(iX, iY, -1);
215 hi = eedetidneg.hashedIndex();
217 if (
hi < static_cast<int>(laserRefMap.
size())) {
218 apdpnref = laserRefMap[
hi];
219 std::cout <<
"A sample value of APDPN Reference value EE- : " <<
hi <<
" : " << apdpnref << std::endl;
221 edm::LogError(
"EcalGetLaserData") <<
"error with laserRefMap!" << std::endl;
226 std::cout <<
"... just retrieved the last valid record from DB " << std::endl;
228 }
else if (container ==
"EcalLaserAlphas") {
243 int hi = ebdetid.hashedIndex();
245 if (
hi < static_cast<int>(laserAlphaMap.
size())) {
247 std::cout <<
" A sample value of Alpha value EB : " <<
hi <<
" : " <<
alpha << std::endl;
249 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
261 int hi = eedetidpos.hashedIndex();
263 if (
hi < static_cast<int>(laserAlphaMap.
size())) {
265 std::cout <<
" A sample value of Alpha value EE+ : " <<
hi <<
" : " <<
alpha << std::endl;
267 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
272 EEDetId eedetidneg(iX, iY, -1);
273 hi = eedetidneg.hashedIndex();
275 if (
hi < static_cast<int>(laserAlphaMap.
size())) {
277 std::cout <<
" A sample value of Alpha value EE- : " <<
hi <<
" : " <<
alpha << std::endl;
279 edm::LogError(
"EcalGetLaserData") <<
"error with laserAlphaMap!" << std::endl;
284 std::cout <<
"... just retrieved the last valid record from DB " << std::endl;
287 edm::LogError(
"EcalGetLaserData") <<
"Cannot retrieve for container: " << container << std::endl;
References alpha, gather_cfg::cout, edm::EventSetup::get(), get, patZpeak::handle, EBDetId::hashedIndex(), EEDetId::hashedIndex(), mps_fire::i, L1TowerCalibrationProducer_cfi::iEta, EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, m_records, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, GlobalPosition_Frontier_DevDB_cff::record, align_cfg::recordName, EcalCondObjectContainer< T >::size(), AlCaHLTBitMon_QueryRunRegistry::string, cond::timestamp, and EEDetId::validDetId().