DAS  3.0
Das Analysis System
PileUp

Description

class PileUp

Contains all relevant information to apply the PU staub sauger and profile reweighting.

#include <Event.h>

+ Collaboration diagram for PileUp:

Public Member Functions

float GetTrPU (const char v='0') const
 
float GetInTimePU (const char v='0', const bool useDefault=true) const
 
void clear ()
 

Public Attributes

float rho
 
int nVtx
 
float trpu
 
int intpu
 
std::vector< float > pthats
 
std::vector< unsigned long long > MBevents
 

Static Public Attributes

static float MBxsec = 69200
 
static float MBxsecRelUnc = 0.046
 
static TRandom3 r3
 

Member Function Documentation

◆ clear()

void clear ( )

to clear for each new event in n-tupliser

75 {
76  nVtx = DUMMY; rho = DUMMY;
77  trpu = DUMMY; intpu = DUMMY;
78  pthats.clear();
79  MBevents.clear();
80 }

◆ GetInTimePU()

float GetInTimePU ( const char  v = '0',
const bool  useDefault = true 
) const

pile-up variations

55 {
56  if (useDefault) {
57  if (intpu == DUMMY)
58  throw std::runtime_error("In-time pile-up has not been set properly.");
59  switch (v) {
60  case '+': return intpu * (1+MBxsecRelUnc);
61  case '-': return intpu * (1-MBxsecRelUnc);
62  case '0':
63  default: return intpu;
64  }
65  }
66  else {
67  if (trpu == DUMMY)
68  throw std::runtime_error("True pile-up has not been set properly.");
69  float trpu = GetTrPU(v);
70  return r3.Poisson(trpu);
71  }
72 }

◆ GetTrPU()

float GetTrPU ( const char  v = '0') const

pile-up variations

40 {
41  if (trpu == DUMMY)
42  throw std::runtime_error("True pile-up has not been set properly.");
43 
44  switch (v) {
45  case '+': return trpu * (1+MBxsecRelUnc);
46  case '-': return trpu * (1-MBxsecRelUnc);
47  case '0':
48  default: return trpu;
49  }
50 }

Member Data Documentation

◆ intpu

int intpu

in-time pile-up (i.e. from the same bunch crossing)

◆ MBevents

std::vector<unsigned long long> MBevents

event IDs in MB sample

◆ MBxsec

float MBxsec = 69200
static

◆ MBxsecRelUnc

float MBxsecRelUnc = 0.046
static

◆ nVtx

int nVtx

number of vertices in the event

◆ pthats

std::vector<float> pthats

all hard scales found in PU

◆ r3

TRandom3 r3
static

◆ rho

float rho

soft activity (see formula 7.15 in Patrick's thesis)

◆ trpu

float trpu

true pile-up


The documentation for this struct was generated from the following files:
DAS::PileUp::MBxsecRelUnc
static float MBxsecRelUnc
Definition: Event.h:100
DAS::PileUp::trpu
float trpu
true pile-up
Definition: Event.h:104
DAS::PileUp::nVtx
int nVtx
number of vertices in the event
Definition: Event.h:103
DAS::PileUp::rho
float rho
soft activity (see formula 7.15 in Patrick's thesis)
Definition: Event.h:102
DAS::PileUp::GetTrPU
float GetTrPU(const char v='0') const
pile-up variations
Definition: Event.cc:39
DAS::PileUp::r3
static TRandom3 r3
Definition: Event.h:111
DAS::PileUp::pthats
std::vector< float > pthats
all hard scales found in PU
Definition: Event.h:106
DAS::PileUp::intpu
int intpu
in-time pile-up (i.e. from the same bunch crossing)
Definition: Event.h:105
DAS::PileUp::MBevents
std::vector< unsigned long long > MBevents
event IDs in MB sample
Definition: Event.h:107
DUMMY
#define DUMMY
Definition: Event.cc:5