ATLAS Offline Software
|
#include <APEvtWeight.h>
Public Types | |
enum | ObjType { kMuon, kTau, kElectron, kJet, kMuonMO, kTauMO, kElectronMO, kJetMO, kDiMuon, kDiTau, kDiElectron, kDiJet, kANDed, kORed, kMOORed, kMOANDed } |
Public Member Functions | |
APEvtWeight (ObjType type) | |
Default constructor. More... | |
virtual | ~APEvtWeight () |
Default destructor. More... | |
void | AddWeightToEvt (APWeightEntry *weight) |
Adds a weight to the sum of weights. More... | |
double | GetWeight () |
Returns the event weight. More... | |
double | GetStdDev () |
Returns the standard deviation. More... | |
double | GetVariance () |
Returns the variance. More... | |
double | GetSysUncert () |
Returns the systematic uncertainty (from systematics assigned to weights). More... | |
double | GetSysVariance () |
Returns the systematic variance (from systematics assigned to weights). More... | |
std::vector< APWeightEntry * > | GetWeightObjects (ObjType type) |
Returns the vector of weight objects for a specific object type. More... | |
unsigned long | NEntries () |
Returns the unweighted number of entries. More... | |
ObjType | GetType () |
Returns the type of the event weight (muon, electron, jet, ANDed, ORed). More... | |
Public Attributes | |
ClassDef(APEvtWeight, 1) protected std::vector< std::vector< APWeightEntry * > > | m_current_evt_weights |
< Calculates the event weight for the current entries. More... | |
unsigned long int | m_n_entries |
Holds the original amount of unweighted counts ("sum of 1's"). More... | |
double | m_k_evt_weight |
Holds the event weight. More... | |
double | m_variance |
Holds the variance. More... | |
double | m_variance_sys |
Holds the systematic variance (from systematics assigned to weights). More... | |
bool | m_isComputed |
Flag if calculation has already been performed for current set of input weights. More... | |
ObjType | m_type |
Holds the object type of the event weight (muon, electron, jet or combined). More... | |
Friends | |
const friend APEvtWeight | operator&& (const APEvtWeight &a_in, const APEvtWeight &b_in) |
Operator implementing logical AND. More... | |
const friend APEvtWeight | operator|| (const APEvtWeight &a_in, const APEvtWeight &b_in) |
Operator implementing logical OR. More... | |
const friend APEvtWeight | operator! (const APEvtWeight &a_in) |
Operator implementing negation of weight. More... | |
Class to calculate the sum of weights ("weighted counter")
Calculates the sum of weights taking into account the underlying asymmetric probability distribution. This is done by modelling the pdf and then extracting the corresponding quantiles.
Definition at line 26 of file APEvtWeight.h.
enum APEvtWeight::ObjType |
Enumerator | |
---|---|
kMuon | |
kTau | |
kElectron | |
kJet | |
kMuonMO | |
kTauMO | |
kElectronMO | |
kJetMO | |
kDiMuon | |
kDiTau | |
kDiElectron | |
kDiJet | |
kANDed | |
kORed | |
kMOORed | |
kMOANDed |
Definition at line 29 of file APEvtWeight.h.
APEvtWeight::APEvtWeight | ( | ObjType | type | ) |
|
virtual |
Default destructor.
Definition at line 24 of file APEvtWeight.cxx.
void APEvtWeight::AddWeightToEvt | ( | APWeightEntry * | weight | ) |
Adds a weight to the sum of weights.
Definition at line 28 of file APEvtWeight.cxx.
double APEvtWeight::GetStdDev | ( | ) |
Returns the standard deviation.
Definition at line 229 of file APEvtWeight.cxx.
double APEvtWeight::GetSysUncert | ( | ) |
Returns the systematic uncertainty (from systematics assigned to weights).
Definition at line 241 of file APEvtWeight.cxx.
double APEvtWeight::GetSysVariance | ( | ) |
Returns the systematic variance (from systematics assigned to weights).
Definition at line 246 of file APEvtWeight.cxx.
APEvtWeight::ObjType APEvtWeight::GetType | ( | ) |
Returns the type of the event weight (muon, electron, jet, ANDed, ORed).
Definition at line 263 of file APEvtWeight.cxx.
double APEvtWeight::GetVariance | ( | ) |
Returns the variance.
Definition at line 235 of file APEvtWeight.cxx.
double APEvtWeight::GetWeight | ( | ) |
Returns the event weight.
Definition at line 223 of file APEvtWeight.cxx.
vector< APWeightEntry * > APEvtWeight::GetWeightObjects | ( | ObjType | type | ) |
Returns the vector of weight objects for a specific object type.
Definition at line 251 of file APEvtWeight.cxx.
unsigned long APEvtWeight::NEntries | ( | ) |
Returns the unweighted number of entries.
Definition at line 259 of file APEvtWeight.cxx.
|
friend |
|
friend |
Operator implementing logical AND.
Definition at line 42 of file APEvtWeight.cxx.
|
friend |
Operator implementing logical OR.
Definition at line 128 of file APEvtWeight.cxx.
ClassDef (APEvtWeight,1) protected std::vector< std::vector< APWeightEntry* > > APEvtWeight::m_current_evt_weights |
< Calculates the event weight for the current entries.
Holds the weights for muons, electrons and jets in the current event.
Definition at line 53 of file APEvtWeight.h.
bool APEvtWeight::m_isComputed |
Flag if calculation has already been performed for current set of input weights.
Definition at line 58 of file APEvtWeight.h.
double APEvtWeight::m_k_evt_weight |
Holds the event weight.
Definition at line 55 of file APEvtWeight.h.
unsigned long int APEvtWeight::m_n_entries |
Holds the original amount of unweighted counts ("sum of 1's").
Definition at line 54 of file APEvtWeight.h.
ObjType APEvtWeight::m_type |
Holds the object type of the event weight (muon, electron, jet or combined).
Definition at line 59 of file APEvtWeight.h.
double APEvtWeight::m_variance |
Holds the variance.
Definition at line 56 of file APEvtWeight.h.
double APEvtWeight::m_variance_sys |
Holds the systematic variance (from systematics assigned to weights).
Definition at line 57 of file APEvtWeight.h.