|
void | beginRun (const edm::Run &, const edm::EventSetup &) override |
|
| PPSTimingCalibrationPCLHarvester (const edm::ParameterSet &) |
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
void | beginJob () override |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &) override |
|
virtual void | dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &) |
|
| DQMEDHarvester (edm::ParameterSet const &iConfig) |
|
| DQMEDHarvester () |
|
virtual void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) |
|
virtual void | dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &) |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final |
|
void | endProcessBlockProduce (edm::ProcessBlock &) final |
|
void | endRun (edm::Run const &, edm::EventSetup const &) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &es) final |
|
| ~DQMEDHarvester () override=default |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
const EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > 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 const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef dqm::harvesting::DQMStore | DQMStore |
|
typedef dqm::harvesting::MonitorElement | MonitorElement |
|
typedef EDProducerBase | ModuleType |
|
template<typename T > |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
template<Transition Tr = Transition::Event> |
auto | produces (std::string instanceName) noexcept |
| declare what type of product will make and with which optional label More...
|
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<Transition Tr = Transition::Event> |
auto | produces () noexcept |
|
ProducesCollector | producesCollector () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
DQMStore * | dqmstore_ |
|
edm::GetterOfProducts< DQMToken > | jobmegetter_ |
|
edm::EDPutTokenT< DQMToken > | jobToken_ |
|
edm::GetterOfProducts< DQMToken > | lumimegetter_ |
|
edm::EDPutTokenT< DQMToken > | lumiToken_ |
|
edm::GetterOfProducts< DQMToken > | runmegetter_ |
|
edm::EDPutTokenT< DQMToken > | runToken_ |
|
Implements DQMEDHarvester.
Definition at line 87 of file PPSTimingCalibrationPCLHarvester.cc.
References dqm::implementation::IBooker::bookProfile(), l1tEGammaCrystalsEmulatorProducer_cfi::calib, dqm::implementation::NavigatorBase::cd(), cond::service::PoolDBOutputService::currentTime(), detids_, dqmDir_, formula_, dqm::implementation::IGetter::get(), compare::hists, mps_fire::i, createfilelist::int, interp_, submitPVResolutionJobs::key, lower_limit_range_search_, min_entries_, offset_, PostProcessor_cff::profile, resolution_, dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, DiMuonV_cfg::threshold, threshold_fraction_of_max_, upper_limit_max_search_, upper_limit_range_search_, and cond::service::PoolDBOutputService::writeOneIOV().
98 for (
const auto& detid :
detids_) {
99 detid.channelName(ch_name);
100 const auto chid = detid.rawId();
102 (
int)detid.arm(), (
int)detid.station(), (
int)detid.plane(), (
int)detid.channel()};
104 calib_params[
key] = {0, 0, 0, 0};
108 if (
hists.leadingTime[chid] ==
nullptr) {
109 edm::LogInfo(
"PPSTimingCalibrationPCLHarvester:dqmEndJob")
110 <<
"Failed to retrieve leading time monitor for channel (" << detid <<
").";
114 if (
hists.toT[chid] ==
nullptr) {
115 edm::LogInfo(
"PPSTimingCalibrationPCLHarvester:dqmEndJob")
116 <<
"Failed to retrieve time over threshold monitor for channel (" << detid <<
").";
119 hists.leadingTimeVsToT[chid] = iGetter.
get(
dqmDir_ +
"/tvstot_" + ch_name);
120 if (
hists.leadingTimeVsToT[chid] ==
nullptr) {
121 edm::LogInfo(
"PPSTimingCalibrationPCLHarvester:dqmEndJob")
122 <<
"Failed to retrieve leading time vs. time over threshold monitor for channel (" << detid <<
").";
127 <<
"Not enough entries for channel (" << detid <<
"): " <<
hists.leadingTimeVsToT[chid]->getEntries() <<
" < " 134 for (
int i = 0;
i <
hists.toT[chid]->getNbinsX();
i++) {
135 double bin_value =
hists.toT[chid]->getBinContent(
i);
136 int bin_x_pos =
hists.toT[chid]->getTH1()->GetXaxis()->GetBinCenter(
i);
139 if (bin_value >
hists.toT[chid]->getBinContent(max_bin_pos))
143 int upper_limit_pos = max_bin_pos;
144 int lower_limit_pos = max_bin_pos;
156 double upper_tot_range =
hists.toT[chid]->getTH1()->GetXaxis()->GetBinCenter(upper_limit_pos);
157 double lower_tot_range =
hists.toT[chid]->getTH1()->GetXaxis()->GetBinCenter(lower_limit_pos);
162 detid.channelName(ch_name);
163 auto profile = iBooker.
bookProfile(ch_name +
"_prof_x", ch_name +
"_prof_x", 240, 0., 60., 450, -20., 25.);
165 std::unique_ptr<TProfile> prof(
hists.leadingTimeVsToT[chid]->getTH2F()->ProfileX(
"_prof_x", 1, -1));
166 *(
profile->getTProfile()) = *((TProfile*)prof->Clone());
167 profile->getTProfile()->SetTitle(ch_name.c_str());
168 profile->getTProfile()->SetName(ch_name.c_str());
170 interp_.SetParameters(
hists.leadingTime[chid]->getRMS(),
171 hists.toT[chid]->getMean(),
173 hists.leadingTime[chid]->getMean() -
hists.leadingTime[chid]->getRMS());
174 const auto&
res =
profile->getTProfile()->Fit(&
interp_,
"B+",
"", lower_tot_range, upper_tot_range);
176 calib_params[
key] = {
184 <<
"Fit did not converge for channel (" << detid <<
").";
std::map< Key, std::pair< double, double > > TimingMap
virtual void setCurrentFolder(std::string const &fullpath)
const std::string dqmDir_
static constexpr double upper_limit_max_search_
const double threshold_fraction_of_max_
const unsigned int min_entries_
cond::Time_t currentTime() const
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
Helper structure for indexing calibration data.
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
static constexpr double lower_limit_range_search_
key
prepare the HTCondor submission files and eventually submit them
Log< level::Info, false > LogInfo
virtual MonitorElement * get(std::string const &fullpath) const
static constexpr double offset_
static constexpr double upper_limit_range_search_
std::map< Key, std::vector< double > > ParametersMap
Log< level::Warning, false > LogWarning
const std::string formula_
std::vector< CTPPSDiamondDetId > detids_
static constexpr double resolution_