DAS  3.0
Das Analysis System
Plots

Description

Pile-Up plots

See TWiki for explanations on in-time and true pile-up definitions, and how it changes the definition of the calculation mode of pileupCalc.py.

#include <Plots.h>

Public Member Functions

 Plots (TString Name)
 
void operator() (const PileUp &pu, float w, const char v='0', bool OnTheFly=false)
 
void Write (TDirectory *d)
 

Public Attributes

const TString name
 
TH1F intprofile
 
TH1F trprofile
 
TH1F rho
 
TH1F nVtx
 

Constructor & Destructor Documentation

◆ Plots()

Plots ( TString  Name)
inline
26  :
27  name(Name),
28  intprofile(Name + "intPU", ";in-time PU;N^{ev}_{eff}", nPUbins, 0, nPUbins),
29  trprofile (Name + "trPU" , ";true PU;N^{ev}_{eff}", nPUbins, 0, nPUbins),
30  rho (Name + "rho" , ";#rho;N^{ev}_{eff}", nPUbins, 0, nPUbins),
31  nVtx (Name + "nVtx" , ";N_{vtx};N^{ev}_{eff}", nPUbins, 0, nPUbins)
32  {
33  std::cout << __FILE__ << ':' << __func__ << ':' << __LINE__ << '\t' << name << std::endl;
34  }

Member Function Documentation

◆ operator()()

void operator() ( const PileUp pu,
float  w,
const char  v = '0',
bool  OnTheFly = false 
)
inline
41  {
42  trprofile.Fill(pu.GetTrPU(v), w);
43  rho .Fill(pu.rho , w);
44  nVtx.Fill(pu.nVtx, w);
45 
46  // Filling with 100 values of InTime PU to have smoother profile,
47  if (OnTheFly==true)
48  intprofile.Fill(pu.GetInTimePU(v, OnTheFly), w);
49 
50  if (OnTheFly==false) {
51  const int N = 100;
52  w /= N;
53  for (int i = 0; i < N; ++i)
54  intprofile.Fill(pu.GetInTimePU(v, OnTheFly), w);
55  }
56  }

◆ Write()

void Write ( TDirectory *  d)
inline
59  {
60  assert(d);
61  d->cd();
62  std::vector<TH1*> hs{&intprofile, &trprofile, &rho, &nVtx};
63  for (TH1* h: hs) {
64  TString n = h->GetName();
65  std::cout << n << std::endl;
66  n.ReplaceAll(name,"");
67  h->SetDirectory(d);
68  h->Write(n);
69  }
70  }

Member Data Documentation

◆ intprofile

TH1F intprofile

in-time pile-up, corresponding to --calcMode observed (the number of pileup events for the in-time bunch crossing is selected from a Poisson distribution with a mean equal to the "true" pileup)

◆ name

const TString name

◆ nVtx

TH1F nVtx

number of vertices

◆ rho

TH1F rho

soft activity

◆ trprofile

TH1F trprofile

true pile-up, corresponding to --calcMode true (average pileup conditions under which the event is generated)


The documentation for this struct was generated from the following file:
DAS::PUprofile::Plots::trprofile
TH1F trprofile
true pile-up, corresponding to --calcMode true (average pileup conditions under which the event is ge...
Definition: Plots.h:22
DAS::JetEnergy::w
static const float w
Definition: common.h:51
DAS::nPUbins
static const int nPUbins
Definition: binnings.h:51
DAS::PUprofile::Plots::name
const TString name
Definition: Plots.h:20
DAS::PUprofile::Plots::intprofile
TH1F intprofile
in-time pile-up, corresponding to --calcMode observed (the number of pileup events for the in-time bu...
Definition: Plots.h:21
DAS::PUprofile::Plots::nVtx
TH1F nVtx
number of vertices
Definition: Plots.h:24
DAS::PUprofile::Plots::rho
TH1F rho
soft activity
Definition: Plots.h:23