|
| ShortenedTrackValidation (const edm::ParameterSet &) |
|
| ~ShortenedTrackValidation () override=default |
|
| 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 |
|
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) |
|
Definition at line 57 of file ShortenedTrackValidation.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 511 of file ShortenedTrackValidation.cc.
References funct::abs(), pwdgSkimBPark_cfi::beamSpot, align::BeamSpot, beamspotToken_, comparators_, PbPb_ZMuSkimMuonDPG_cff::deltaR, edm::InputTag::encode(), ShortenedTrackValidation::trackingMon::fill(), histsDeltaPtOverPtAll_, histsDeltaRAll_, histsEtaDiffAll_, histsNhitsAll_, histsPhiDiffAll_, histsPtAll_, histsPtDiffAll_, histsPtRatioAll_, histsPtRatioVsDeltaRAll_, trackingPlots::hp, mps_fire::i, iEvent, edm::HandleBase::isValid(), maxDr_, maxTracksEta_, maxTracksPt_, minTracksEta_, minTracksPt_, muMass, originalTrack, unpackBuffers-CaloStage2::token, HLT_2023v12_cff::track, reco::HitPattern::TRACK_HITS, DiMuonV_cfg::tracks, tracksRerecoToken_, tracksTag_, tracksToken_, HltBtagValidation_cff::Vertex, and vertexToken_.
521 if (beamSpotHandle.
isValid()) {
530 pvtx = (*vertexHandle).at(0);
551 const auto &tracks_rereco =
iEvent.getHandle(
token);
553 for (
const auto &track_rereco : *tracks_rereco) {
554 TLorentzVector trerecovec;
555 trerecovec.SetPtEtaPhiM(track_rereco.pt(), track_rereco.eta(), track_rereco.phi(), 0.0);
556 double deltaR = tvec.DeltaR(trerecovec);
std::vector< TH1F * > histsNhitsAll_
trackingMon originalTrack
Log< level::Error, false > LogError
std::vector< TH1F * > histsDeltaPtOverPtAll_
const edm::InputTag tracksTag_
std::vector< TH1F * > histsPhiDiffAll_
static constexpr double muMass
std::vector< TH1F * > histsPtRatioAll_
const double minTracksPt_
Abs< T >::type abs(const T &t)
std::vector< TH2F * > histsPtRatioVsDeltaRAll_
const edm::EDGetTokenT< std::vector< reco::Track > > tracksToken_
const double maxTracksEta_
std::vector< TH1F * > histsDeltaRAll_
const double maxTracksPt_
std::vector< trackComparator * > comparators_
std::vector< TH1F * > histsEtaDiffAll_
const double minTracksEta_
std::vector< TH1F * > histsPtAll_
const edm::EDGetTokenT< reco::BeamSpot > beamspotToken_
const std::vector< edm::EDGetTokenT< std::vector< reco::Track > > > tracksRerecoToken_
const edm::EDGetTokenT< reco::VertexCollection > vertexToken_
std::vector< TH1F * > histsPtDiffAll_
void fill(const reco::Track &track, const reco::BeamSpot &beamSpot, const reco::Vertex &pvtx)
void ShortenedTrackValidation::beginJob |
( |
| ) |
|
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 405 of file ShortenedTrackValidation.cc.
References ShortenedTrackValidation::trackingMon::book(), comparators_, folderName_, fs_, histsDeltaPtOverPtAll_, histsDeltaRAll_, histsEtaDiffAll_, histsNhitsAll_, histsPhiDiffAll_, histsPtAll_, histsPtDiffAll_, histsPtRatioAll_, histsPtRatioVsDeltaRAll_, hitsRemain_, mps_fire::i, TFileService::mkdir(), definitions::original, originalTrack, and AlCaHLTBitMon_QueryRunRegistry::string.
413 book<TH1F>(ShortTrackResolution,
414 fmt::sprintf(
"trackPtRatio_%s",
hitsRemain_[
i]).c_str(),
415 fmt::sprintf(
"Short Track p_{T} / Full Track p_{T} - %s layers;p_{T}^{short}/p_{T}^{full};n. tracks",
423 ShortTrackResolution,
425 fmt::sprintf(
"Short Track p_{T} - Full Track p_{T} - %s layers;p_{T}^{short} - p_{T}^{full} [GeV];n. tracks",
433 book<TH1F>(ShortTrackResolution,
434 fmt::sprintf(
"trackEtaDiff_%s",
hitsRemain_[
i]).c_str(),
435 fmt::sprintf(
"Short Track #eta - Full Track #eta - %s layers;#eta^{short} - #eta^{full};n. tracks",
443 book<TH1F>(ShortTrackResolution,
444 fmt::sprintf(
"trackPhiDiff_%s",
hitsRemain_[
i]).c_str(),
445 fmt::sprintf(
"Short Track #phi - Full Track #phi - %s layers;#phi^{short} - #phi^{full};n. tracks",
453 book<TH2F>(ShortTrackResolution,
454 fmt::sprintf(
"trackPtRatioVsDeltaR_%s",
hitsRemain_[
i]).c_str(),
455 fmt::sprintf(
"Short Track p_{T} / Full Track p_{T} - %s layers vs " 456 "#DeltaR;#DeltaR(short,full);p_{T}^{short}/p_{T}^{full} [GeV];n. tracks",
467 book<TH1F>(ShortTrackResolution,
468 fmt::sprintf(
"trackDeltaPtOverPt_%s",
hitsRemain_[
i]).c_str(),
469 fmt::sprintf(
"Short Track p_{T} - Full Track p_{T} / Full Track p_{T} - %s layers;p_{T}^{short} - " 470 "p_{T}^{full} / p^{full}_{T};n. tracks",
478 book<TH1F>(TrackQuals,
480 fmt::sprintf(
"Short Track p_{T} - %s layers;p_{T}^{short} [GeV];n. tracks",
hitsRemain_[
i]).c_str(),
486 book<TH1F>(TrackQuals,
488 fmt::sprintf(
"Short Track n. hits - %s layers; n. hits per track;n. tracks",
hitsRemain_[
i]).c_str(),
496 fmt::sprintf(
"Short Track / Long Track #DeltaR %s layers;#DeltaR(short,long);n. tracks",
hitsRemain_[
i]).c_str(),
const std::vector< std::string > hitsRemain_
edm::Service< TFileService > fs_
std::vector< TH1F * > histsNhitsAll_
void book(const TFileDirectory &fs)
trackingMon originalTrack
std::vector< TH1F * > histsDeltaPtOverPtAll_
std::vector< TH1F * > histsPhiDiffAll_
std::vector< TH1F * > histsPtRatioAll_
std::vector< TH2F * > histsPtRatioVsDeltaRAll_
std::vector< TH1F * > histsDeltaRAll_
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
std::vector< trackComparator * > comparators_
std::vector< TH1F * > histsEtaDiffAll_
std::vector< TH1F * > histsPtAll_
const std::string folderName_
std::vector< TH1F * > histsPtDiffAll_