CMS 3D CMS Logo

TtHadLRSignalSelObservables.h
Go to the documentation of this file.
1 #ifndef TtHadLRSignalSelObservables_h
2 #define TtHadLRSignalSelObservables_h
3 
8 
9 #include <iostream>
10 #include <string>
11 #include <vector>
12 
13 #include "TLorentzVector.h"
14 #include "TVector.h"
15 #include "TVectorD.h"
16 #include "TMatrix.h"
17 #include "TMatrixDSymEigen.h"
18 #include "TMatrixDSym.h"
19 #include "TMatrixTSym.h"
20 
23 
24 const double PI = 3.14159265;
25 
27 public:
30 
32 
33 private:
34  // compare two jets in ET
35  struct CompareET {
36  bool operator()(const pat::Jet& j1, const pat::Jet& j2) const { return j1.et() > j2.et(); }
37  };
38 
40 
41  // compare two jets in bdisc
42  struct CompareBdisc {
43  bool operator()(const pat::Jet& j1, const pat::Jet& j2) const {
44  return j1.bDiscriminator("trackCountingJetTags") > j2.bDiscriminator("trackCountingJetTags");
45  }
46  };
47 
49 
50  // compare two double
51  struct CompareDouble {
52  bool operator()(double j1, double j2) const { return j1 > j2; }
53  };
54 
56 
57  std::vector<std::pair<unsigned int, double> > evtselectVarVal;
58 };
59 
60 #endif
PI
Definition: PayloadInspector.h:19
TtHadLRSignalSelObservables::BdiscComparator
CompareBdisc BdiscComparator
Definition: TtHadLRSignalSelObservables.h:48
MessageLogger.h
pat::Jet::bDiscriminator
float bDiscriminator(const std::string &theLabel) const
-— methods for accessing b-tagging info -—
TtHadEvtSolution.h
TtHadLRSignalSelObservables::CompareBdisc
Definition: TtHadLRSignalSelObservables.h:42
TtHadLRSignalSelObservables::CompareDouble
Definition: TtHadLRSignalSelObservables.h:51
TtHadLRSignalSelObservables::evtselectVarVal
std::vector< std::pair< unsigned int, double > > evtselectVarVal
Definition: TtHadLRSignalSelObservables.h:57
TtHadLRSignalSelObservables::EtComparator
CompareET EtComparator
Definition: TtHadLRSignalSelObservables.h:39
TtHadLRSignalSelObservables::TtHadLRSignalSelObservables
TtHadLRSignalSelObservables()
Definition: TtHadLRSignalSelObservables.cc:4
TtHadLRSignalSelObservables::dComparator
CompareDouble dComparator
Definition: TtHadLRSignalSelObservables.h:55
TtHadLRSignalSelObservables::~TtHadLRSignalSelObservables
~TtHadLRSignalSelObservables()
Definition: TtHadLRSignalSelObservables.cc:6
pat::Jet
Analysis-level calorimeter jet class.
Definition: Jet.h:77
TtHadLRSignalSelObservables
Definition: TtHadLRSignalSelObservables.h:26
Event.h
TtHadLRSignalSelObservables::CompareET
Definition: TtHadLRSignalSelObservables.h:35
TtHadLRSignalSelObservables::CompareDouble::operator()
bool operator()(double j1, double j2) const
Definition: TtHadLRSignalSelObservables.h:52
Jet.h
reco::LeafCandidate::et
double et() const final
transverse energy
Definition: LeafCandidate.h:127
EventSetup.h
Exception.h
TtHadLRSignalSelObservables::CompareET::operator()
bool operator()(const pat::Jet &j1, const pat::Jet &j2) const
Definition: TtHadLRSignalSelObservables.h:36
TtHadLRSignalSelObservables::CompareBdisc::operator()
bool operator()(const pat::Jet &j1, const pat::Jet &j2) const
Definition: TtHadLRSignalSelObservables.h:43
TtHadLRSignalSelObservables::operator()
void operator()(TtHadEvtSolution &)
Definition: TtHadLRSignalSelObservables.cc:8
TtHadEvtSolution
Definition: TtHadEvtSolution.h:21