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 |
std::vector< int > | selectGoodVertices (const ZVertexSoA &patavtx_soa, const pixelTrack::TrackSoA &patatracks_tsoa, const std::vector< int > &TrackGood) |
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 double | 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 double | minSumPt2_ |
std::string | outputTensorName_ |
const edm::EDGetTokenT < PixelTrackHeterogeneous > | pataTracksToken_ |
const edm::EDGetTokenT < ZVertexHeterogeneous > | pataVerticesToken_ |
const edm::EDGetTokenT < trigger::TriggerFilterObjectWithRefs > | tauTriggerToken_ |
const double | trackChi2Max_ |
const double | trackPtMax_ |
const double | 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 286 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 322 of file L2TauTagNNProducer.cc.
References ztail::d, Exception, input, edm::isNotFinite(), and L2TauTagNNv1::varNameMap.
Referenced by produce().
|
private |
Definition at line 431 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 254 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 400 of file L2TauTagNNProducer.cc.
References input, L2TauTagNNv1::nCellEta, and L2TauTagNNv1::nCellPhi.
Referenced by produce().
|
private |
Definition at line 666 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, pixelTrack::loose, HLT_FULL_cff::maxTracks, L2TauTagNNv1::nCellEta, L2TauTagNNv1::nCellPhi, TrackSoAHeterogeneousT< S >::nHits(), nHits, HLT_FULL_cff::nVertices, TrackSoAHeterogeneousT< S >::phi(), TrackSoAHeterogeneousT< S >::pt, submitPVResolutionJobs::q, quality, TrackSoAHeterogeneousT< S >::qualityData(), selectGoodVertices(), and TrackSoAHeterogeneousT< S >::stride().
Referenced by produce().
|
private |
Definition at line 427 of file L2TauTagNNProducer.cc.
Referenced by fillCaloRecHits(), and fillPatatracks().
|
private |
Definition at line 418 of file L2TauTagNNProducer.cc.
References reco::deltaPhi(), dEta_width, dPhi_width, and L2TauTagNNv1::dR_max.
|
private |
Definition at line 755 of file L2TauTagNNProducer.cc.
References inputTensorName_, L2cacheData_, tensorflow::run(), and L2TauNNProducerCacheData::session.
Referenced by produce().
|
static |
Definition at line 248 of file L2TauTagNNProducer.cc.
References tensorflow::closeSession(), L2TauNNProducerCacheData::graphDef, and L2TauNNProducerCacheData::session.
|
private |
Definition at line 634 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 223 of file L2TauTagNNProducer.cc.
References tensorflow::createSession(), edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), submitPVResolutionJobs::key, tensorflow::loadGraphDef(), normDictElement::max, normDictElement::mean, normDictElement::min, L2TauTagNNv1::nVars, tensorflow::setLogging(), normDictElement::std, AlCaHLTBitMon_QueryRunRegistry::string, hgcalPerformanceValidation::val, isotrackApplyRegressor::var, and L2TauTagNNv1::varNameMap.
|
overrideprivate |
Definition at line 767 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 569 of file L2TauTagNNProducer.cc.
References cms::cuda::assert(), TrackSoAHeterogeneousT< S >::chi2, fractionSumPt2_, ZVertexSoA::idv, dqmiolumiharvest::j, HLT_FULL_cff::maxTracks, maxVtx_, minSumPt2_, nt, ZVertexSoA::nvFinal, TrackSoAHeterogeneousT< S >::pt, ZVertexSoA::sortInd, TrackSoAHeterogeneousT< S >::stride(), trackChi2Max_, trackPtMax_, and trackPtMin_.
Referenced by fillPatatracks().
|
private |
Definition at line 366 of file L2TauTagNNProducer.cc.
References ztail::d, Exception, input, L2cacheData_, SiStripPI::max, SiStripPI::mean, min(), and L2TauNNProducerCacheData::normVec.
Referenced by produce().
|
private |
Definition at line 211 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 208 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 200 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 205 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 206 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 213 of file L2TauTagNNProducer.cc.
Referenced by selectGoodVertices().
|
private |
Definition at line 207 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 203 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 204 of file L2TauTagNNProducer.cc.
Referenced by produce().
|
private |
Definition at line 218 of file L2TauTagNNProducer.cc.
Referenced by getTauScore(), and L2TauNNProducer().
|
private |
Definition at line 202 of file L2TauTagNNProducer.cc.
Referenced by L2TauNNProducer(), and produce().
|
private |
Definition at line 220 of file L2TauTagNNProducer.cc.
Referenced by getTauScore(), L2TauNNProducer(), and standardizeTensor().
|
private |
Definition at line 212 of file L2TauTagNNProducer.cc.
Referenced by selectGoodVertices().
|
private |
Definition at line 214 of file L2TauTagNNProducer.cc.
Referenced by selectGoodVertices().
|
private |
Definition at line 219 of file L2TauTagNNProducer.cc.
Referenced by L2TauNNProducer().
|
private |
Definition at line 210 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.
|
private |
Definition at line 217 of file L2TauTagNNProducer.cc.
Referenced by selectGoodVertices().
|
private |
Definition at line 216 of file L2TauTagNNProducer.cc.
Referenced by selectGoodVertices().
|
private |
Definition at line 215 of file L2TauTagNNProducer.cc.
Referenced by selectGoodVertices().