#include <DPGAnalysis/MuonTools/plugins/MuCSCTnPFlatTableProducer.cc>
Public Member Functions | |
MuCSCTnPFlatTableProducer (const edm::ParameterSet &) | |
Constructor. More... | |
Public Member Functions inherited from MuBaseFlatTableProducer | |
void | beginRun (const edm::Run &run, const edm::EventSetup &config) final |
Configure event setup for each run. More... | |
void | endRun (const edm::Run &, const edm::EventSetup &) final |
Empty, needed by interface. More... | |
MuBaseFlatTableProducer (const edm::ParameterSet &) | |
Constructor. More... | |
void | produce (edm::Event &, const edm::EventSetup &) final |
Fill ntuples event by event. More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
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 |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &) |
Fill descriptors. More... | |
Protected Member Functions | |
void | fillTable (edm::Event &) final |
Fill tree branches for a given events. More... | |
void | getFromES (const edm::Run &, const edm::EventSetup &) final |
Get info from the ES by run. More... | |
void | getFromES (const edm::EventSetup &) final |
Get info from the ES for a given event. More... | |
Protected Member Functions inherited from MuBaseFlatTableProducer | |
template<typename T > | |
void | addColumn (std::unique_ptr< nanoaod::FlatTable > &table, const std::string name, const std::vector< T > &vec, const std::string descr) |
Static Private Attributes | |
static constexpr Float_t | MEZ [6] = {601.3, 696.11, 696.11, 827.56, 936.44, 1025.9} |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
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 |
Protected Attributes inherited from MuBaseFlatTableProducer | |
std::string | m_name |
The label name of the FlatTableProducer. More... | |
Static Protected Attributes inherited from MuBaseFlatTableProducer | |
static constexpr double | DEFAULT_DOUBLE_VAL {-999.0} |
Definition of default values for float variables. More... | |
static constexpr double | DEFAULT_DOUBLE_VAL_POS {-1.0} |
Definition of default values for positive float variables. More... | |
static constexpr int8_t | DEFAULT_INT8_VAL {-99} |
Definition of default values for int8 variables. More... | |
static constexpr int | DEFAULT_INT_VAL {-999} |
Definition of default values for int variables. More... | |
static constexpr int | DEFAULT_INT_VAL_POS {-1} |
Definition of default values for positive int variables. More... | |
Helper class : the CSC Tag and probe segment efficiency filler
Definition at line 62 of file MuCSCTnPFlatTableProducer.cc.
MuCSCTnPFlatTableProducer::MuCSCTnPFlatTableProducer | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 165 of file MuCSCTnPFlatTableProducer.cc.
References DiMuonV_cfg::config.
|
private |
Definition at line 1009 of file MuCSCTnPFlatTableProducer.cc.
References HLT_2024v14_cff::eta1, HLT_2024v14_cff::eta2, M_PI, and mathSSE::sqrt().
Referenced by fillTable(), and iso().
|
private |
Definition at line 657 of file MuCSCTnPFlatTableProducer.cc.
References SiStripPI::max, and HLTObjectMonitor_cfi::muonPt.
Referenced by muonTagSelection().
|
private |
Definition at line 653 of file MuCSCTnPFlatTableProducer.cc.
References HLTObjectMonitor_cfi::muonPt.
Referenced by fillTable().
|
static |
Fill descriptors.
Definition at line 182 of file MuCSCTnPFlatTableProducer.cc.
References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
finalprotectedvirtual |
Fill tree branches for a given events.
Implements MuBaseFlatTableProducer.
Definition at line 234 of file MuCSCTnPFlatTableProducer.cc.
References _trackIso, _zMass, MuBaseFlatTableProducer::addColumn(), calcDeltaR(), CSCGeometry::chamber(), computeTrkIso(), nano_mu::EDTokenHandle< T >::conditionalGet(), HGC3DClusterGenMatchSelector_cfi::dR, PV3DBase< T, PVType, FrameType >::eta(), makeMEIFBenchmarkPlots::ev, TrajectoryStateOnSurface::freeState(), CSCLayer::geometry(), GetEdgeAndDistToGap(), TrajectoryStateOnSurface::globalPosition(), hasTrigger(), CSCGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), nano_mu::ESTokenHandle< T, R, TR >::isValid(), nano_mu_digi_cff::layer, CSCChamber::layer(), hgcalTBTopologyTester_cfi::layers, m_cscGeometry, m_cscSegmentToken, m_isoTrigIndices, m_muonSP, m_muToken, MuBaseFlatTableProducer::m_name, m_nZCands, m_primaryVerticesToken, m_trackToken, m_transientTrackBuilder, m_trigEventToken, m_trigIndices, m_trigResultsToken, matchTTwithCSCSeg(), MEZ, eostools::move(), DiMuonV_cfg::muons, muonTagSelection(), CSCLayerGeometry::nearestWire(), PV3DBase< T, PVType, FrameType >::phi(), FreeTrajectoryState::position(), HLT_2024v14_cff::primaryVertices, propagatorAlong, propagatorOpposite, rpcPointValidation_cfi::recHit, ringCandidate(), mathSSE::sqrt(), CSCLayerGeometry::strip(), GeomDet::surface(), surfExtrapTrkSam(), TableParser::table, theBField, thisChamberCandidate(), HLT_2024v14_cff::track, trackProbeSelection(), DiMuonV_cfg::tracks, PDWG_DiPhoton_SD_cff::triggerEvent, triggerMatchMonitor_cfi::triggerObjects, triggerResults, run3scouting_cff::trkEta, run3scouting_cff::trkPhi, AlignmentTracksFromVertexSelector_cfi::vertices, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and zSelection().
|
private |
Definition at line 758 of file MuCSCTnPFlatTableProducer.cc.
References MillePedeFileConverter_cfg::e, theBField, and HLT_2024v14_cff::track.
Referenced by surfExtrapTrkSam().
|
private |
Definition at line 910 of file MuCSCTnPFlatTableProducer.cc.
References funct::abs(), TrajectoryStateOnSurface::freeState(), CSCLayer::geometry(), CSCGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), CSCGeometry::layer(), CSCWireTopology::lengthOfPlane(), TrajectoryStateOnSurface::localError(), m_cscGeometry, CSCWireTopology::narrowWidthOfPlane(), GloballyPositioned< T >::position(), FreeTrajectoryState::position(), LocalTrajectoryError::positionError(), mps_fire::result, CSCDetId::ring(), mathSSE::sqrt(), CSCDetId::station(), GeomDet::surface(), surfExtrapTrkSam(), GloballyPositioned< T >::toLocal(), HLT_2024v14_cff::track, CSCWireTopology::wideWidthOfPlane(), CSCWireTopology::wireAngle(), CSCLayerGeometry::wireTopology(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), YDistToHVDeadZone(), CSCWireTopology::yOfWire(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by fillTable().
|
finalprotectedvirtual |
Get info from the ES by run.
Reimplemented from MuBaseFlatTableProducer.
Definition at line 202 of file MuCSCTnPFlatTableProducer.cc.
References reco_calib_source_client_cfg::environment, nano_mu::ESTokenHandle< T, R, TR >::getFromES(), HLTConfigProvider::init(), m_cscGeometry, m_hltConfig, m_isoTrigIndices, m_isoTrigName, m_trigIndices, m_trigName, hltMonBTagIPClient_cfi::pathName, writedatasetfile::run, HLTConfigProvider::size(), simpleEdmComparison::tName, and HLTConfigProvider::triggerName().
|
finalprotectedvirtual |
Get info from the ES for a given event.
Reimplemented from MuBaseFlatTableProducer.
Definition at line 229 of file MuCSCTnPFlatTableProducer.cc.
References reco_calib_source_client_cfg::environment, nano_mu::ESTokenHandle< T, R, TR >::getFromES(), m_muonSP, and m_transientTrackBuilder.
|
private |
Definition at line 663 of file MuCSCTnPFlatTableProducer.cc.
References PbPb_ZMuSkimMuonDPG_cff::deltaR, HGC3DClusterGenMatchSelector_cfi::dR, METSignificanceParams_cfi::dRMatch, spr::find(), relativeConstraints::keys, m_hltConfig, HLTConfigProvider::moduleLabels(), B2GTnPMonitor_cfi::trigEvent, and TriggerAnalyzer::trigObjs.
Referenced by fillTable().
|
private |
Definition at line 999 of file MuCSCTnPFlatTableProducer.cc.
References calcDeltaR(), HGC3DClusterGenMatchSelector_cfi::dR, objects.IsoTrackAnalyzer::isoSum, HLT_2024v14_cff::track, and DiMuonV_cfg::tracks.
Referenced by trackProbeSelection().
|
private |
Definition at line 866 of file MuCSCTnPFlatTableProducer.cc.
References funct::abs(), CSCDetId::chamber(), CSCGeometry::chamber(), dtChamberEfficiency_cfi::cscSegments, CSCDetId::endcap(), m_cscGeometry, CSCDetId::ring(), relativeConstraints::ring, CSCDetId::station(), surfExtrapTrkSam(), GeomDet::toGlobal(), HLT_2024v14_cff::track, TrajectoryDistToSeg(), and z.
Referenced by fillTable().
|
private |
Definition at line 692 of file MuCSCTnPFlatTableProducer.cc.
References _muonIso, funct::abs(), PixelTripletNoTipGenerator_cfi::chi2Cut, computePFIso(), heepElectronID_HEEPV51_cff::dxyCut, TrackSplittingMonitor_cfi::dzCut, and jetfilter_cfi::ptCut.
Referenced by fillTable().
|
private |
Definition at line 773 of file MuCSCTnPFlatTableProducer.cc.
References funct::abs(), JetMETHLTOfflineSource_cfi::feta, relativeConstraints::ring, and relativeConstraints::station.
Referenced by fillTable().
|
private |
Definition at line 744 of file MuCSCTnPFlatTableProducer.cc.
References Plane::build(), freeTrajStateMuon(), TrajectoryStateOnSurface::isValid(), Propagator::propagate(), propagatorAlong, propagatorOpposite, makeMuonMisalignmentScenario::rot, HLT_2024v14_cff::track, and z.
Referenced by fillTable(), GetEdgeAndDistToGap(), and matchTTwithCSCSeg().
|
private |
Definition at line 837 of file MuCSCTnPFlatTableProducer.cc.
References M_PI, phi, relativeConstraints::ring, and relativeConstraints::station.
Referenced by fillTable().
|
private |
Selection functions.
Definition at line 715 of file MuCSCTnPFlatTableProducer.cc.
References _trackIso, funct::abs(), PixelTripletNoTipGenerator_cfi::chi2Cut, heepElectronID_HEEPV51_cff::dxyCut, TrackSplittingMonitor_cfi::dzCut, iso(), jetfilter_cfi::ptCut, HLT_2024v14_cff::track, and DiMuonV_cfg::tracks.
Referenced by fillTable().
|
private |
Definition at line 854 of file MuCSCTnPFlatTableProducer.cc.
References TrajectoryStateOnSurface::freeState(), CSCGeometry::idToDet(), TrajectoryStateOnSurface::isValid(), m_cscGeometry, FreeTrajectoryState::position(), funct::pow(), mathSSE::sqrt(), GeomDet::surface(), GloballyPositioned< T >::toLocal(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by matchTTwithCSCSeg().
|
private |
Definition at line 953 of file MuCSCTnPFlatTableProducer.cc.
References funct::abs(), and HGVHistoProducerAlgoBlock_cfi::minY.
Referenced by GetEdgeAndDistToGap().
|
private |
Definition at line 1023 of file MuCSCTnPFlatTableProducer.cc.
References funct::pow(), mathSSE::sqrt(), and HLT_2024v14_cff::track.
Referenced by zSelection().
|
private |
Definition at line 734 of file MuCSCTnPFlatTableProducer.cc.
References _zMass, HLT_2024v14_cff::track, and zMass().
Referenced by fillTable().
|
private |
Definition at line 153 of file MuCSCTnPFlatTableProducer.cc.
Referenced by muonTagSelection().
|
private |
Definition at line 152 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and trackProbeSelection().
|
private |
Definition at line 154 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and zSelection().
|
private |
Handles to geometry, detector and specialized objects CSC Geometry
Definition at line 100 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), GetEdgeAndDistToGap(), getFromES(), matchTTwithCSCSeg(), and TrajectoryDistToSeg().
|
private |
Definition at line 87 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable().
|
private |
HLT config provider.
Definition at line 114 of file MuCSCTnPFlatTableProducer.cc.
Referenced by getFromES(), and hasTrigger().
|
private |
Definition at line 118 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and getFromES().
|
private |
Definition at line 96 of file MuCSCTnPFlatTableProducer.cc.
Referenced by getFromES().
|
private |
Muon service proxy.
Definition at line 103 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and getFromES().
|
private |
|
private |
The variables holding the T&P related information
Definition at line 150 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable().
|
private |
Definition at line 89 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable().
|
private |
Definition at line 85 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable().
|
private |
Transient Track Builder.
Definition at line 106 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and getFromES().
|
private |
Definition at line 92 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable().
|
private |
Indices of the triggers used by muon filler for trigger matching.
Definition at line 117 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and getFromES().
|
private |
Name of the triggers used by muon filler for trigger matching.
Definition at line 95 of file MuCSCTnPFlatTableProducer.cc.
Referenced by getFromES().
|
private |
Definition at line 91 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable().
|
staticprivate |
Definition at line 81 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable().
|
private |
Definition at line 109 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and surfExtrapTrkSam().
|
private |
Definition at line 110 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and surfExtrapTrkSam().
|
private |
Definition at line 111 of file MuCSCTnPFlatTableProducer.cc.
Referenced by fillTable(), and freeTrajStateMuon().