All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EnergySysts.h
Go to the documentation of this file.
1 //ETW May 2020 Fresh version for SBN
2 
3 #pragma once
4 
6 
7 #include <vector>
8 
9 namespace ana
10 {
11 
12  enum class EnergyScaleSystTerm {
13  kConstant,
14  kSqrt,
16  };
17 
19  kMuon,
20  kHadron,
21  kNeutron,
22  kEM,
24  };
25 
27  kSBND,
29  kICARUS,
30  kAll
31  };
32 
33  class EnergyScaleSyst: public ISyst
34  {
35  public:
36  EnergyScaleSyst(EnergyScaleSystTerm _term, EnergyScaleSystParticle _part, EnergyScaleSystDetector _detector, double _uncertainty, const std::string& name, const std::string& latexName) :
37  ISyst(name, latexName), term(_term), part(_part), detector(_detector), uncertainty(_uncertainty) {}
38 
39  void Shift(double sigma, caf::SRSliceProxy *sr, double& weight) const override;
40 
41  private:
45  double uncertainty;
46  };
47 
51 
55 
59 
63 
67 
71 
75 
79 
83 
87 
91 
95 
99 
103 
107 
111 
112 std::vector<const ISyst*> GetEnergySysts();
113 std::vector<const ISyst*> GetBigEnergySysts();
114 
115 }
const EnergyScaleSyst kEnergyScaleHadronSqrtUBBig(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kMicroBooNE, 0.10,"EnergyScaleHadronSqrtUBBig","Uncorrelated MicroBooNE sqrt E_{had} scale")
Definition: EnergySysts.h:105
const EnergyScaleSyst kEnergyScaleMuonInvSqrtND(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kSBND, 0.02,"EnergyScaleMuonInvSqrtND","Uncorrelated SBND inv sqrt E_{#mu} scale")
Definition: EnergySysts.h:54
const EnergyScaleSyst kEnergyScaleHadronUBBig(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kMicroBooNE, 0.10,"EnergyScaleHadronUBBig","Uncorrelated MicroBooNE linear E_{had} scale")
Definition: EnergySysts.h:104
const EnergyScaleSyst kEnergyScaleMuonNDBig(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kSBND, 0.05,"EnergyScaleMuonNDBig","Uncorrelated SBND linear E_{#mu} scale")
Definition: EnergySysts.h:84
const EnergyScaleSyst kEnergyScaleMuon(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kAll, 0.02,"EnergyScaleMuon","Correlated linear E_{#mu} scale")
Definition: EnergySysts.h:48
const EnergyScaleSyst kEnergyScaleMuonInvSqrtUB(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kMicroBooNE, 0.02,"EnergyScaleMuonInvSqrtUB","Uncorrelated MicroBooNE inv sqrt E_{#mu} scale")
Definition: EnergySysts.h:58
const EnergyScaleSyst kEnergyScaleHadronInvSqrt(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kAll, 0.05,"EnergyScaleHadronInvSqrt","Correlated inv sqrt E_{had} scale")
Definition: EnergySysts.h:66
const EnergyScaleSyst kEnergyScaleMuonInvSqrtFDBig(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kICARUS, 0.05,"EnergyScaleMuonInvSqrtFDBig","Uncorrelated ICARUS inv sqrt E_{#mu} scale")
Definition: EnergySysts.h:94
std::vector< const ISyst * > GetBigEnergySysts()
const EnergyScaleSyst kEnergyScaleHadronFDBig(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kICARUS, 0.10,"EnergyScaleHadronFDBig","Uncorrelated ICARUS linear E_{had} scale")
Definition: EnergySysts.h:108
const EnergyScaleSyst kEnergyScaleMuonND(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kSBND, 0.02,"EnergyScaleMuonND","Uncorrelated SBND linear E_{#mu} scale")
Definition: EnergySysts.h:52
const EnergyScaleSyst kEnergyScaleHadronSqrt(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kAll, 0.05,"EnergyScaleHadronSqrt","Correlated sqrt E_{had} scale")
Definition: EnergySysts.h:65
const EnergyScaleSyst kEnergyScaleHadronSqrtBig(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kAll, 0.10,"EnergyScaleHadronSqrtBig","Correlated sqrt E_{had} scale")
Definition: EnergySysts.h:97
void Shift(double sigma, caf::SRSliceProxy *sr, double &weight) const override
Perform the systematic shift.
Definition: EnergySysts.cxx:6
process_name opflashCryoW ana
const EnergyScaleSyst kEnergyScaleMuonUB(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kMicroBooNE, 0.02,"EnergyScaleMuonUB","Uncorrelated MicroBooNE linear E_{#mu} scale")
Definition: EnergySysts.h:56
const EnergyScaleSyst kEnergyScaleHadronFD(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kICARUS, 0.05,"EnergyScaleHadronFD","Uncorrelated ICARUS linear E_{had} scale")
Definition: EnergySysts.h:76
const EnergyScaleSyst kEnergyScaleMuonSqrtFD(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kICARUS, 0.02,"EnergyScaleMuonSqrtFD","Uncorrelated ICARUS sqrt E_{#mu} scale")
Definition: EnergySysts.h:61
const EnergyScaleSyst kEnergyScaleHadronInvSqrtFD(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kICARUS, 0.05,"EnergyScaleHadronInvSqrtFD","Uncorrelated ICARUS inv sqrt E_{had} scale")
Definition: EnergySysts.h:78
const EnergyScaleSyst kEnergyScaleMuonBig(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kAll, 0.05,"EnergyScaleMuonBig","Correlated linear E_{#mu} scale ")
Definition: EnergySysts.h:80
Encapsulate code to systematically shift a caf::StandardRecord.
Definition: ISyst.h:14
caf::Proxy< caf::SRSlice > SRSliceProxy
Definition: EpilogFwd.h:2
const EnergyScaleSyst kEnergyScaleHadronBig(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kAll, 0.10,"EnergyScaleHadronBig","Correlated linear E_{had} scale")
Definition: EnergySysts.h:96
EnergyScaleSystParticle part
Definition: EnergySysts.h:43
const EnergyScaleSyst kEnergyScaleHadron(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kAll, 0.05,"EnergyScaleHadron","Correlated linear E_{had} scale")
Definition: EnergySysts.h:64
const EnergyScaleSyst kEnergyScaleMuonInvSqrtBig(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kAll, 0.05,"EnergyScaleMuonInvSqrtBig","Correlated inv sqrt E_{#mu} scale")
Definition: EnergySysts.h:82
const EnergyScaleSyst kEnergyScaleHadronInvSqrtNDBig(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kSBND, 0.10,"EnergyScaleHadronInvSqrtNDBig","Uncorrelated SBND inv sqrt E_{had} scale")
Definition: EnergySysts.h:102
const EnergyScaleSyst kEnergyScaleHadronInvSqrtBig(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kAll, 0.10,"EnergyScaleHadronInvSqrtBig","Correlated inv sqrt E_{had} scale")
Definition: EnergySysts.h:98
const EnergyScaleSyst kEnergyScaleHadronInvSqrtUBBig(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kMicroBooNE, 0.10,"EnergyScaleHadronInvSqrtUBBig","Uncorrelated MicroBooNE inv sqrt E_{had} scale")
Definition: EnergySysts.h:106
const EnergyScaleSyst kEnergyScaleHadronSqrtFDBig(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kICARUS, 0.10,"EnergyScaleHadronSqrtFDBig","Uncorrelated ICARUS sqrt E_{had} scale")
Definition: EnergySysts.h:109
const EnergyScaleSyst kEnergyScaleHadronInvSqrtFDBig(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kICARUS, 0.10,"EnergyScaleHadronInvSqrtFDBig","Uncorrelated ICARUS inv sqrt E_{had} scale")
Definition: EnergySysts.h:110
const EnergyScaleSyst kEnergyScaleHadronInvSqrtUB(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kMicroBooNE, 0.05,"EnergyScaleHadronInvSqrtUB","Uncorrelated MicroBooNE inv sqrt E_{had} scale")
Definition: EnergySysts.h:74
const EnergyScaleSyst kEnergyScaleHadronUB(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kMicroBooNE, 0.05,"EnergyScaleHadronUB","Uncorrelated MicroBooNE linear E_{had} scale")
Definition: EnergySysts.h:72
const EnergyScaleSyst kEnergyScaleMuonInvSqrtUBBig(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kMicroBooNE, 0.05,"EnergyScaleMuonInvSqrtUBBig","Uncorrelated MicroBooNE inv sqrt E_{#mu} scale")
Definition: EnergySysts.h:90
const EnergyScaleSyst kEnergyScaleMuonInvSqrt(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kAll, 0.02,"EnergyScaleMuonInvSqrt","Correlated inv sqrt E_{#mu} scale")
Definition: EnergySysts.h:50
EnergyScaleSystParticle
Definition: EnergySysts.h:18
const EnergyScaleSyst kEnergyScaleHadronND(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kSBND, 0.05,"EnergyScaleHadronND","Uncorrelated SBND linear E_{had} scale")
Definition: EnergySysts.h:68
const EnergyScaleSyst kEnergyScaleMuonSqrtUBBig(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kMicroBooNE, 0.05,"EnergyScaleMuonSqrtUBBig","Uncorrelated MicroBooNE sqrt E_{#mu} scale")
Definition: EnergySysts.h:89
EnergyScaleSystTerm
Definition: EnergySysts.h:12
const EnergyScaleSyst kEnergyScaleMuonSqrtND(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kSBND, 0.02,"EnergyScaleMuonSqrtND","Uncorrelated SBND sqrt E_{#mu} scale")
Definition: EnergySysts.h:53
const EnergyScaleSyst kEnergyScaleMuonSqrt(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kAll, 0.02,"EnergyScaleMuonSqrt","Correlated sqrt E_{#mu} scale")
Definition: EnergySysts.h:49
EnergyScaleSystTerm term
Definition: EnergySysts.h:42
const EnergyScaleSyst kEnergyScaleMuonSqrtNDBig(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kSBND, 0.05,"EnergyScaleMuonSqrtNDBig","Uncorrelated SBND sqrt E_{#mu} scale")
Definition: EnergySysts.h:85
const EnergyScaleSyst kEnergyScaleHadronSqrtFD(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kICARUS, 0.05,"EnergyScaleHadronSqrtFD","Uncorrelated ICARUS sqrt E_{had} scale")
Definition: EnergySysts.h:77
const EnergyScaleSyst kEnergyScaleHadronSqrtUB(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kMicroBooNE, 0.05,"EnergyScaleHadronSqrtUB","Uncorrelated MicroBooNE sqrt E_{had} scale")
Definition: EnergySysts.h:73
EnergyScaleSystDetector detector
Definition: EnergySysts.h:44
const EnergyScaleSyst kEnergyScaleMuonFDBig(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kICARUS, 0.05,"EnergyScaleMuonFDBig","Uncorrelated ICARUS linear E_{#mu} scale")
Definition: EnergySysts.h:92
const EnergyScaleSyst kEnergyScaleMuonFD(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kICARUS, 0.02,"EnergyScaleMuonFD","Uncorrelated ICARUS linear E_{#mu} scale")
Definition: EnergySysts.h:60
const EnergyScaleSyst kEnergyScaleHadronNDBig(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kSBND, 0.10,"EnergyScaleHadronNDBig","Uncorrelated SBND linear E_{had} scale")
Definition: EnergySysts.h:100
then echo fcl name
const EnergyScaleSyst kEnergyScaleMuonUBBig(EnergyScaleSystTerm::kConstant, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kMicroBooNE, 0.05,"EnergyScaleMuonUBBig","Uncorrelated MicroBooNE linear E_{#mu} scale")
Definition: EnergySysts.h:88
EnergyScaleSyst(EnergyScaleSystTerm _term, EnergyScaleSystParticle _part, EnergyScaleSystDetector _detector, double _uncertainty, const std::string &name, const std::string &latexName)
Definition: EnergySysts.h:36
const EnergyScaleSyst kEnergyScaleMuonSqrtFDBig(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kICARUS, 0.05,"EnergyScaleMuonSqrtFDBig","Uncorrelated ICARUS sqrt E_{#mu} scale")
Definition: EnergySysts.h:93
const EnergyScaleSyst kEnergyScaleMuonInvSqrtNDBig(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kSBND, 0.05,"EnergyScaleMuonInvSqrtNDBig","Uncorrelated SBND inv sqrt E_{#mu} scale")
Definition: EnergySysts.h:86
const EnergyScaleSyst kEnergyScaleMuonInvSqrtFD(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kICARUS, 0.02,"EnergyScaleMuonInvSqrtFD","Uncorrelated ICARUS inv sqrt E_{#mu} scale")
Definition: EnergySysts.h:62
const EnergyScaleSyst kEnergyScaleHadronSqrtND(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kSBND, 0.05,"EnergyScaleHadronSqrtND","Uncorrelated SBND sqrt E_{had} scale")
Definition: EnergySysts.h:69
const EnergyScaleSyst kEnergyScaleMuonSqrtBig(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kAll, 0.05,"EnergyScaleMuonSqrtBig","Correlated sqrt E_{#mu} scale")
Definition: EnergySysts.h:81
EnergyScaleSystDetector
Definition: EnergySysts.h:26
const EnergyScaleSyst kEnergyScaleMuonSqrtUB(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kMuon, EnergyScaleSystDetector::kMicroBooNE, 0.02,"EnergyScaleMuonSqrtUB","Uncorrelated MicroBooNE sqrt E_{#mu} scale")
Definition: EnergySysts.h:57
std::vector< const ISyst * > GetEnergySysts()
const EnergyScaleSyst kEnergyScaleHadronInvSqrtND(EnergyScaleSystTerm::kInverseSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kSBND, 0.05,"EnergyScaleHadronInvSqrtND","Uncorrelated SBND inv sqrt E_{had} scale")
Definition: EnergySysts.h:70
const EnergyScaleSyst kEnergyScaleHadronSqrtNDBig(EnergyScaleSystTerm::kSqrt, EnergyScaleSystParticle::kHadron, EnergyScaleSystDetector::kSBND, 0.10,"EnergyScaleHadronSqrtNDBig","Uncorrelated SBND sqrt E_{had} scale")
Definition: EnergySysts.h:101