CMS 3D CMS Logo

HGC3DClusterEgID.h
Go to the documentation of this file.
1 #ifndef L1Trigger_Phase2L1ParticleFlow_HGC3DClusterEgID_h
2 #define L1Trigger_Phase2L1ParticleFlow_HGC3DClusterEgID_h
8 
13 
14 #include "TMVA/Factory.h"
15 #include "TMVA/Reader.h"
16 
17 #include <vector>
18 #include <cmath>
19 
20 namespace l1tpf {
22  public:
24 
25  void prepareTMVA();
26 
28 
29  std::string method() { return method_; }
30 
31  private:
32  class Var {
33  public:
35  void declare(TMVA::Reader &r) { r.AddVariable(name_, &val_); }
36  void fill(const l1t::HGCalMulticluster &c) { val_ = expr_(c); }
37 
38  private:
41  float val_;
42  };
43 
46  std::vector<Var> variables_;
48  std::unique_ptr<TMVA::Reader> reader_;
50  }; //class
51 }; // namespace l1tpf
52 
53 #endif
l1tpf::HGC3DClusterEgID::variables_
std::vector< Var > variables_
Definition: HGC3DClusterEgID.h:46
StringObjectFunction< l1t::HGCalMulticluster >
l1tpf::HGC3DClusterEgID::Var::val_
float val_
Definition: HGC3DClusterEgID.h:41
l1tpf::HGC3DClusterEgID::prepareTMVA
void prepareTMVA()
Definition: HGC3DClusterEgID.cc:17
l1tpf::HGC3DClusterEgID::passID
float passID(l1t::HGCalMulticluster c, l1t::PFCluster &cpf)
Definition: HGC3DClusterEgID.cc:28
l1tpf::HGC3DClusterEgID::wp_
StringObjectFunction< l1t::HGCalMulticluster > wp_
Definition: HGC3DClusterEgID.h:49
EDProducer.h
l1tpf::HGC3DClusterEgID::reader_
std::unique_ptr< TMVA::Reader > reader_
Definition: HGC3DClusterEgID.h:48
l1tpf::HGC3DClusterEgID::method
std::string method()
Definition: HGC3DClusterEgID.h:29
l1t::HGCalMulticluster
Definition: HGCalMulticluster.h:13
MakerMacros.h
HGCalMulticluster.h
l1tpf::HGC3DClusterEgID::Var::declare
void declare(TMVA::Reader &r)
Definition: HGC3DClusterEgID.h:35
l1tpf::HGC3DClusterEgID::isPUFilter_
bool isPUFilter_
Definition: HGC3DClusterEgID.h:44
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
l1tpf::HGC3DClusterEgID::weightsFile_
std::string weightsFile_
Definition: HGC3DClusterEgID.h:47
l1tpf::HGC3DClusterEgID::Var::Var
Var(const std::string &name, const std::string &expr)
Definition: HGC3DClusterEgID.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
alignCSCRings.r
r
Definition: alignCSCRings.py:93
PFCluster.h
l1tpf::HGC3DClusterEgID
Definition: HGC3DClusterEgID.h:21
l1tpf::HGC3DClusterEgID::preselection_
StringCutObjectSelector< l1t::HGCalMulticluster > preselection_
Definition: HGC3DClusterEgID.h:45
StringCutObjectSelector.h
jets_cff.expr
expr
Definition: jets_cff.py:497
Frameworkfwd.h
l1tpf::HGC3DClusterEgID::Var::expr_
StringObjectFunction< l1t::HGCalMulticluster > expr_
Definition: HGC3DClusterEgID.h:40
StringCutObjectSelector< l1t::HGCalMulticluster >
l1t::PFCluster
Definition: PFCluster.h:10
l1tpf::HGC3DClusterEgID::Var
Definition: HGC3DClusterEgID.h:32
l1tpf
Definition: HGC3DClusterEgID.h:20
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
l1tpf::HGC3DClusterEgID::Var::fill
void fill(const l1t::HGCalMulticluster &c)
Definition: HGC3DClusterEgID.h:36
l1tpf::HGC3DClusterEgID::Var::name_
std::string name_
Definition: HGC3DClusterEgID.h:39
ParameterSet.h
l1tpf::HGC3DClusterEgID::HGC3DClusterEgID
HGC3DClusterEgID(const edm::ParameterSet &pset)
Definition: HGC3DClusterEgID.cc:4
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
StringObjectFunction.h
l1tpf::HGC3DClusterEgID::method_
std::string method_
Definition: HGC3DClusterEgID.h:47
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27