CMS 3D CMS Logo

TtSemiLepSignalSelMVATrainer.h
Go to the documentation of this file.
1 #ifndef TtSemiLepSignalSelMVATrainer_h
2 #define TtSemiLepSignalSelMVATrainer_h
3 
12 
15 
22 
23 #ifndef TtSemiLepSignalSelMVARcd_defined // to avoid conflicts with the TtSemiSignalSelMVAComputer
24 #define TtSemiLepSignalSelMVARcd_defined
25 MVA_COMPUTER_CONTAINER_DEFINE(TtSemiLepSignalSelMVA); // defines TtSemiLepSignalSelMVA
26 #endif
27 
29 public:
32 
33 private:
34  void analyze(const edm::Event& evt, const edm::EventSetup& setup) override;
35  void beginJob() override;
36 
37  double DeltaPhi(const math::XYZTLorentzVector& v1, const math::XYZTLorentzVector& v2);
38  double DeltaR(const math::XYZTLorentzVector& v1, const math::XYZTLorentzVector& v2);
39 
40  // pt sorting stuff
41  struct JetwithHigherPt {
42  bool operator()(const pat::Jet& j1, const pat::Jet& j2) const { return j1.pt() > j2.pt(); };
43  };
44 
50 
52  int whatData_;
53  int maxEv_;
54  int selEv;
55 
57 };
58 
59 #endif
ESHandle.h
edm::EDGetTokenT
Definition: EDGetToken.h:33
Muon.h
TtSemiLepSignalSelMVATrainer::electronsToken_
edm::EDGetTokenT< edm::View< pat::Electron > > electronsToken_
Definition: TtSemiLepSignalSelMVATrainer.h:46
TtSemiLepSignalSelMVATrainer::~TtSemiLepSignalSelMVATrainer
~TtSemiLepSignalSelMVATrainer() override
TtSemiLepSignalSelMVATrainer::JetwithHigherPt
Definition: TtSemiLepSignalSelMVATrainer.h:41
EDAnalyzer.h
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
RecoCandidate.h
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
PhysicsTools::MVAComputerCache
Creates and and MVAComputer from calibrations via EventSetup.
Definition: MVAComputerCache.h:28
MakerMacros.h
pat::Jet
Analysis-level calorimeter jet class.
Definition: Jet.h:77
TtSemiLepSignalSelMVATrainer::analyze
void analyze(const edm::Event &evt, const edm::EventSetup &setup) override
TtSemiLepSignalSelMVATrainer::DeltaPhi
double DeltaPhi(const math::XYZTLorentzVector &v1, const math::XYZTLorentzVector &v2)
TtSemiLepSignalSelMVATrainer::lepChannel_
int lepChannel_
Definition: TtSemiLepSignalSelMVATrainer.h:51
TtSemiLepSignalSelMVATrainer::genEvtToken_
edm::EDGetTokenT< TtGenEvent > genEvtToken_
Definition: TtSemiLepSignalSelMVATrainer.h:49
TtSemiLepSignalSelMVATrainer::whatData_
int whatData_
Definition: TtSemiLepSignalSelMVATrainer.h:52
TtSemiLepSignalSelMVATrainer::TtSemiLepSignalSelMVATrainer
TtSemiLepSignalSelMVATrainer(const edm::ParameterSet &)
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
TtSemiLepSignalSelMVATrainer::JetwithHigherPt::operator()
bool operator()(const pat::Jet &j1, const pat::Jet &j2) const
Definition: TtSemiLepSignalSelMVATrainer.h:42
HelperMacros.h
TtSemiLepSignalSelMVATrainer::muonsToken_
edm::EDGetTokenT< edm::View< pat::Muon > > muonsToken_
Definition: TtSemiLepSignalSelMVATrainer.h:45
edm::EventSetup
Definition: EventSetup.h:57
TtSemiLepSignalSelMVATrainer::beginJob
void beginJob() override
MET.h
Jet.h
TtSemiLepSignalSelMVATrainer::jetsToken_
edm::EDGetTokenT< std::vector< pat::Jet > > jetsToken_
Definition: TtSemiLepSignalSelMVATrainer.h:47
InputTag.h
TtSemiLepSignalSelMVATrainer::selEv
int selEv
Definition: TtSemiLepSignalSelMVATrainer.h:54
MVAComputerCache.h
MVA_COMPUTER_CONTAINER_DEFINE
#define MVA_COMPUTER_CONTAINER_DEFINE(N)
Definition: HelperMacros.h:51
TtSemiLepSignalSelMVATrainer
Definition: TtSemiLepSignalSelMVATrainer.h:28
Frameworkfwd.h
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
TtSemiLepSignalSelMVATrainer::maxEv_
int maxEv_
Definition: TtSemiLepSignalSelMVATrainer.h:53
EventSetup.h
Electron.h
TtEvent.h
ParameterSet.h
TtSemiLepSignalSelMVATrainer::mvaComputer
PhysicsTools::MVAComputerCache mvaComputer
Definition: TtSemiLepSignalSelMVATrainer.h:56
edm::Event
Definition: Event.h:73
TtSemiLepSignalSelMVATrainer::METsToken_
edm::EDGetTokenT< edm::View< pat::MET > > METsToken_
Definition: TtSemiLepSignalSelMVATrainer.h:48
TtSemiLepSignalSelMVATrainer::DeltaR
double DeltaR(const math::XYZTLorentzVector &v1, const math::XYZTLorentzVector &v2)