ATLAS Offline Software
Loading...
Searching...
No Matches
APReweightBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#define APReweightBase_cxx
7
8std::atomic<unsigned int> APReweightBase::s_NID = 0;
9
11 : m_scale(0),
12 m_isTrig(0),
13 m_isQuiet(0),
16{
17 m_ID = s_NID;
18 ++s_NID;
19}
20
22
23unsigned int APReweightBase::GetID() const {
24 return m_ID;
25}
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.
unsigned int GetID() const
Returns the unique ID for assignment of APWeightEntries to source.
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.
APReweightBase()
Default constructor.
virtual ~APReweightBase()
Default destructor.
bool m_isQuiet
Flag to turn off messages.