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 
18 
19 #ifndef TtSemiLepSignalSelMVARcd_defined // to avoid conflicts with the TtSemiSignalSelMVAComputer
20 #define TtSemiLepSignalSelMVARcd_defined
21 MVA_COMPUTER_CONTAINER_DEFINE(TtSemiLepSignalSelMVA); // defines TtSemiLepSignalSelMVA
22 #endif
23 
25 
26  public:
27 
30 
31  private:
32 
33  virtual void analyze(const edm::Event& evt, const edm::EventSetup& setup);
34  virtual void beginJob();
35 
36  double DeltaPhi(const math::XYZTLorentzVector& v1,const math::XYZTLorentzVector& v2);
37  double DeltaR(const math::XYZTLorentzVector& v1,const math::XYZTLorentzVector& v2);
38 
39  // pt sorting stuff
40  struct JetwithHigherPt {
41  bool operator() ( const pat::Jet& j1, const pat::Jet& j2) const {
42  return j1.pt() > j2.pt();
43  };
44  };
45 
50 
52  int whatData_;
53  int maxEv_;
54  int selEv;
55 
57 
58 };
59 
60 #endif
bool operator()(const pat::Jet &j1, const pat::Jet &j2) const
PhysicsTools::MVAComputerCache mvaComputer
TtSemiLepSignalSelMVATrainer(const edm::ParameterSet &)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:30
double DeltaPhi(const math::XYZTLorentzVector &v1, const math::XYZTLorentzVector &v2)
virtual void analyze(const edm::Event &evt, const edm::EventSetup &setup)
#define MVA_COMPUTER_CONTAINER_DEFINE(N)
Definition: HelperMacros.h:43
Analysis-level calorimeter jet class.
Definition: Jet.h:71
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)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")