L1Trigger
Phase2L1ParticleFlow
interface
HGC3DClusterEgID.h
Go to the documentation of this file.
1
#ifndef L1Trigger_Phase2L1ParticleFlow_HGC3DClusterEgID_h
2
#define L1Trigger_Phase2L1ParticleFlow_HGC3DClusterEgID_h
3
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
4
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
FWCore/Framework/interface/MakerMacros.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
9
#include "
DataFormats/L1THGCal/interface/HGCalMulticluster.h
"
10
#include "
DataFormats/L1TParticleFlow/interface/PFCluster.h
"
11
#include "
CommonTools/Utils/interface/StringCutObjectSelector.h
"
12
#include "
CommonTools/Utils/interface/StringObjectFunction.h
"
13
14
#include "TMVA/Factory.h"
15
#include "TMVA/Reader.h"
16
17
#include <vector>
18
#include <cmath>
19
20
namespace
l1tpf
{
21
class
HGC3DClusterEgID
{
22
public
:
23
HGC3DClusterEgID
(
const
edm::ParameterSet
&
pset
);
24
25
void
prepareTMVA
();
26
27
float
passID
(
l1t::HGCalMulticluster
c
,
l1t::PFCluster
&cpf);
28
29
std::string
method
() {
return
method_
; }
30
31
private
:
32
class
Var
{
33
public
:
34
Var
(
const
std::string
&
name
,
const
std::string
&
expr
) :
name_
(
name
),
expr_
(
expr
) {}
35
void
declare
(TMVA::Reader &
r
) {
r
.AddVariable(
name_
, &
val_
); }
36
void
fill
(
const
l1t::HGCalMulticluster
&
c
) {
val_
=
expr_
(
c
); }
37
38
private
:
39
std::string
name_
;
40
StringObjectFunction<l1t::HGCalMulticluster>
expr_
;
41
float
val_
;
42
};
43
44
bool
isPUFilter_
;
45
StringCutObjectSelector<l1t::HGCalMulticluster>
preselection_
;
46
std::vector<Var>
variables_
;
47
std::string
method_
,
weightsFile_
;
48
std::unique_ptr<TMVA::Reader>
reader_
;
49
StringObjectFunction<l1t::HGCalMulticluster>
wp_
;
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
Generated for CMSSW Reference Manual by
1.8.16