ATLAS Offline Software
Public Types | Public Member Functions | List of all members
CP::IKinematicSystHandler Class Referenceabstract

#include <KinematicSystHandler.h>

Inheritance diagram for CP::IKinematicSystHandler:
Collaboration diagram for CP::IKinematicSystHandler:

Public Types

typedef float(IKinematicSystHandler::* KinVariable) (const xAOD::Muon &mu) const
 Typedef to prepare function pointers to the muon. More...
 

Public Member Functions

virtual CorrectionCode GetKineDependent (const xAOD::Muon &mu, float &Eff) const =0
 Add an additional uncertainty to the muon depending on its kinematics. More...
 
virtual void SetSystematicWeight (float SystWeight)=0
 Set's the absolute scaling of the systematic. More...
 
virtual bool initialize ()=0
 Initialize method to load the inputs and check that everything will work as expected. More...
 
virtual ~IKinematicSystHandler ()=default
 
KinVariable GetMuonVariableToUse (const std::string &name)
 
float Eta (const xAOD::Muon &mu) const
 
float Pt (const xAOD::Muon &mu) const
 
float PtGeV (const xAOD::Muon &mu) const
 
float AbsEta (const xAOD::Muon &mu) const
 

Detailed Description

Definition at line 32 of file KinematicSystHandler.h.

Member Typedef Documentation

◆ KinVariable

typedef float(IKinematicSystHandler::* CP::IKinematicSystHandler::KinVariable) (const xAOD::Muon &mu) const

Typedef to prepare function pointers to the muon.

Definition at line 45 of file KinematicSystHandler.h.

Constructor & Destructor Documentation

◆ ~IKinematicSystHandler()

virtual CP::IKinematicSystHandler::~IKinematicSystHandler ( )
virtualdefault

Member Function Documentation

◆ AbsEta()

float CP::IKinematicSystHandler::AbsEta ( const xAOD::Muon mu) const

Definition at line 17 of file KinematicSystHandler.cxx.

17  {
18  return std::abs(mu.eta());
19  }

◆ Eta()

float CP::IKinematicSystHandler::Eta ( const xAOD::Muon mu) const

Definition at line 8 of file KinematicSystHandler.cxx.

8  {
9  return mu.eta();
10  }

◆ GetKineDependent()

virtual CorrectionCode CP::IKinematicSystHandler::GetKineDependent ( const xAOD::Muon mu,
float &  Eff 
) const
pure virtual

Add an additional uncertainty to the muon depending on its kinematics.

Implemented in CP::BadMuonVetoSystHandler, CP::TTVAClosureSysHandler, CP::PrimodialPtSystematic, and CP::PtKinematicSystHandler.

◆ GetMuonVariableToUse()

IKinematicSystHandler::KinVariable CP::IKinematicSystHandler::GetMuonVariableToUse ( const std::string &  name)

Definition at line 21 of file KinematicSystHandler.cxx.

21  {
22  if (name == "pt") return &IKinematicSystHandler::Pt;
23  if (name == "ptGeV") return &IKinematicSystHandler::PtGeV;
24  if (name == "eta") return &IKinematicSystHandler::Eta;
25  if (name == "AbsEta") return &IKinematicSystHandler::AbsEta;
26  return nullptr;
27  }

◆ initialize()

virtual bool CP::IKinematicSystHandler::initialize ( )
pure virtual

Initialize method to load the inputs and check that everything will work as expected.

Implemented in CP::BadMuonVetoSystHandler, CP::TTVAClosureSysHandler, CP::PrimodialPtSystematic, and CP::PtKinematicSystHandler.

◆ Pt()

float CP::IKinematicSystHandler::Pt ( const xAOD::Muon mu) const

Definition at line 11 of file KinematicSystHandler.cxx.

11  {
12  return mu.pt();
13  }

◆ PtGeV()

float CP::IKinematicSystHandler::PtGeV ( const xAOD::Muon mu) const

Definition at line 14 of file KinematicSystHandler.cxx.

14  {
15  return mu.pt() / 1.e3;
16  }

◆ SetSystematicWeight()

virtual void CP::IKinematicSystHandler::SetSystematicWeight ( float  SystWeight)
pure virtual

Set's the absolute scaling of the systematic.

For daily puposes it's usually either 1 or -1 indicating if the instance is an upwards or downwards variation.

Implemented in CP::BadMuonVetoSystHandler, CP::TTVAClosureSysHandler, CP::PrimodialPtSystematic, and CP::PtKinematicSystHandler.


The documentation for this class was generated from the following files:
CP::IKinematicSystHandler::Pt
float Pt(const xAOD::Muon &mu) const
Definition: KinematicSystHandler.cxx:11
CP::IKinematicSystHandler::AbsEta
float AbsEta(const xAOD::Muon &mu) const
Definition: KinematicSystHandler.cxx:17
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CP::IKinematicSystHandler::PtGeV
float PtGeV(const xAOD::Muon &mu) const
Definition: KinematicSystHandler.cxx:14
CP::IKinematicSystHandler::Eta
float Eta(const xAOD::Muon &mu) const
Definition: KinematicSystHandler.cxx:8
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53