Classes | |
struct | caloRecHitCollections |
struct | InputDescTau |
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 pixelTrack::TrackSoA &patatracks_tsoa, const ZVertexSoA &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 pixelTrack::TrackSoA &patatracks_tsoa, float patatrackPhi, const reco::BeamSpot &beamspot, const MagneticField *magfi) |
void | produce (edm::Event &event, const edm::EventSetup &eventsetup) override |
void | selectGoodTracksAndVertices (const ZVertexSoA &patavtx_soa, const pixelTrack::TrackSoA &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 < PixelTrackHeterogeneous > | pataTracksToken_ |
const edm::EDGetTokenT < ZVertexHeterogeneous > | pataVerticesToken_ |
const edm::EDGetTokenT < trigger::TriggerFilterObjectWithRefs > | tauTriggerToken_ |
const float | trackChi2Max_ |
const float | trackPtMax_ |
const float | trackPtMin_ |
Additional Inherited Members | |
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 |
Definition at line 147 of file L2TauTagNNProducer.cc.
|
explicit |
Definition at line 287 of file L2TauTagNNProducer.cc.
References L2TauNNProducer::InputDescTau::CollectionName, submitPVResolutionJobs::desc, Exception, edm::ParameterSet::getParameter(), L2TauNNProducerCacheData::graphDef, inputTensorName_, L2TauNNProducer::InputDescTau::inputToken_, L1TauDesc_, L2cacheData_, mergeVDriftHistosByStation::name, outputTensorName_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 323 of file L2TauTagNNProducer.cc.
References ztail::d, Exception, input, edm::isNotFinite(), and L2TauTagNNv1::varNameMap.
Referenced by produce().
|
private |
Definition at line 433 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 255 of file L2TauTagNNProducer.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSet::addParameter(), edm::ParameterSetDescription::addVPSet(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, edm::ParameterDescriptionNode::setComment(), AlCaHLTBitMon_QueryRunRegistry::string, and parallelization::uint().
|
private |
Definition at line 401 of file L2TauTagNNProducer.cc.
References input, L2TauTagNNv1::nCellEta, and L2TauTagNNv1::nCellPhi.
Referenced by produce().
|
private |
Definition at line 651 of file L2TauTagNNProducer.cc.
References TrackSoAHeterogeneousT< S >::charge(), TrackSoAHeterogeneousT< S >::chi2, reco::deltaR2(), dR2_max, TrackSoAHeterogeneousT< S >::eta, spr::find(), getEtaPhiIndices(), ZVertexSoA::idv, impactParameter(), PyquenDefaultSettings_cff::impactParameters, input, SiStripPI::min, L2TauTagNNv1::nCellEta, L2TauTagNNv1::nCellPhi, TrackSoAHeterogeneousT< S >::nHits(), nHits, HLT_FULL_cff::nVertices, TrackSoAHeterogeneousT< S >::phi(), TrackSoAHeterogeneousT< S >::pt, and selectGoodTracksAndVertices().
Referenced by produce().
|
private |
Definition at line 429 of file L2TauTagNNProducer.cc.
Referenced by fillCaloRecHits(), and fillPatatracks().
|
private |
Definition at line 420 of file L2TauTagNNProducer.cc.
References reco::deltaPhi(), dEta_width, dPhi_width, and L2TauTagNNv1::dR_max.
|
private |
Definition at line 728 of file L2TauTagNNProducer.cc.
References inputTensorName_, L2cacheData_, tensorflow::run(), and L2TauNNProducerCacheData::session.
Referenced by produce().
|
static |
Definition at line 249 of file L2TauTagNNProducer.cc.
References tensorflow::closeSession(), L2TauNNProducerCacheData::graphDef, and L2TauNNProducerCacheData::session.
|
private |
Definition at line 619 of file L2TauTagNNProducer.cc.
References LocalTrajectoryParameters::charge(), funct::cos(), CommonMethods::cp(), validate-o2o-wbm::f, gpuVertexFinder::fit, runTauDisplay::gp, M_PI_2, LocalTrajectoryParameters::momentum(), phi, LocalTrajectoryParameters::position(), createTree::pp, funct::sin(), TrackSoAHeterogeneousT< S >::stateAtBS, riemannFit::transformToPerigeePlane(), reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by fillPatatracks().
|
static |
Definition at line 224 of file L2TauTagNNProducer.cc.
References tensorflow::createSession(), edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), HLT_FULL_cff::graphPath, submitPVResolutionJobs::key, tensorflow::loadGraphDef(), normDictElement::max, normDictElement::mean, normDictElement::min, HLT_FULL_cff::normalizationDict, L2TauTagNNv1::nVars, tensorflow::setLogging(), normDictElement::std, AlCaHLTBitMon_QueryRunRegistry::string, hgcalPerformanceValidation::val, ALCARECOEcalPhiSym_cff::var, and L2TauTagNNv1::varNameMap.
|
overrideprivate |
Definition at line 740 of file L2TauTagNNProducer.cc.
References beamSpotToken_, bFieldToken_, checknan(), debugLevel_, HLT_FULL_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(), L2TauNNProducer::caloRecHitCollections::hbhe, hbheToken_, hcalSimParameters_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 572 of file L2TauTagNNProducer.cc.
References cms::cuda::assert(), TrackSoAHeterogeneousT< S >::chi2, fractionSumPt2_, ZVertexSoA::idv, dqmiolumiharvest::j, pixelTrack::loose, HLT_FULL_cff::maxTracks, maxVtx_, SiStripPI::min, minSumPt2_, nHits, TrackSoAHeterogeneousT< S >::nHits(), ZVertexSoA::nvFinal, TrackSoAHeterogeneousT< S >::pt, quality, TrackSoAHeterogeneousT< S >::qualityData(), ZVertexSoA::sortInd, TrackSoAHeterogeneousT< S >::stride(), trackChi2Max_, trackPtMax_, and trackPtMin_.
Referenced by fillPatatracks().
|
private |
Definition at line 367 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 212 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 209 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 201 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
static |
Definition at line 163 of file L2TauTagNNProducer.cc.
Referenced by getEtaPhiIndices().
|
static |
Definition at line 164 of file L2TauTagNNProducer.cc.
Referenced by getEtaPhiIndices().
|
static |
Definition at line 162 of file L2TauTagNNProducer.cc.
Referenced by fillCaloRecHits(), and fillPatatracks().
|
private |
Definition at line 206 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 207 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 214 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 208 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 204 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 205 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 219 of file L2TauTagNNProducer.cc.
Referenced by getTauScore(), and L2TauNNProducer().
|
private |
Definition at line 203 of file L2TauTagNNProducer.cc.
Referenced by L2TauNNProducer(), and produce().
|
private |
Definition at line 221 of file L2TauTagNNProducer.cc.
Referenced by getTauScore(), L2TauNNProducer(), and standardizeTensor().
|
private |
Definition at line 213 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 215 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 220 of file L2TauTagNNProducer.cc.
Referenced by L2TauNNProducer().
|
private |
Definition at line 211 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 210 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 202 of file L2TauTagNNProducer.cc.
|
private |
Definition at line 218 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 217 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().
|
private |
Definition at line 216 of file L2TauTagNNProducer.cc.
Referenced by selectGoodTracksAndVertices().