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 
30  public:
31 
34 
35  private:
36 
37  virtual void analyze(const edm::Event& evt, const edm::EventSetup& setup);
38  virtual void beginJob();
39 
40  double DeltaPhi(const math::XYZTLorentzVector& v1,const math::XYZTLorentzVector& v2);
41  double DeltaR(const math::XYZTLorentzVector& v1,const math::XYZTLorentzVector& v2);
42 
43  // pt sorting stuff
44  struct JetwithHigherPt {
45  bool operator() ( const pat::Jet& j1, const pat::Jet& j2) const {
46  return j1.pt() > j2.pt();
47  };
48  };
49 
55 
57  int whatData_;
58  int maxEv_;
59  int selEv;
60 
62 
63 };
64 
65 #endif
bool operator()(const pat::Jet &j1, const pat::Jet &j2) const
virtual double pt() const final
transverse momentum
edm::EDGetTokenT< edm::View< pat::MET > > METsToken_
PhysicsTools::MVAComputerCache mvaComputer
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
TtSemiLepSignalSelMVATrainer(const edm::ParameterSet &)
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< std::vector< pat::Jet > > jetsToken_
edm::EDGetTokenT< TtGenEvent > genEvtToken_
virtual void analyze(const edm::Event &evt, const edm::EventSetup &setup)
#define MVA_COMPUTER_CONTAINER_DEFINE(N)
Definition: HelperMacros.h:43
edm::EDGetTokenT< edm::View< pat::Muon > > muonsToken_
Analysis-level calorimeter jet class.
Definition: Jet.h:78
Creates and and MVAComputer from calibrations via EventSetup.
double DeltaR(const math::XYZTLorentzVector &v1, const math::XYZTLorentzVector &v2)
edm::EDGetTokenT< edm::View< pat::Electron > > electronsToken_