ATLAS Offline Software
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 
8 std::atomic<unsigned int> APReweightBase::s_NID = 0;
9 
11  : m_scale(0),
12  m_isTrig(0),
13  m_isQuiet(0),
14  m_syst_uncert_global(0),
15  m_empty_weight(0)
16 {
17  m_ID = s_NID;
18  ++s_NID;
19 }
20 
22 
23 unsigned int APReweightBase::GetID() const {
24  return m_ID;
25 }
APReweightBase::s_NID
static ClassDef(APReweightBase, 1) protected std::atomic< unsigned int > s_NID
< Holds the unique ID for assignment of APWeightEntries to source.
Definition: APReweightBase.h:31
APReweightBase.h
APReweightBase::APReweightBase
APReweightBase()
Default constructor.
Definition: APReweightBase.cxx:10
APReweightBase::GetID
unsigned int GetID() const
Returns the unique ID for assignment of APWeightEntries to source.
Definition: APReweightBase.cxx:23
APReweightBase::~APReweightBase
virtual ~APReweightBase()
Default destructor.
Definition: APReweightBase.cxx:21