Darwin  1.0
Event loop based prototype framework
PileUp

Description

Contains all relevant information to apply PU staub sauger, profile reweighting, and JER (re)smearing

TWiki

#include <Objects.h>

Public Member Functions

float GetTrPU (const char='0') const
 
float GetIntPU (const char='0') const
 
float GetIntPU (TRandom3 &, const char='0') const
 
void clear ()
 
 PileUp ()
 

Public Attributes

float rho
 
int nVtx
 
float trpu
 
int intpu
 
float pthatMax
 

Static Public Attributes

static float MBxsec = 69200
 
static float MBxsecRelUnc = 0.046
 

Constructor & Destructor Documentation

◆ PileUp()

PileUp ( )
85 : rho(0), nVtx(0), trpu(0), intpu(0), pthatMax(0) { }

Member Function Documentation

◆ clear()

void clear ( )

resets all members to the same values as in the constructor

114 {
115  rho = 0;
116  nVtx = 0;
117  trpu = 0;
118  intpu = 0;
119  pthatMax = 0;
120 }

◆ GetIntPU() [1/2]

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

in-time pile-up variations

98 {
99  switch (v) {
100  case '+': return intpu * (1+MBxsecRelUnc);
101  case '-': return intpu * (1-MBxsecRelUnc);
102  case '0':
103  default: return intpu;
104  }
105 }

◆ GetIntPU() [2/2]

float GetIntPU ( TRandom3 &  r3,
const char  v = '0' 
) const

estimate in-time pileup on the fly from the true pileup (useful in MC to generate a profile)

108 {
109  float trpu = GetTrPU(v);
110  return r3.Poisson(trpu);
111 }

◆ GetTrPU()

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

true pile-up variations

88 {
89  switch (v) {
90  case '+': return trpu * (1+MBxsecRelUnc);
91  case '-': return trpu * (1-MBxsecRelUnc);
92  case '0':
93  default: return trpu;
94  }
95 }

Member Data Documentation

◆ intpu

int intpu

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

◆ MBxsec

float MBxsec = 69200
static

minimum-bias cross section

◆ MBxsecRelUnc

float MBxsecRelUnc = 0.046
static

relative uncertainty on minimum-bias cross section

◆ nVtx

int nVtx

number of vertices in the event

◆ pthatMax

float pthatMax

hard-scale of the hardest pile-up event (to deal with anomalous events)

◆ 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:
Darwin::Physics::PileUp::rho
float rho
soft activity (see formula 7.15 in Patrick's thesis)
Definition: Objects.h:101
Darwin::Physics::PileUp::trpu
float trpu
true pile-up
Definition: Objects.h:103
Darwin::Physics::PileUp::GetTrPU
float GetTrPU(const char='0') const
true pile-up variations
Definition: Objects.cc:87
Darwin::Physics::PileUp::nVtx
int nVtx
number of vertices in the event
Definition: Objects.h:102
Darwin::Physics::PileUp::intpu
int intpu
in-time pile-up (i.e. from the same bunch crossing)
Definition: Objects.h:104
Darwin::Physics::PileUp::MBxsecRelUnc
static float MBxsecRelUnc
relative uncertainty on minimum-bias cross section
Definition: Objects.h:99
Darwin::Physics::PileUp::pthatMax
float pthatMax
hard-scale of the hardest pile-up event (to deal with anomalous events)
Definition: Objects.h:105