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