CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
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
edm::EDGetTokenT< edm::View< pat::MET > > METsToken_
PhysicsTools::MVAComputerCache mvaComputer
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:73
Creates and and MVAComputer from calibrations via EventSetup.
virtual float pt() const GCC11_FINAL
transverse momentum
double DeltaR(const math::XYZTLorentzVector &v1, const math::XYZTLorentzVector &v2)
edm::EDGetTokenT< edm::View< pat::Electron > > electronsToken_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")