DAS  3.0
Das Analysis System
FractionCut
+ Collaboration diagram for FractionCut:

Public Member Functions

 FractionCut (TString Name)
 
void Fill (MET *met, std::vector< RecJet > *recJets, double w)
 
void Write (TDirectory *d)
 

Public Attributes

const TString name
 
std::unique_ptr< TH1 > Et
 
std::unique_ptr< TH1 > SumEt
 
std::unique_ptr< TH1 > Fraction
 
std::unique_ptr< TH1 > Pt
 
std::unique_ptr< TH1 > Phi
 
std::unique_ptr< TH2 > pt_y
 

Constructor & Destructor Documentation

◆ FractionCut()

FractionCut ( TString  Name)
inline
39  :
40  name (Name),
41  Et (std::make_unique<TH1F>(Name + "Et", "Et", 100, 1, 1000)),
42  SumEt (std::make_unique<TH1F>(Name + "SumEt", "SumEt", 650, 1, 6500)),
43  Fraction(std::make_unique<TH1F>(Name + "Fraction", "Fraction", 100, 0, 1)),
44  Pt (std::make_unique<TH1F>(Name + "Pt", "Pt", 100, 1, 1000)),
45  Phi (std::make_unique<TH1F>(Name + "Phi", "Phi", 314, -M_PI, M_PI)),
46  pt_y (std::make_unique<TH2F>(Name + "pt_y", "pt_y", nPtBins, pt_edges.data(), nYbins, y_edges.data()))
47  {
48  cout << __func__ << ' ' << name << endl;
49  }

Member Function Documentation

◆ Fill()

void Fill ( MET met,
std::vector< RecJet > *  recJets,
double  w 
)
inline

< Fill all histograms directly

Parameters
metMET info
recJetsrec jets
55  {
56  // from MET
57  Et->Fill(met->Et, w);
58  SumEt->Fill(met->SumEt, w);
59  Fraction->Fill(met->Et/met->SumEt, w);
60  Pt->Fill(met->Pt, w);
61  Phi->Fill(met->Phi, w);
62 
63  // jet
64  for (const RecJet& jet: *recJets) {
65  double jW = jet.weights.front();
66  pt_y->Fill(jet.CorrPt(), jet.AbsRap(), w*jW);
67  }
68  }

◆ Write()

void Write ( TDirectory *  d)
inline
71  {
72  cout << "Writing MET plots for " << name << endl;
73  d->cd();
74  TDirectory * dd = d->mkdir(name);
75  dd->cd();
76  for (TH1 * h: {Et.get(), SumEt.get(), Fraction.get(), Pt.get(), Phi.get()}) {
77  h->SetDirectory(dd);
78  TString n = h->GetName();
79  n.ReplaceAll(name,"");
80  h->Write(n);
81  }
82  pt_y->SetDirectory(dd);
83  TString n = pt_y->GetName();
84  n.ReplaceAll(name,"");
85  pt_y->Write(n);
86  d->cd();
87  }

Member Data Documentation

◆ Et

std::unique_ptr<TH1> Et

◆ Fraction

std::unique_ptr<TH1> Fraction

◆ name

const TString name

◆ Phi

std::unique_ptr<TH1> Phi

◆ Pt

std::unique_ptr<TH1> Pt

◆ pt_y

std::unique_ptr<TH2> pt_y

◆ SumEt

std::unique_ptr<TH1> SumEt

The documentation for this struct was generated from the following file:
DAS::y_edges
static const std::vector< double > y_edges
Definition: binnings.h:36
DAS::MissingET::FractionCut::Fraction
std::unique_ptr< TH1 > Fraction
Definition: applyMETfilters.cc:35
DAS::MissingET::FractionCut::Et
std::unique_ptr< TH1 > Et
Definition: applyMETfilters.cc:35
DAS::pt_edges
static const std::vector< double > pt_edges
Definition: binnings.h:33
DAS::MissingET::FractionCut::pt_y
std::unique_ptr< TH2 > pt_y
Definition: applyMETfilters.cc:37
DAS::JetEnergy::w
static const float w
Definition: common.h:51
DAS::MET::Et
float Et
transverse energy
Definition: Event.h:85
met
DAS::MET met
Definition: classes.h:28
DAS::nPtBins
static const int nPtBins
Definition: binnings.h:39
DAS::MissingET::FractionCut::SumEt
std::unique_ptr< TH1 > SumEt
Definition: applyMETfilters.cc:35
DAS::MissingET::FractionCut::Pt
std::unique_ptr< TH1 > Pt
Definition: applyMETfilters.cc:35
DAS::MET::Phi
float Phi
direction of the total transverse momentum
Definition: Event.h:88
DAS::MissingET::FractionCut::Phi
std::unique_ptr< TH1 > Phi
Definition: applyMETfilters.cc:35
DAS::MissingET::FractionCut::name
const TString name
Definition: applyMETfilters.cc:32
DAS::MET::SumEt
float SumEt
sum of the transverse energies of all the components (jet, leptons, etc.) present in the event
Definition: Event.h:86
DAS::nYbins
static const int nYbins
Definition: binnings.h:38
DAS::MET::Pt
float Pt
exactly the same as Et
Definition: Event.h:87