ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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. More...
 
bool fill (const EventContext &ctx)
 check that all branches are set properly More...
 

Public Attributes

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

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  }

◆ 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.

◆ 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.

◆ 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.

◆ 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.


The documentation for this struct was generated from the following file:
MuonVal::ScalarBranch::fill
bool fill(const EventContext &ctx) override
The fill method checks if enough information is provided such that the branch is cleared from the inf...
TestMuonSF::MuonSFBranches::SFSet::mcEff
MuonVal::ScalarBranch< float > mcEff
Definition: MuonSFTestHelper.h:115
TestMuonSF::MuonSFBranches::SFSet::cpSet
const CP::SystematicSet cpSet
Systematic set.
Definition: MuonSFTestHelper.h:110
MuonVal::ScalarBranch::init
bool init() override
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
TestMuonSF::MuonSFBranches::SFSet::scaleFactor
MuonVal::ScalarBranch< float > scaleFactor
Actual branches storing scaleFactor & mcEff & dataEff.
Definition: MuonSFTestHelper.h:114
TestMuonSF::MuonSFBranches::SFSet::dataEff
MuonVal::ScalarBranch< float > dataEff
Definition: MuonSFTestHelper.h:116
TestMuonSF::MuonSFBranches::SFSet::parent
MuonSFBranches & parent
Parent from which the TTree pointer & name is retrieved.
Definition: MuonSFTestHelper.h:112