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
31  :
32  name (Name),
33  Et (std::make_unique<TH1F>(Name + "Et", "Et", 100, 1, 1000)),
34  SumEt (std::make_unique<TH1F>(Name + "SumEt", "SumEt", 650, 1, 6500)),
35  Fraction(std::make_unique<TH1F>(Name + "Fraction", "Fraction", 100, 0, 1)),
36  Pt (std::make_unique<TH1F>(Name + "Pt", "Pt", 100, 1, 1000)),
37  Phi (std::make_unique<TH1F>(Name + "Phi", "Phi", 314, -M_PI, M_PI)),
38  pt_y (std::make_unique<TH2F>(Name + "pt_y", "pt_y", nPtBins, pt_edges.data(), nYbins, y_edges.data()))
39  {
40  cout << __func__ << ' ' << name << endl;
41  }

Member Function Documentation

◆ Fill()

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

< Fill all histograms directly

Parameters
metMET info
recJetsrec jets
47  {
48  // from MET
49  Et->Fill(met->Et, w);
50  SumEt->Fill(met->SumEt, w);
51  Fraction->Fill(met->Et/met->SumEt, w);
52  Pt->Fill(met->Pt, w);
53  Phi->Fill(met->Phi, w);
54 
55  // jet
56  for (const RecJet& jet: *recJets) {
57  double jW = jet.weights.front();
58  pt_y->Fill(jet.CorrPt(), jet.AbsRap(), w*jW);
59  }
60  }

◆ Write()

void Write ( TDirectory *  d)
inline
63  {
64  d->cd();
65  TDirectory * dd = d->mkdir(name);
66  dd->cd();
67  for (TH1 * h: {Et.get(), SumEt.get(), Fraction.get(), Pt.get(), Phi.get()}) {
68  h->SetDirectory(d);
69  TString n = h->GetName();
70  n.ReplaceAll(name,"");
71  h->Write(n);
72  }
73  pt_y->SetDirectory(d);
74  TString n = pt_y->GetName();
75  n.ReplaceAll(name,"");
76  pt_y->Write(n);
77  d->cd();
78  }

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:27
DAS::MissingET::FractionCut::Et
std::unique_ptr< TH1 > Et
Definition: applyMETfilters.cc:27
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:29
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:27
DAS::MissingET::FractionCut::Pt
std::unique_ptr< TH1 > Pt
Definition: applyMETfilters.cc:27
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:27
DAS::MissingET::FractionCut::name
const TString name
Definition: applyMETfilters.cc:24
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