|
DAS
3.0
Das Analysis System
|
Go to the documentation of this file.
12 #include <Math/Vector4D.h>
20 using FourVector = ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<float>>;
27 class AbstractGenericObject {
54 std::vector<float>
scales = {1.};
72 if (
w.i == v.Bit())
return w;
78 inline bool operator== (
const GenericObject& l,
const GenericObject& r)
80 return l.p4 == r.p4 && l.scales == r.scales && l.weights == r.weights;
83 inline bool operator< (
const GenericObject& l,
const GenericObject& r)
85 return l.CorrPt() < r.CorrPt();
88 inline bool operator> (
const GenericObject& l,
const GenericObject& r)
90 return l.CorrPt() > r.CorrPt();
97 return s <<
'(' << p4.Pt() <<
',' << p4.Eta() <<
',' << p4.Phi() <<
',' << p4.M() <<
')';
102 return s << obj.
p4 <<
' ' << obj.
scales.size() <<
' ' << obj.
weights.size();
float CorrPt(size_t i=0) const
corrected transverse momentum
Definition: GenericObject.h:58
FourVector CorrP4(const Variation &v) const final
< corrected 4-vector
Definition: GenericObject.h:62
bool operator<(const GenericObject &l, const GenericObject &r)
Definition: GenericObject.h:83
bool operator>(const GenericObject &l, const GenericObject &r)
Definition: GenericObject.h:88
double Weight(const Variation &v) const final
< weight
Definition: GenericObject.h:68
static const float w
Definition: common.h:51
std::vector< Weight > Weights
Definition: Weight.h:42
virtual FourVector CorrP4(const Variation &) const =0
virtual std::string_view scale_group() const =0
Definition: Variation.h:20
Weights weights
object weights
Definition: GenericObject.h:55
const Variation nominal("", "nominal")
std::vector< float > scales
energy scale corrections and variations
Definition: GenericObject.h:54
std::ostream & operator<<(std::ostream &s, const Darwin::Physics::FourVector &p4)
Definition: GenericObject.h:95
virtual ~AbstractGenericObject()=default
virtual ~GenericObject()=default
float Rapidity(const Variation &=nominal) const
Definition: GenericObject.h:59
virtual float CorrPt(const Variation &) const =0
Definition: GenericObject.h:27
float AbsRap(const Variation &=nominal) const
absolute rapidity
Definition: GenericObject.h:60
FourVector CorrP4(size_t i=0) const
corrected 4-vector
Definition: GenericObject.h:57
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< float > > FourVector
Definition: GenericObject.h:20
Definition: GenericObject.h:44
bool operator==(const GenericObject &l, const GenericObject &r)
Definition: GenericObject.h:78
FourVector p4
raw four-momentum directly after reconstruction
Definition: GenericObject.h:53
Everything what concerns physics analysis directly.
Definition: darwin.h:23
virtual std::string_view weight_group() const =0
float CorrPt(const Variation &v) const final
< corrected transverse momentum
Definition: GenericObject.h:65
virtual double Weight(const Variation &) const =0
AbstractGenericObject()=default