ATLAS Offline Software
Loading...
Searching...
No Matches
APReweightBase Class Reference

Class to provide common methods for all Reweight classes. More...

#include <APReweightBase.h>

Inheritance diagram for APReweightBase:
Collaboration diagram for APReweightBase:

Public Member Functions

 APReweightBase ()
 Default constructor.
virtual ~APReweightBase ()
 Default destructor.
unsigned int GetID () const
 Returns the unique ID for assignment of APWeightEntries to source.

Public Attributes

double m_scale
 Holds the scale factor that was calculated from sample sizes upon instantiation.
bool m_isTrig
 Flag to determine if the class holds trigger efficiencies or "simple" MC weights.
bool m_isQuiet
 Flag to turn off messages.
double m_syst_uncert_global
 Holds the global relative (!) systematic uncertainty of all efficiencies/weights.
APWeightEntrym_empty_weight
 Dummy weight (equals 0.) to return if value out of range is provided.

Static Public Attributes

static ClassDef(APReweightBase, 1) protected std::atomic< unsigned int > s_NID = 0
 < Holds the unique ID for assignment of APWeightEntries to source.

Detailed Description

Class to provide common methods for all Reweight classes.

Author
fabia.nosp@m.n.Ko.nosp@m.hn@ce.nosp@m.rn.c.nosp@m.h

Definition at line 23 of file APReweightBase.h.

Constructor & Destructor Documentation

◆ APReweightBase()

APReweightBase::APReweightBase ( )

Default constructor.

Definition at line 10 of file APReweightBase.cxx.

11 : m_scale(0),
12 m_isTrig(0),
13 m_isQuiet(0),
16{
17 m_ID = s_NID;
18 ++s_NID;
19}
double m_scale
Holds the scale factor that was calculated from sample sizes upon instantiation.
APWeightEntry * m_empty_weight
Dummy weight (equals 0.) to return if value out of range is provided.
static ClassDef(APReweightBase, 1) protected std::atomic< unsigned int > s_NID
< Holds the unique ID for assignment of APWeightEntries to source.
bool m_isTrig
Flag to determine if the class holds trigger efficiencies or "simple" MC weights.
double m_syst_uncert_global
Holds the global relative (!) systematic uncertainty of all efficiencies/weights.
bool m_isQuiet
Flag to turn off messages.

◆ ~APReweightBase()

APReweightBase::~APReweightBase ( )
virtual

Default destructor.

Definition at line 21 of file APReweightBase.cxx.

21{ }

Member Function Documentation

◆ GetID()

unsigned int APReweightBase::GetID ( ) const

Returns the unique ID for assignment of APWeightEntries to source.

Definition at line 23 of file APReweightBase.cxx.

23 {
24 return m_ID;
25}

Member Data Documentation

◆ m_empty_weight

APWeightEntry* APReweightBase::m_empty_weight

Dummy weight (equals 0.) to return if value out of range is provided.

Definition at line 40 of file APReweightBase.h.

◆ m_isQuiet

bool APReweightBase::m_isQuiet

Flag to turn off messages.

Definition at line 38 of file APReweightBase.h.

◆ m_isTrig

bool APReweightBase::m_isTrig

Flag to determine if the class holds trigger efficiencies or "simple" MC weights.

Definition at line 37 of file APReweightBase.h.

◆ m_scale

double APReweightBase::m_scale

Holds the scale factor that was calculated from sample sizes upon instantiation.

Definition at line 36 of file APReweightBase.h.

◆ m_syst_uncert_global

double APReweightBase::m_syst_uncert_global

Holds the global relative (!) systematic uncertainty of all efficiencies/weights.

Definition at line 39 of file APReweightBase.h.

◆ s_NID

std::atomic< unsigned int > APReweightBase::s_NID = 0
static

< Holds the unique ID for assignment of APWeightEntries to source.

Holds the overall number of assigned IDs.

Definition at line 35 of file APReweightBase.h.


The documentation for this class was generated from the following files: