|
void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
| OffsetAnalyzerDQM (const edm::ParameterSet &) |
|
void | accumulate (edm::Event const &event, edm::EventSetup const &setup) final |
|
virtual void | analyze (edm::Event const &, edm::EventSetup const &) |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual void | dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
virtual void | dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
|
virtual void | dqmEndRun (edm::Run const &, edm::EventSetup const &) |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &, edm::EventSetup const &) final |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) final |
|
virtual bool | getCanSaveByLumi () |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () 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 |
|
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) |
|
| ~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 |
|
ESProxyIndex const * | esGetTokenIndices (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::vector< ModuleDescription const * > &modules, 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 |
|
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) |
|
|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
void | dqmBeginRun (const edm::Run &, const edm::EventSetup &) override |
|
void | dqmEndRun (const edm::Run &, const edm::EventSetup &) override |
|
int | getEtaIndex (float eta) |
|
ProducesCollector | producesCollector () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
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 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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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) |
|
Definition at line 16 of file OffsetAnalyzerDQM.cc.
Definition at line 97 of file OffsetAnalyzerDQM.cc.
References OffsetAnalyzerDQM::Plot1D::dir, etabins, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, muHigh, muToken, dqmiodumpmetadata::n, OffsetAnalyzerDQM::Plot1D::name, npvHigh, offsetPlotBaseName, offsetPlots, offsetAnalyzerDQM_cff::pdgKeys, pdgMap, offsetAnalyzerDQM_cff::pdgStrs, pfToken, pftypes, OffsetAnalyzerDQM::Plot1D::Plot1D(), muonDTDigis_cfi::pset, pvToken, AlCaHLTBitMon_QueryRunRegistry::string, th1dPlots, OffsetAnalyzerDQM::Plot1D::title, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::y1.
111 const auto& offset_psets = iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"offsetPlots");
112 for (
auto&
pset : offset_psets) {
116 std::vector<double> vx =
pset.getParameter<std::vector<double>>(
"vx");
117 int ny =
pset.getParameter<uint32_t>(
"ny");
118 double y0 =
pset.getParameter<
double>(
"y0");
119 double y1 =
pset.getParameter<
double>(
"y1");
121 offsetPlots[
name] = PlotProfile(name, title, dir, 0, 0, 0, vx, ny, y0, y1);
125 const auto& th1d_psets = iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"th1dPlots");
126 for (
auto&
pset : th1d_psets) {
130 int nx =
pset.getParameter<uint32_t>(
"nx");
131 double x0 =
pset.getParameter<
double>(
"x0");
132 double x1 =
pset.getParameter<
double>(
"x1");
139 std::vector<std::string>
pdgStrs = iConfig.
getParameter<std::vector<std::string>>(
"pdgStrs");
140 for (
int i = 0,
n = pdgKeys.size();
i <
n;
i++)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< edm::View< PileupSummaryInfo > > muToken
std::map< int, std::string > pdgMap
std::map< std::string, Plot1D > th1dPlots
std::vector< double > etabins
edm::EDGetTokenT< edm::View< pat::PackedCandidate > > pfToken
std::string offsetPlotBaseName
std::map< std::string, PlotProfile > offsetPlots
edm::EDGetTokenT< edm::View< reco::Vertex > > pvToken
std::vector< std::string > pftypes
Definition at line 154 of file OffsetAnalyzerDQM.cc.
References funct::abs(), PVValHelper::eta, etabins, edm::Event::getByToken(), getEtaIndex(), mps_fire::i, amptDefaultParameters_cff::mu, muHigh, muToken, dqmiodumpmetadata::n, HLT_2018_cff::nEta, npvHigh, offsetPlotBaseName, offsetPlots, pdgMap, pfToken, pftypes, MetAnalyzer::pv(), pvToken, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, edmLumisInFiles::summary, and th1dPlots.
159 unsigned int nPVall = vertexHandle->size();
160 bool isGoodPV[nPVall];
161 for (
size_t i = 0;
i < nPVall; ++
i)
165 for (
unsigned int i = 0;
i < nPVall;
i++) {
166 const auto&
pv = vertexHandle->at(
i);
168 if (!
pv.isFake() &&
pv.ndof() >= 4 && fabs(
pv.z()) <= 24.0 && fabs(
pv.position().rho()) <= 2.0) {
174 int npv_in_range = npv;
175 if (npv_in_range < 0)
177 else if (npv_in_range >=
npvHigh)
184 const auto&
summary = *muHandle;
185 auto it = std::find_if(
summary.begin(),
summary.end(), [](
const auto&
s) {
return s.getBunchCrossing() == 0; });
187 if (it->getBunchCrossing() != 0) {
188 edm::LogError(
"OffsetAnalyzerDQM") <<
"Cannot find the in-time pileup info " << it->getBunchCrossing();
190 float mu = it->getTrueNumInteractions();
199 std::map<std::string, std::vector<double>> m_pftype_etaE;
201 for (
const auto& pftype :
pftypes)
202 m_pftype_etaE[pftype].assign(nEta, 0.0);
208 for (
unsigned int i = 0,
n = pfHandle->size();
i <
n;
i++) {
209 const auto&
cand = pfHandle->at(
i);
213 if (etaIndex == -1 || pftype.empty())
216 if (pftype ==
"chm") {
217 bool attached =
false;
219 for (
unsigned int ipv = 0; ipv < nPVall && !attached; ipv++) {
220 if (isGoodPV[ipv] &&
cand.fromPV(ipv) == 3)
245 m_pftype_etaE[pftype][etaIndex] +=
cand.et();
248 for (
const auto& pair : m_pftype_etaE) {
250 std::vector<double> etaE = pair.second;
256 for (
int i = 0;
i <
nEta;
i++) {
266 for (
int i = 0;
i <
nEta;
i++) {
edm::EDGetTokenT< edm::View< PileupSummaryInfo > > muToken
std::map< int, std::string > pdgMap
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::map< std::string, Plot1D > th1dPlots
std::vector< double > etabins
edm::EDGetTokenT< edm::View< pat::PackedCandidate > > pfToken
int getEtaIndex(float eta)
Abs< T >::type abs(const T &t)
std::string offsetPlotBaseName
std::map< std::string, PlotProfile > offsetPlots
edm::EDGetTokenT< edm::View< reco::Vertex > > pvToken
std::vector< std::string > pftypes