ATLAS Offline Software
Loading...
Searching...
No Matches
TestMuonSF::MuonSFBranches::SFSet Struct Reference

Helper struct to store scale factor, data efficiency + mc efficiency for each systematic variation. More...

Collaboration diagram for TestMuonSF::MuonSFBranches::SFSet:

Public Member Functions

 SFSet (const CP::SystematicSet &cpSet_, MuonSFBranches &parent_)
bool init ()
 Initialization of the branches.
bool fill (const EventContext &ctx)
 check that all branches are set properly

Public Attributes

const CP::SystematicSet cpSet {}
 Systematic set.
MuonSFBranchesparent
 Parent from which the TTree pointer & name is retrieved.
MuonVal::ScalarBranch< float > scaleFactor {parent.tree(),parent.name()+"SF" + systName(cpSet), 1.f}
 Actual branches storing scaleFactor & mcEff & dataEff.
MuonVal::ScalarBranch< float > mcEff {parent.tree(),parent.name()+"MCEff" + systName(cpSet), 1.f}
MuonVal::ScalarBranch< float > dataEff {parent.tree(),parent.name()+"DataEff" + systName(cpSet),1.f}

Detailed Description

Helper struct to store scale factor, data efficiency + mc efficiency for each systematic variation.

Definition at line 97 of file MuonSFTestHelper.h.

Constructor & Destructor Documentation

◆ SFSet()

TestMuonSF::MuonSFBranches::SFSet::SFSet ( const CP::SystematicSet & cpSet_,
MuonSFBranches & parent_ )
inline

Definition at line 98 of file MuonSFTestHelper.h.

99 :
100 cpSet{cpSet_}, parent{parent_}{}
const CP::SystematicSet cpSet
Systematic set.
MuonSFBranches & parent
Parent from which the TTree pointer & name is retrieved.

Member Function Documentation

◆ fill()

bool TestMuonSF::MuonSFBranches::SFSet::fill ( const EventContext & ctx)
inline

check that all branches are set properly

Definition at line 106 of file MuonSFTestHelper.h.

106 {
107 return scaleFactor.fill(ctx) && mcEff.fill(ctx) && dataEff.fill(ctx);
108 }
MuonVal::ScalarBranch< float > scaleFactor
Actual branches storing scaleFactor & mcEff & dataEff.
MuonVal::ScalarBranch< float > dataEff
MuonVal::ScalarBranch< float > mcEff

◆ init()

bool TestMuonSF::MuonSFBranches::SFSet::init ( )
inline

Initialization of the branches.

Definition at line 102 of file MuonSFTestHelper.h.

102 {
103 return scaleFactor.init() && mcEff.init() && dataEff.init();
104 }

Member Data Documentation

◆ cpSet

const CP::SystematicSet TestMuonSF::MuonSFBranches::SFSet::cpSet {}

Systematic set.

Definition at line 110 of file MuonSFTestHelper.h.

110{};

◆ dataEff

MuonVal::ScalarBranch<float> TestMuonSF::MuonSFBranches::SFSet::dataEff {parent.tree(),parent.name()+"DataEff" + systName(cpSet),1.f}

Definition at line 116 of file MuonSFTestHelper.h.

116{parent.tree(),parent.name()+"DataEff" + systName(cpSet),1.f};
static std::string systName(const CP::SystematicSet &set)
Dummy helper function that encodes the systname set.

◆ mcEff

MuonVal::ScalarBranch<float> TestMuonSF::MuonSFBranches::SFSet::mcEff {parent.tree(),parent.name()+"MCEff" + systName(cpSet), 1.f}

Definition at line 115 of file MuonSFTestHelper.h.

115{parent.tree(),parent.name()+"MCEff" + systName(cpSet), 1.f};

◆ parent

MuonSFBranches& TestMuonSF::MuonSFBranches::SFSet::parent

Parent from which the TTree pointer & name is retrieved.

Definition at line 112 of file MuonSFTestHelper.h.

◆ scaleFactor

MuonVal::ScalarBranch<float> TestMuonSF::MuonSFBranches::SFSet::scaleFactor {parent.tree(),parent.name()+"SF" + systName(cpSet), 1.f}

Actual branches storing scaleFactor & mcEff & dataEff.

Definition at line 114 of file MuonSFTestHelper.h.

114{parent.tree(),parent.name()+"SF" + systName(cpSet), 1.f};

The documentation for this struct was generated from the following file: