|
DAS
3.0
Das Analysis System
|
Go to the documentation of this file.
8 #include "Math/Vector4D.h"
14 typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<float>>
FourVector;
16 namespace Uncertainties {
63 const std::vector<T>& corrections)
const;
72 template<
class PhysicsObject>
82 template<
class PhysicsObject>
88 const std::vector<T>& corrections)
const
90 if (
index >= corrections.size() ||
group != this->group)
91 return corrections.front();
92 return corrections.at(
index);
95 template<
class PhysicsObject>
102 template<
class PhysicsObject>
106 return group == PhysicsObject::ScaleVar ?
object.CorrP4(
index) :
object.CorrP4(0);
Definition: applyBTagSF.cc:31
Variation(const TString &group, const TString &name, size_t index=0, int bit=0)
Normal constructor.
Definition: Variation.h:36
const TString name
variation name (including "Up" or "Down")
Definition: Variation.h:25
const Weight & getWeight(const PhysicsObject &object) const
Definition: PhysicsObject.h:38
std::ostream & operator<<(std::ostream &s, const DAS::Uncertainties::Variation &v)
Definition: Variation.h:111
Variation(const Variation &v)
Copy constructor.
Definition: Variation.h:42
const Variation nominal
Definition: Variation.h:109
~Variation()=default
Destructor.
const int bit
correlation bit
Definition: Variation.h:28
const T & getCorrection(const std::string_view &group, const std::vector< T > &corrections) const
Definition: Variation.h:87
Variation(Variation &&v)
Move constructor.
Definition: Variation.h:48
const TString group
e.g. event, recjet
Definition: Variation.h:24
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< float > > FourVector
Definition: PhysicsObject.h:15
DAS::Weights weights
Definition: classes.h:12
Definition: Variation.h:22
FourVector getCorrP4(const PhysicsObject &object) const
Definition: Variation.h:104
const std::size_t index
index in the vector where the variation factor is stored
Definition: Variation.h:27