|
| FFTJetPileupAnalyzer (const edm::ParameterSet &) |
|
| FFTJetPileupAnalyzer ()=delete |
|
| FFTJetPileupAnalyzer (const FFTJetPileupAnalyzer &)=delete |
|
FFTJetPileupAnalyzer & | operator= (const FFTJetPileupAnalyzer &)=delete |
|
| ~FFTJetPileupAnalyzer () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDAnalyzerBase () 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 EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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) |
|
Description: collects the info produced by FFTJetPileupProcessor and FFTJetPileupEstimator
Implementation: [Notes on implementation]
Definition at line 52 of file FFTJetPileupAnalyzer.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 274 of file FFTJetPileupAnalyzer.cc.
References analyzePileup(), cms::cuda::assert(), collectFastJetRho, collectGridDensity, collectGrids, collectHistos, collectOOTPileup, collectPileup, collectSummaries, collectVertexInfo, filterCSVwithJSON::copy, counter, data, etSumToken, f, fastJetRhoToken, fastJetSigmaToken, compareTotals::fs, gridToken, h, histoToken, hcalRecHitTable_cff::ieta, iEvent, input, hcalRecHitTable_cff::iphi, M_PI, ndof, HLT_2024v11_cff::nEta, HLT_2024v11_cff::nPhi, nt, ntupleData, pileupToken, MetAnalyzer::pv(), heavyFlavorDQMFirstStep_cff::pvCollection, cond::runnumber, srcPVsToken, AlCaHLTBitMon_QueryRunRegistry::string, edmLumisInFiles::summary, summaryToken, totalNpu, totalNPV, mitigatedMETSequence_cff::U, and vertexNdofCut.
298 for (
unsigned ibx = 0; ibx < 3; ++ibx) {
313 std::ostringstream os;
316 copy->SetNameTitle(newname.c_str(), newname.c_str());
318 copy->SetDirectory(
fs->getBareDirectory());
352 std::ostringstream os;
360 h->GetXaxis()->SetTitle(
"Eta");
361 h->GetYaxis()->SetTitle(
"Phi");
362 h->GetZaxis()->SetTitle(
"Transverse Energy");
383 const double ndof =
pv->ndof();
edm::EDGetTokenT< reco::VertexCollection > srcPVsToken
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupToken
unsigned long long EventNumber_t
void analyzePileup(const std::vector< PileupSummaryInfo > &pInfo)
static std::string const input
edm::EDGetTokenT< TH2D > histoToken
edm::EDGetTokenT< reco::FFTJetPileupSummary > summaryToken
edm::EDGetTokenT< double > fastJetSigmaToken
char data[epos_bytes_allocation]
edm::EDGetTokenT< double > fastJetRhoToken
edm::EDGetTokenT< reco::DiscretizedEnergyFlow > gridToken
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
std::vector< float > ntupleData
edm::EDGetTokenT< std::pair< double, double > > etSumToken
void FFTJetPileupAnalyzer::analyzePileup |
( |
const std::vector< PileupSummaryInfo > & |
pInfo | ) |
|
|
private |
Definition at line 167 of file FFTJetPileupAnalyzer.cc.
References nano_mu_digi_cff::bx, collectOOTPileup, collectPileup, gather_cfg::cout, crazyEnergyCut, PileupSummaryInfo::getBunchCrossing(), PileupSummaryInfo::getPU_NumInteractions(), PileupSummaryInfo::getPU_sumpT_highpT(), PileupSummaryInfo::getPU_sumpT_lowpT(), heavyIonCSV_trainingSettings::idx, info(), ntupleData, totalNpu, mitigatedMETSequence_cff::U, and verbosePileupInfo.
Referenced by analyze().
168 const unsigned nBx =
info.size();
170 ntupleData.push_back(static_cast<float>(nBx));
172 double sumpt_Lo = 0.0, sumpt_Hi = 0.0;
178 double sumpt_Lo_by_Bx[3] =
182 sumpt_Hi_by_Bx[3] = {
187 std::cout <<
"\n**** Pileup info begin" << std::endl;
189 bool isCrazy =
false;
190 for (
unsigned ibx = 0; ibx < nBx; ++ibx) {
193 const int bx = puInfo.getBunchCrossing();
194 const int npu = puInfo.getPU_NumInteractions();
195 const std::vector<float>& lopt(puInfo.getPU_sumpT_lowpT());
196 const std::vector<float>& hipt(puInfo.getPU_sumpT_highpT());
197 const double losum = std::accumulate(lopt.begin(), lopt.end(), 0.0);
198 const double hisum = std::accumulate(hipt.begin(), hipt.end(), 0.0);
209 const unsigned idx =
bx < 0 ? 0
U : (
bx == 0 ? 1
U : 2
U);
210 npu_by_Bx[
idx] += npu;
211 sumpt_Lo_by_Bx[
idx] += losum;
212 sumpt_Hi_by_Bx[
idx] += hisum;
215 std::cout <<
"ibx " << ibx <<
" bx " <<
bx <<
" npu " << npu <<
" losum " << losum <<
" hisum " << hisum
220 std::cout <<
"**** Pileup info end\n" << std::endl;
226 for (
unsigned ibx = 0; ibx < 3; ++ibx) {
228 sumpt_Lo_by_Bx[ibx] = 0.0;
229 sumpt_Hi_by_Bx[ibx] = 0.0;
240 for (
unsigned ibx = 0; ibx < 3; ++ibx) {
std::vector< float > ntupleData