#include <Configuration/Skimming/src/LeptonSkimming.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::stream::EDFilterBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | beginStream (edm::StreamID) override |
void | endStream () override |
bool | filter (edm::Event &, const edm::EventSetup &) override |
bool | hltFired (const edm::Event &iEvent, const edm::EventSetup &iSetup, std::vector< string > HLTPath) |
std::array< float, 5 > | hltObject (const edm::Event &iEvent, const edm::EventSetup &iSetup, std::vector< string > Seed) |
Private Attributes | |
float | beam_x |
float | beam_y |
float | beam_z |
edm::EDGetTokenT< reco::BeamSpot > | beamSpotToken_ |
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | bFieldToken_ |
double | BiasedWP = -100 |
std::vector< std::shared_ptr< reco::Track > > | cleanedObjTracks |
std::vector< std::shared_ptr< reco::Track > > | cleanedPairTracks |
std::vector< std::shared_ptr< reco::Track > > | cleanedTracks |
edm::EDGetTokenT< reco::ConversionCollection > | conversionsToken_ |
double | Cosee_Cut = -1 |
double | CoseeK_Cut = 0 |
bool | EarlyStop = false |
std::vector< float > | el_eta |
std::vector< float > | el_phi |
std::vector< float > | el_pt |
edm::EDGetTokenT< edm::ValueMap< float > > | eleBWPToken_ |
edm::EDGetToken | electronsToken_ |
edm::EDGetTokenT< edm::ValueMap< float > > | eleUnBWPToken_ |
std::vector< std::shared_ptr< reco::Track > > | ElTracks |
double | ElTrgExclusionCone = 0 |
double | ElTrgMuDz_Cut = 1000 |
std::vector< unsigned int > | Epair_ObjectId |
std::vector< unsigned int > | Epair_ObjectIndex |
std::vector< unsigned int > | Epair_TrkIndex |
double | EpairZvtx_Cut = 10000000 |
double | EtaTrack_Cut = 10 |
std::vector< string > | HLTFilter_ |
std::vector< string > | HLTPath_ |
double | Ksdxy_Cut = 1000 |
double | MaxChi2Track_Cut = 1000 |
double | MaxMB_Cut = 1000 |
double | MaxMee_Cut = 1000 |
double | MinChi2Track_Cut = -1000 |
double | MinMB_Cut = 0 |
double | MinMee_Cut = 0 |
std::vector< float > | muon_eta |
std::vector< float > | muon_medium |
std::vector< float > | muon_phi |
std::vector< float > | muon_pt |
std::vector< float > | muon_soft |
std::vector< float > | muon_tight |
edm::EDGetToken | muonsToken_ |
std::vector< std::shared_ptr< reco::Track > > | MuTracks |
double | MuTrgExclusionCone = 0 |
double | MuTrgMatchCone = 1000 |
double | MuTrgMuDz_Cut = 1000 |
double | MuTrkMinDR_Cut = 0 |
unsigned int | nel = 0 |
unsigned int | nmuons = 0 |
unsigned int | ntracks = 0 |
std::vector< unsigned int > | object_container |
std::vector< unsigned int > | object_id |
bool | ObjPtLargerThanTrack = false |
double | Probee_Cut = 0 |
double | ProbeeK_Cut = 0 |
double | PtB_Cut = 0 |
double | PtEl_Cut = 0 |
double | PtKTrack_Cut = 0 |
double | PtMu_Cut = 0 |
double | PtTrack_Cut = 0 |
double | QualMu_Cut = 0 |
bool | Result = false |
bool | SaveOnlyEPairTracks = false |
bool | SaveOnlyTracks = false |
bool | SaveOutputRoot = true |
float | SelectedMu_DR = -1 |
int | SelectedMu_index |
std::vector< float > | SelectedTrgObj_PtEtaPhiCharge |
bool | SkimOnlyElectrons = false |
bool | SkimOnlyMuons = false |
bool | SkipIfNoMuMatch = false |
double | SLxy_Cut = 0 |
std::vector< float > | tempPtEtaPhiM |
std::vector< float > | tempXYZ |
int | test_ev = 0 |
std::vector< float > | track_vx |
std::vector< float > | track_vy |
std::vector< float > | track_vz |
double | TrackMuDz_Cut = 100000000 |
std::vector< unsigned int > | trackObj_container |
std::vector< unsigned int > | trackPair_container |
edm::EDGetToken | Tracks_ |
double | TrackSdxy_Cut = 0 |
double | TrgExclusionCone = -1 |
edm::EDGetTokenT< edm::TriggerResults > | trgresultsToken_ |
edm::EDGetTokenT< trigger::TriggerEvent > | trigobjectsToken_ |
std::vector< unsigned int > | Trk_container |
unsigned int | trk_index = 0 |
double | TrkObjExclusionCone = 0 |
double | UnbiasedWP = -100 |
bool | UseOnlyBKeeMCForTriplets = false |
reco::TrackBase::Point | vertex_point |
edm::EDGetTokenT< reco::VertexCollection > | vtxToken_ |
float | ZvertexTrg = -1 * std::numeric_limits<float>::max() |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDFilter<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Public Types inherited from edm::stream::EDFilterBase | |
typedef EDFilterAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
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 |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::ProducerBase | |
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 () |
Protected Member Functions inherited from edm::EDConsumerBase | |
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: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 84 of file LeptonSkimming.h.
|
explicit |
Definition at line 26 of file LeptonSkimming.cc.
References BiasedWP, Cosee_Cut, CoseeK_Cut, ElTrgExclusionCone, ElTrgMuDz_Cut, EpairZvtx_Cut, EtaTrack_Cut, edm::ParameterSet::getParameter(), Ksdxy_Cut, MaxChi2Track_Cut, MaxMB_Cut, MaxMee_Cut, MinChi2Track_Cut, MinMB_Cut, MinMee_Cut, MuTrgExclusionCone, MuTrgMatchCone, MuTrgMuDz_Cut, MuTrkMinDR_Cut, ObjPtLargerThanTrack, Probee_Cut, ProbeeK_Cut, PtB_Cut, PtEl_Cut, PtKTrack_Cut, PtMu_Cut, PtTrack_Cut, QualMu_Cut, environment_file_cff::runParameters, SkimOnlyElectrons, SkimOnlyMuons, SkipIfNoMuMatch, SLxy_Cut, TrackMuDz_Cut, TrackSdxy_Cut, TrgExclusionCone, TrkObjExclusionCone, and UnbiasedWP.
|
override |
Definition at line 87 of file LeptonSkimming.cc.
|
overrideprivatevirtual |
Reimplemented from edm::stream::EDFilterBase.
Definition at line 527 of file LeptonSkimming.cc.
|
overrideprivatevirtual |
Reimplemented from edm::stream::EDFilterBase.
Definition at line 530 of file LeptonSkimming.cc.
|
static |
Definition at line 565 of file LeptonSkimming.cc.
References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.
|
overrideprivatevirtual |
Implements edm::stream::EDFilterBase.
Definition at line 168 of file LeptonSkimming.cc.
References beam_x, beam_y, beam_z, beamSpotToken_, Calorimetry_cff::bField, bFieldToken_, BiasedWP, ChiSquaredProbability(), cleanedObjTracks, cleanedPairTracks, cleanedTracks, pwdgSkimBPark_cfi::conversions, conversionsToken_, Cosee_Cut, CoseeK_Cut, TransientVertex::degreesOfFreedom(), PbPb_ZMuSkimMuonDPG_cff::deltaR, reco::BeamSpot::dxdz(), reco::BeamSpot::dydz(), el_eta, el_phi, el_pt, eleBWPToken_, pwdgSkimBPark_cfi::electrons, electronsToken_, eleUnBWPToken_, ElTracks, ElTrgExclusionCone, ElTrgMuDz_Cut, Epair_ObjectId, Epair_ObjectIndex, Epair_TrkIndex, EpairZvtx_Cut, submitPVResolutionJobs::err, reco::TrackBase::eta(), EtaTrack_Cut, edm::EventSetup::getData(), ConversionTools::hasMatchedConversion(), muons_cff::highPurity, HLTFilter_, hltFired(), hltObject(), HLTPath_, iEvent, isMediumMuonCustom(), muon::isSoftMuon(), isTightMuonCustom(), TransientVertex::isValid(), Ksdxy_Cut, SiStripPI::max, MaxChi2Track_Cut, MaxMB_Cut, MaxMee_Cut, MinChi2Track_Cut, MinMB_Cut, MinMee_Cut, amptDefaultParameters_cff::mu, muon_eta, muon_medium, muon_phi, muon_pt, muon_soft, muon_tight, PDWG_BPHSkim_cff::muons, muonsToken_, MuTracks, MuTrgExclusionCone, MuTrgMuDz_Cut, nel, nmuons, ntracks, getGTfromDQMFile::obj, object_container, object_id, ObjPtLargerThanTrack, PV3DBase< T, PVType, FrameType >::perp(), reco::BeamSpot::position(), TransientVertex::position(), TransientVertex::positionError(), Probee_Cut, ProbeeK_Cut, reco::TrackBase::pt(), PtB_Cut, PtEl_Cut, PtKTrack_Cut, PtMu_Cut, PtTrack_Cut, QualMu_Cut, Result, fileCollector::seed, SelectedMu_DR, SelectedMu_index, SelectedTrgObj_PtEtaPhiCharge, SkimOnlyElectrons, SkimOnlyMuons, SkipIfNoMuMatch, SLxy_Cut, mathSSE::sqrt(), test_ev, TransientVertex::totalChiSquared(), TrackMuDz_Cut, pwdgSkimBPark_cfi::tracks, Tracks_, TrackSdxy_Cut, TrgExclusionCone, trgresultsToken_, Trk_container, trk_index, TrkObjExclusionCone, UnbiasedWP, KalmanVertexFitter::vertex(), vertex_point, AlignmentTracksFromVertexSelector_cfi::vertices, L1BJetProducer_cff::vtx, vtxToken_, PV3DBase< T, PVType, FrameType >::x(), reco::BeamSpot::x0(), PV3DBase< T, PVType, FrameType >::y(), reco::BeamSpot::y0(), PV3DBase< T, PVType, FrameType >::z(), reco::BeamSpot::z0(), and ZvertexTrg.
|
private |
Definition at line 92 of file LeptonSkimming.cc.
References edm::HLTGlobalStatus::accept(), edm::HandleBase::failedToGet(), pwdgSkimBPark_cfi::HLTPath, iEvent, edm::HLTGlobalStatus::size(), AlCaHLTBitMon_QueryRunRegistry::string, trgresultsToken_, and cscTnPEfficiencyTask_cfi::trigName.
Referenced by filter().
|
private |
Definition at line 117 of file LeptonSkimming.cc.
References a, b, trigger::TriggerObject::eta(), trigger::TriggerEvent::getObjects(), trigger::TriggerObject::id(), iEvent, ProducerED_cfi::InputTag, edm::HandleBase::isValid(), dqmiolumiharvest::j, relativeConstraints::keys, trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), jetUpdater_cfi::sort, and trigobjectsToken_.
Referenced by filter().
|
private |
Definition at line 113 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 113 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 113 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 105 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 109 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 174 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 127 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 128 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 131 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 106 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 152 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 159 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 153 of file LeptonSkimming.h.
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 100 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 99 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 101 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 130 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 168 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 171 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 117 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 117 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 117 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 156 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 138 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 110 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 110 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 157 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 140 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 144 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 142 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 139 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 145 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 150 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 116 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 102 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 129 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 167 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 154 of file LeptonSkimming.h.
Referenced by LeptonSkimming().
|
private |
Definition at line 170 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 141 of file LeptonSkimming.h.
Referenced by LeptonSkimming().
|
private |
Definition at line 135 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 135 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 135 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 133 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 133 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 173 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 151 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 158 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 163 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 166 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 143 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 164 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 137 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 165 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 112 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 147 of file LeptonSkimming.h.
|
private |
Definition at line 146 of file LeptonSkimming.h.
|
private |
Definition at line 172 of file LeptonSkimming.h.
|
private |
Definition at line 122 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 120 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 119 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 177 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 176 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 155 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 162 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 126 of file LeptonSkimming.h.
|
private |
Definition at line 126 of file LeptonSkimming.h.
|
private |
Definition at line 178 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 115 of file LeptonSkimming.h.
|
private |
Definition at line 115 of file LeptonSkimming.h.
|
private |
Definition at line 115 of file LeptonSkimming.h.
|
private |
Definition at line 160 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 132 of file LeptonSkimming.h.
|
private |
Definition at line 132 of file LeptonSkimming.h.
|
private |
Definition at line 103 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 148 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 161 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 107 of file LeptonSkimming.h.
Referenced by filter(), and hltFired().
|
private |
Definition at line 108 of file LeptonSkimming.h.
Referenced by hltObject().
|
private |
Definition at line 133 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 124 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 169 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 175 of file LeptonSkimming.h.
Referenced by filter(), and LeptonSkimming().
|
private |
Definition at line 149 of file LeptonSkimming.h.
|
private |
Definition at line 125 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 104 of file LeptonSkimming.h.
Referenced by filter().
|
private |
Definition at line 123 of file LeptonSkimming.h.
Referenced by filter().