|
ATLAS Offline Software
|
Go to the documentation of this file.
29 enum ObjType {
kMuon,
kTau,
kElectron,
kJet,
kMuonMO,
kTauMO,
kElectronMO,
kJetMO,
kDiMuon,
kDiTau,
kDiElectron,
kDiJet,
kANDed,
kORed,
kMOORed,
kMOANDed};
std::vector< APWeightEntry * > GetWeightObjects(ObjType type)
Returns the vector of weight objects for a specific object type.
ObjType m_type
Holds the object type of the event weight (muon, electron, jet or combined).
ObjType GetType()
Returns the type of the event weight (muon, electron, jet, ANDed, ORed).
double GetVariance()
Returns the variance.
double GetStdDev()
Returns the standard deviation.
double m_k_evt_weight
Holds the event weight.
const friend APEvtWeight operator||(const APEvtWeight &a_in, const APEvtWeight &b_in)
Operator implementing logical OR.
double m_variance_sys
Holds the systematic variance (from systematics assigned to weights).
void AddWeightToEvt(APWeightEntry *weight)
Adds a weight to the sum of weights.
double GetWeight()
Returns the event weight.
const friend APEvtWeight operator!(const APEvtWeight &a_in)
Operator implementing negation of weight.
double GetSysVariance()
Returns the systematic variance (from systematics assigned to weights).
double m_variance
Holds the variance.
double GetSysUncert()
Returns the systematic uncertainty (from systematics assigned to weights).
APEvtWeight(ObjType type)
Default constructor.
virtual ~APEvtWeight()
Default destructor.
unsigned long int m_n_entries
Holds the original amount of unweighted counts ("sum of 1's").
const friend APEvtWeight operator&&(const APEvtWeight &a_in, const APEvtWeight &b_in)
Operator implementing logical AND.
ClassDef(APEvtWeight, 1) protected std::vector< std::vector< APWeightEntry * > > m_current_evt_weights
< Calculates the event weight for the current entries.
unsigned long NEntries()
Returns the unweighted number of entries.
bool m_isComputed
Flag if calculation has already been performed for current set of input weights.