CMS 3D CMS Logo

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