1 #ifndef RecoTauTag_RecoTau_DeepTauBase_h 2 #define RecoTauTag_RecoTau_DeepTauBase_h 13 #include <Math/VectorUtil.h> 17 #include "tensorflow/core/util/memmapped_file_system.h" 36 std::unique_ptr<TF1>
fn_;
42 using GraphPtr = std::shared_ptr<tensorflow::GraphDef>;
49 tensorflow::Session&
getSession()
const {
return *session_; }
50 const tensorflow::GraphDef&
getGraph()
const {
return *graph_; }
70 using WPMap = std::map<std::string, CutterPtr>;
73 using ResultMap = std::map<std::string, std::unique_ptr<TauDiscriminator>>;
74 std::vector<size_t>
num_, den_;
76 Output(
const std::vector<size_t>&
num,
const std::vector<size_t>& den) : num_(num), den_(den) {}
std::unique_ptr< TF1 > fn_
std::unique_ptr< tensorflow::MemmappedEnv > memmappedEnv_
edm::EDGetTokenT< TauCollection > tausToken_
const tensorflow::GraphDef & getGraph() const
tensorflow::Session & getSession() const
const DeepTauCache * cache_
std::vector< size_t > num_
tensorflow::Session * session_
std::map< std::string, CutterPtr > WPMap
static void globalEndJob(const DeepTauCache *cache)
std::map< std::string, Output > OutputCollection
OutputCollection outputs_
Output(const std::vector< size_t > &num, const std::vector< size_t > &den)
std::map< std::string, std::unique_ptr< TauDiscriminator >> ResultMap
std::vector< Electron > ElectronCollection
std::shared_ptr< tensorflow::GraphDef > GraphPtr
TauWPThreshold(const std::string &cut_str)
def get_value(data, filters)
pat::ElectronCollection ElectronCollection
std::vector< TauType > TauCollection
Analysis-level tau class.
pat::MuonCollection MuonCollection
double operator()(const pat::Tau &tau) const
std::vector< Muon > MuonCollection
std::unique_ptr< Cutter > CutterPtr
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double >> LorentzVectorXYZ
std::map< std::string, WPMap > workingPoints_