Classes | |
struct | caloRecHitCollections |
struct | InputDescTau |
Public Types | |
using | TrackSoAHost = pixelTrack::TrackSoAHostPhase1 |
Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< L2TauNNProducerCacheData > > | |
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 Member Functions | |
L2TauNNProducer (const edm::ParameterSet &, const L2TauNNProducerCacheData *) | |
Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< L2TauNNProducerCacheData > > | |
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 &) |
static void | globalEndJob (L2TauNNProducerCacheData *) |
static std::unique_ptr< L2TauNNProducerCacheData > | initializeGlobalCache (const edm::ParameterSet &) |
Static Public Attributes | |
static constexpr float | dEta_width = 2 * L2TauTagNNv1::dR_max / static_cast<float>(L2TauTagNNv1::nCellEta) |
static constexpr float | dPhi_width = 2 * L2TauTagNNv1::dR_max / static_cast<float>(L2TauTagNNv1::nCellPhi) |
static constexpr float | dR2_max = L2TauTagNNv1::dR_max * L2TauTagNNv1::dR_max |
Private Member Functions | |
void | checknan (tensorflow::Tensor &tensor, int debugLevel) |
void | fillCaloRecHits (tensorflow::Tensor &cellGridMatrix, const std::vector< l1t::TauRef > &allTaus, const caloRecHitCollections &caloRecHits) |
void | fillL1TauVars (tensorflow::Tensor &cellGridMatrix, const std::vector< l1t::TauRef > &allTaus) |
void | fillPatatracks (tensorflow::Tensor &cellGridMatrix, const std::vector< l1t::TauRef > &allTaus, const TrackSoAHost &patatracks_tsoa, const ZVertexSoAHost &patavtx_soa, const reco::BeamSpot &beamspot, const MagneticField *magfi) |
template<typename VPos , typename LVec > | |
std::tuple< float, float, int, int > | getEtaPhiIndices (const VPos &position, const LVec &tau_p4) |
template<typename LVec > | |
std::tuple< float, float, int, int > | getEtaPhiIndices (float eta, float phi, const LVec &tau_p4) |
std::vector< float > | getTauScore (const tensorflow::Tensor &cellGridMatrix) |
std::pair< float, float > | impactParameter (int it, const TrackSoAHost &patatracks_tsoa, float patatrackPhi, const reco::BeamSpot &beamspot, const MagneticField *magfi) |
void | produce (edm::Event &event, const edm::EventSetup &eventsetup) override |
void | selectGoodTracksAndVertices (const ZVertexSoAHost &patavtx_soa, const TrackSoAHost &patatracks_tsoa, std::vector< int > &trkGood, std::vector< int > &vtxGood) |
void | standardizeTensor (tensorflow::Tensor &tensor) |
Private Attributes | |
const edm::EDGetTokenT< reco::BeamSpot > | beamSpotToken_ |
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | bFieldToken_ |
const int | debugLevel_ |
const edm::EDGetTokenT< EcalRecHitCollection > | ebToken_ |
const edm::EDGetTokenT< EcalRecHitCollection > | eeToken_ |
const float | fractionSumPt2_ |
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | geometryToken_ |
const edm::EDGetTokenT< HBHERecHitCollection > | hbheToken_ |
const edm::EDGetTokenT< HORecHitCollection > | hoToken_ |
std::string | inputTensorName_ |
std::vector< InputDescTau > | L1TauDesc_ |
const L2TauNNProducerCacheData * | L2cacheData_ |
const unsigned int | maxVtx_ |
const float | minSumPt2_ |
std::string | outputTensorName_ |
const edm::EDGetTokenT< TrackSoAHost > | pataTracksToken_ |
const edm::EDGetTokenT< ZVertexSoAHost > | pataVerticesToken_ |
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > | tauTriggerToken_ |
const float | trackChi2Max_ |
const float | trackPtMax_ |
const float | trackPtMin_ |
Definition at line 148 of file L2TauTagNNProducer.cc.
Definition at line 150 of file L2TauTagNNProducer.cc.
|
explicit |
Definition at line 291 of file L2TauTagNNProducer.cc.
References looper::cfg, L2TauNNProducer::InputDescTau::CollectionName, submitPVResolutionJobs::desc, Exception, L2TauNNProducerCacheData::graphDef, inputTensorName_, L2TauNNProducer::InputDescTau::inputToken_, L1TauDesc_, L2cacheData_, Skims_PA_cff::name, outputTensorName_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 327 of file L2TauTagNNProducer.cc.
References ztail::d, HLT_2024v13_cff::debugLevel, Exception, input, edm::isNotFinite(), and L2TauTagNNv1::varNameMap.
Referenced by produce().
|
private |
Definition at line 437 of file L2TauTagNNProducer.cc.
References reco::deltaR2(), dR2_max, L2TauNNProducer::caloRecHitCollections::eb, L2TauNNProducer::caloRecHitCollections::ee, L2TauNNProducer::caloRecHitCollections::geometry, getEtaPhiIndices(), CaloGeometry::getGeometry(), L2TauNNProducer::caloRecHitCollections::hbhe, L2TauNNProducer::caloRecHitCollections::ho, input, L2TauTagNNv1::nCellEta, L2TauTagNNv1::nCellPhi, and position.
Referenced by produce().
|
static |
Definition at line 259 of file L2TauTagNNProducer.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSet::addParameter(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, AlCaHLTBitMon_QueryRunRegistry::string, and parallelization::uint.
|
private |
Definition at line 405 of file L2TauTagNNProducer.cc.
References input, L2TauTagNNv1::nCellEta, and L2TauTagNNv1::nCellPhi.
Referenced by produce().
|
private |
Definition at line 655 of file L2TauTagNNProducer.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, cms::cuda::PortableHostCollection< T >::const_view(), reco::deltaR2(), dR2_max, spr::find(), getEtaPhiIndices(), impactParameter(), input, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, SiStripPI::min, L2TauTagNNv1::nCellEta, L2TauTagNNv1::nCellPhi, nHits, TrackCollections2monitor_cff::nVertices, PVValHelper::phi, selectGoodTracksAndVertices(), and cms::cuda::PortableHostCollection< T >::view().
Referenced by produce().
|
private |
Definition at line 433 of file L2TauTagNNProducer.cc.
References position.
Referenced by fillCaloRecHits(), and fillPatatracks().
|
private |
Definition at line 424 of file L2TauTagNNProducer.cc.
References reco::deltaPhi(), dEta_width, dPhi_width, L2TauTagNNv1::dR_max, PVValHelper::eta, and phi.
|
private |
Definition at line 733 of file L2TauTagNNProducer.cc.
References L2cacheData_, outputTensorName_, tensorflow::run(), and L2TauNNProducerCacheData::session.
Referenced by produce().
|
static |
Definition at line 253 of file L2TauTagNNProducer.cc.
References tensorflow::closeSession(), L2TauNNProducerCacheData::graphDef, and L2TauNNProducerCacheData::session.
|
private |
Definition at line 624 of file L2TauTagNNProducer.cc.
References LocalTrajectoryParameters::charge(), TracksUtilities< TrackerTraits >::copyToDense(), funct::cos(), f, runTauDisplay::gp, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, M_PI_2, LocalTrajectoryParameters::momentum(), phi, LocalTrajectoryParameters::position(), createTree::pp, funct::sin(), riemannFit::transformToPerigeePlane(), and cms::cuda::PortableHostCollection< T >::view().
Referenced by fillPatatracks().
|
static |
Definition at line 228 of file L2TauTagNNProducer.cc.
References looper::cfg, tensorflow::createSession(), edm::FileInPath::fullPath(), HLT_2024v13_cff::graphPath, submitPVResolutionJobs::key, tensorflow::loadGraphDef(), normDictElement::max, normDictElement::mean, normDictElement::min, HLT_2024v13_cff::normalizationDict, L2TauTagNNv1::nVars, tensorflow::setLogging(), normDictElement::std, AlCaHLTBitMon_QueryRunRegistry::string, heppy_batch::val, trigObjTnPSource_cfi::var, and L2TauTagNNv1::varNameMap.
|
overrideprivate |
Definition at line 747 of file L2TauTagNNProducer.cc.
References beamSpotToken_, bFieldToken_, checknan(), debugLevel_, HLT_2024v13_cff::distance, L2TauNNProducer::caloRecHitCollections::eb, ebToken_, L2TauNNProducer::caloRecHitCollections::ee, eeToken_, fillCaloRecHits(), fillL1TauVars(), fillPatatracks(), spr::find(), relativeConstraints::geometry, L2TauNNProducer::caloRecHitCollections::geometry, geometryToken_, edm::EventSetup::getHandle(), getTauScore(), photonIsolationHIProducer_cfi::hbhe, L2TauNNProducer::caloRecHitCollections::hbhe, hbheToken_, photonIsolationHIProducer_cfi::ho, L2TauNNProducer::caloRecHitCollections::ho, hoToken_, L1TauDesc_, eostools::move(), L2TauTagNNv1::nCellEta, L2TauTagNNv1::nCellPhi, L2TauTagNNv1::nVars, pataTracksToken_, pataVerticesToken_, DiDispStaMuonMonitor_cfi::pt, standardizeTensor(), and trigger::TriggerL1Tau.
|
private |
Definition at line 576 of file L2TauTagNNProducer.cc.
References cms::cuda::assert(), cms::cuda::PortableHostCollection< T >::const_view(), fractionSumPt2_, dqmiolumiharvest::j, pixelTrack::loose, DMR_cfg::maxTracks, maxVtx_, SiStripPI::min, minSumPt2_, nHits, quality, trackChi2Max_, trackPtMax_, trackPtMin_, and cms::cuda::PortableHostCollection< T >::view().
Referenced by fillPatatracks().
|
private |
Definition at line 371 of file L2TauTagNNProducer.cc.
References ztail::d, Exception, input, L2cacheData_, SiStripPI::max, SiStripPI::mean, SiStripPI::min, and L2TauNNProducerCacheData::normVec.
Referenced by produce().
|
private |
Definition at line 216 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 213 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 205 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
static |
Definition at line 166 of file L2TauTagNNProducer.cc.
Referenced by getEtaPhiIndices().
|
static |
Definition at line 167 of file L2TauTagNNProducer.cc.
Referenced by getEtaPhiIndices().
|
static |
Definition at line 165 of file L2TauTagNNProducer.cc.
Referenced by fillCaloRecHits(), and fillPatatracks().
|
private |
Definition at line 210 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 211 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 218 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 212 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 208 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 209 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 223 of file L2TauTagNNProducer.cc.
Referenced by L2TauNNProducer().
|
private |
Definition at line 207 of file L2TauTagNNProducer.cc.
Referenced by L2TauNNProducer(), and produce().
|
private |
Definition at line 225 of file L2TauTagNNProducer.cc.
Referenced by getTauScore(), L2TauNNProducer(), and standardizeTensor().
|
private |
Definition at line 217 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 219 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 224 of file L2TauTagNNProducer.cc.
Referenced by getTauScore(), and L2TauNNProducer().
|
private |
Definition at line 215 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 214 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 206 of file L2TauTagNNProducer.cc.
|
private |
Definition at line 222 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 221 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 220 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().