CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
bool operator()(const pat::Jet &j1, const pat::Jet &j2) const
edm::EDGetTokenT< edm::View< pat::MET > > METsToken_
double pt() const final
transverse momentum
void analyze(const edm::Event &evt, const edm::EventSetup &setup) override
PhysicsTools::MVAComputerCache mvaComputer
TtSemiLepSignalSelMVATrainer(const edm::ParameterSet &)
~TtSemiLepSignalSelMVATrainer() override
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
double DeltaPhi(const math::XYZTLorentzVector &v1, const math::XYZTLorentzVector &v2)
edm::EDGetTokenT< TtGenEvent > genEvtToken_
edm::EDGetTokenT< edm::View< pat::Muon > > muonsToken_
edm::EDGetTokenT< std::vector< pat::Jet > > jetsToken_
#define MVA_COMPUTER_CONTAINER_DEFINE(N)
Definition: HelperMacros.h:51
Analysis-level calorimeter jet class.
Definition: Jet.h:77
Creates and and MVAComputer from calibrations via EventSetup.
edm::EDGetTokenT< edm::View< pat::Electron > > electronsToken_
double DeltaR(const math::XYZTLorentzVector &v1, const math::XYZTLorentzVector &v2)