4 #include "Artus/Utility/interface/ArtusLogging.h"
11 #include "TauAnalysis/ClassicSVfit/interface/ClassicSVfit.h"
12 #include "TauAnalysis/ClassicSVfit/interface/MeasuredTauLepton.h"
13 #include "TauAnalysis/ClassicSVfit/interface/svFitHistogramAdapter.h"
15 #include "Kappa/DataFormats/interface/Kappa.h"
17 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttEnumTypes.h"
18 #include "HiggsAnalysis/KITHiggsToTauTau/interface/Utility/CPQuantities.h"
21 typedef ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<float>,ROOT::Math::DefaultCoordinateSystemTag>
RMDataV;
22 typedef ROOT::Math::SMatrix<double, 2, 2, ROOT::Math::MatRepSym<double, 2> >
RMSM2x2;
28 virtual TH1*
createHistogram(
const classic_svFit::LorentzVector& vis1P4,
const classic_svFit::LorentzVector& vis2P4,
const classic_svFit::Vector& met)
const;
29 virtual double fitFunction(
const classic_svFit::LorentzVector& tau1P4,
const classic_svFit::LorentzVector& tau2P4,
const classic_svFit::LorentzVector& vis1P4,
const classic_svFit::LorentzVector& vis2P4,
const classic_svFit::Vector& met)
const;
38 virtual TH1*
createHistogram(
const classic_svFit::LorentzVector& vis1P4,
const classic_svFit::LorentzVector& vis2P4,
const classic_svFit::Vector& met)
const;
39 virtual double fitFunction(
const classic_svFit::LorentzVector& tau1P4,
const classic_svFit::LorentzVector& tau2P4,
const classic_svFit::LorentzVector& vis1P4,
const classic_svFit::LorentzVector& vis2P4,
const classic_svFit::Vector& met)
const;
49 TauTauHistogramAdapter(std::vector<classic_svFit::SVfitQuantity*>
const& quantities = std::vector<classic_svFit::SVfitQuantity*>());
60 unsigned int indexTau1ERatio = 0;
61 unsigned int indexTau2ERatio = 0;
81 classic_svFit::MeasuredTauLepton::kDecayType
const&
decayType1, classic_svFit::MeasuredTauLepton::kDecayType
const&
decayType2,
87 classic_svFit::MeasuredTauLepton::kDecayType
const&
decayType1, classic_svFit::MeasuredTauLepton::kDecayType
const&
decayType2,
138 std::vector<classic_svFit::MeasuredTauLepton> GetMeasuredTauLeptons(
SvfitEventKey const& svfitEventKey)
const;
139 TMatrixD GetMetCovarianceMatrix()
const;
161 void Set(ClassicSVfit
const& svfitAlgorithm);
175 double GetFittedTransverseMass(ClassicSVfit
const& svfitAlgorithm)
const;
176 RMFLV GetFittedHiggsLV(ClassicSVfit
const& svfitAlgorithm)
const;
177 float GetFittedTau1ERatio(ClassicSVfit
const& svfitAlgorithm)
const;
178 RMFLV GetFittedTau1LV(ClassicSVfit
const& svfitAlgorithm)
const;
179 float GetFittedTau2ERatio(ClassicSVfit
const& svfitAlgorithm)
const;
180 RMFLV GetFittedTau2LV(ClassicSVfit
const& svfitAlgorithm)
const;
192 void Init(std::string
const& cacheFileName, std::string
const& cacheTreeName);
197 ClassicSVfit svfitAlgorithm;
199 static std::map<std::string, TFile*> svfitCacheInputFiles;
200 static std::map<std::string, TTree*> svfitCacheInputTrees;
201 static std::map<std::string, std::map<SvfitEventKey, uint64_t> > svfitCacheInputTreeIndices;
203 std::string cacheFileName;
204 std::string cacheFileTreeName;
void SetBranchAddresses(TTree *tree)
Definition: SvfitTools.cc:117
SvfitCacheMissBehaviour
Definition: HttEnumTypes.h:92
Place to collect functions calculating CP quantities -Phi* : this is a variable, with which one can s...
Definition: CPQuantities.h:19
void ActivateBranches(TTree *tree, bool activate=true)
Definition: SvfitTools.cc:131
float diTauMassConstraint
Definition: SvfitTools.h:76
RMFLV GetFittedHiggsLV() const
Definition: SvfitTools.cc:45
Definition: SvfitTools.h:35
virtual double fitFunction(const classic_svFit::LorentzVector &tau1P4, const classic_svFit::LorentzVector &tau2P4, const classic_svFit::LorentzVector &vis1P4, const classic_svFit::LorentzVector &vis2P4, const classic_svFit::Vector &met) const
Definition: SvfitTools.cc:13
SvfitResults()
Definition: SvfitTools.h:155
float fittedTau2ERatio
Definition: SvfitTools.h:152
float systematicShiftSigma
Definition: SvfitTools.h:75
string to_string(TauSpinner::SimpleParticle &particle)
Definition: TauSpinnerProducer.cc:247
bool operator!=(SvfitEventKey const &rhs) const
Definition: SvfitTools.cc:217
SystematicShift
Definition: HttEnumTypes.h:73
RMFLV * fittedTau1LV
Definition: SvfitTools.h:151
float GetFittedTau1ERatio() const
Definition: SvfitTools.cc:51
RMFLV GetFittedTau1LV() const
Definition: SvfitTools.cc:56
virtual TH1 * createHistogram(const classic_svFit::LorentzVector &vis1P4, const classic_svFit::LorentzVector &vis2P4, const classic_svFit::Vector &met) const
Definition: SvfitTools.cc:9
virtual double fitFunction(const classic_svFit::LorentzVector &tau1P4, const classic_svFit::LorentzVector &tau2P4, const classic_svFit::LorentzVector &vis1P4, const classic_svFit::LorentzVector &vis2P4, const classic_svFit::Vector &met) const
Definition: SvfitTools.cc:28
tuple tree
Definition: makePlots_datacardsCPStudies_projection.py:223
bool operator==(SvfitResults const &rhs) const
Definition: SvfitTools.cc:495
int decayType1
Definition: SvfitTools.h:70
bool operator==(SvfitEventKey const &rhs) const
Definition: SvfitTools.cc:204
void CreateBranches(TTree *tree)
Definition: SvfitTools.cc:104
void Set(ULong64_t const &runLumiEvent, classic_svFit::MeasuredTauLepton::kDecayType const &decayType1, classic_svFit::MeasuredTauLepton::kDecayType const &decayType2, int const &decayMode1, int const &decayMode2, HttEnumTypes::SystematicShift const &systematicShift, float const &systematicShiftSigma, float const &diTauMassConstraint, float const &kappa)
Definition: SvfitTools.cc:82
void Set(double fittedTransverseMass, RMFLV const &fittedHiggsLV, float fittedTau1ERatio, RMFLV const &fittedTau1LV, float fittedTau2ERatio, RMFLV const &fittedTau2LV)
Definition: SvfitTools.cc:419
void SetBranchAddresses(TTree *tree)
Definition: SvfitTools.cc:474
float kappa
Definition: SvfitTools.h:77
Definition: SvfitTools.h:66
virtual TH1 * createHistogram(const classic_svFit::LorentzVector &vis1P4, const classic_svFit::LorentzVector &vis2P4, const classic_svFit::Vector &met) const
Definition: SvfitTools.cc:24
RMFLV * fittedTau2LV
Definition: SvfitTools.h:153
float fittedTau1ERatio
Definition: SvfitTools.h:150
int decayMode1
Definition: SvfitTools.h:72
RMFLV * fittedHiggsLV
Definition: SvfitTools.h:149
double fittedTransverseMass
Definition: SvfitTools.h:148
void CreateBranches(TTree *tree)
Definition: SvfitTools.cc:464
~SvfitResults()
Definition: SvfitTools.cc:401
bool operator!=(SvfitResults const &rhs) const
Definition: SvfitTools.cc:505
int decayMode2
Definition: SvfitTools.h:73
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::DefaultCoordinateSystemTag > RMDataV
Place to collect functions calculating generic physical quantities -Mt: transverse mass...
Definition: Quantities.h:14
void ActivateBranches(TTree *tree, bool activate=true)
Definition: SvfitTools.cc:485
bool recalculated
Definition: SvfitTools.h:172
HttEnumTypes::SystematicShift GetSystematicShift() const
Definition: SvfitTools.cc:99
int decayType2
Definition: SvfitTools.h:71
Definition: SvfitTools.h:25
TauTauHistogramAdapter(std::vector< classic_svFit::SVfitQuantity * > const &quantities=std::vector< classic_svFit::SVfitQuantity * >())
Definition: SvfitTools.cc:38
Definition: SvfitTools.h:145
int systematicShift
Definition: SvfitTools.h:74
ULong64_t runLumiEvent
Definition: SvfitTools.h:69
RMFLV GetFittedTau2LV() const
Definition: SvfitTools.cc:66
Definition: SvfitTools.h:45
void FromCache()
Definition: SvfitTools.h:163
bool operator<(SvfitEventKey const &rhs) const
Definition: SvfitTools.cc:144
float GetFittedTau2ERatio() const
Definition: SvfitTools.cc:61
void FromRecalculation()
Definition: SvfitTools.h:162
SvfitEventKey()
Definition: SvfitTools.h:79