DAS  3.0
Das Analysis System
MNjets.cc File Reference
#include "Core/Unfolding/interface/MNjets.h"
#include "Core/JetObservables/interface/MuellerNavelet.h"
#include "Math/VectorUtil.h"
#include <exceptions.h>
+ Include dependency graph for MNjets.cc:

Functions

template<typename Jet >
Di< const Jet, const Jet > selection (const TTreeReaderArray< Jet > &jets, const Uncertainties::Variation &v=Uncertainties::nominal)
 
template<typename Jet >
double getBinNumber (const Di< Jet, Jet > &MNjets, const Uncertainties::Variation &v, TUnfoldBinning *bng)
 

Function Documentation

◆ getBinNumber()

double getBinNumber ( const Di< Jet, Jet > &  MNjets,
const Uncertainties::Variation v,
TUnfoldBinning *  bng 
)

Find the bin number.

Returns
bin index (0 means out of PS, like TUnfoldBinning::GetGlobalBinNumber)
50 {
51  if (!MNjets) return 0;
52 
53  float DEta = std::abs(MNjets.DeltaEta(v)),
54  DPhi = std::abs(MNjets.DeltaPhi(v));
55 
56  return bng->GetGlobalBinNumber(DEta, DPhi);
57 }

◆ selection()

Di<const Jet, const Jet> selection ( const TTreeReaderArray< Jet > &  jets,
const Uncertainties::Variation v = Uncertainties::nominal 
)

Mueller-Navelet jet selection.

26 {
28  for (size_t i = 0; i < jets.GetSize(); ++i) {
29  const Jet& jet = jets.At(i);
30  if (jet.CorrPt(v) < minpt) continue;
31  if (jet.AbsRap() > maxy) continue;
32 
33  if (jet.p4.Eta() > (MNjets.first ? MNjets.first->p4.Eta() : 0.))
34  MNjets.first = &jet;
35  else if (jet.p4.Eta() < (MNjets.second ? MNjets.second->p4.Eta() : 0.))
36  MNjets.second = &jet;
37  }
38 
39  return MNjets;
40 }
DAS::MN::maxy
static const double maxy
Definition: getMNobservables.cc:41
DAS::MN::minpt
static const double minpt
Definition: getMNobservables.cc:42
Ntupliser_cfg.jets
string jets
Definition: Ntupliser_cfg.py:41
DAS::Di
Definition: Di.h:33
DAS::Di::DeltaEta
float DeltaEta(const Uncertainties::Variation &v=Uncertainties::nominal) const
Definition: Di.h:56
DAS::Di::DeltaPhi
float DeltaPhi(const Uncertainties::Variation &v=Uncertainties::nominal) const
Definition: Di.h:58