ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SUSY::CrossSectionDBPMG Class Reference

#include <SUSYCrossSectionPMG.h>

Collaboration diagram for SUSY::CrossSectionDBPMG:

Public Member Functions

 CrossSectionDBPMG (const std::string &txtfilenameOrDir="SUSYTools/data/mc15_13TeV/")
 
void loadFile (const std::string &)
 
float xsectTimesEff (int id) const
 
float rawxsect (int id) const
 
float kfactor (int id) const
 
float efficiency (int id) const
 
float rel_uncertainty (int, int) const
 
float sumweight (int) const
 
std::string name (int id) const
 

Private Attributes

asg::AnaToolHandle< PMGTools::IPMGCrossSectionToolm_pmgxs
 

Detailed Description

Definition at line 23 of file SUSYCrossSectionPMG.h.

Constructor & Destructor Documentation

◆ CrossSectionDBPMG()

SUSY::CrossSectionDBPMG::CrossSectionDBPMG ( const std::string &  txtfilenameOrDir = "SUSYTools/data/mc15_13TeV/")

Definition at line 7 of file SUSYCrossSectionPMG.cxx.

8  : m_pmgxs("")
9 {
10  m_pmgxs.setTypeAndName("PMGTools::PMGCrossSectionTool/PMGCrossSectionTool");
11  m_pmgxs.retrieve().ignore(); // Ignore the status code
12  m_pmgxs->readInfosFromDir(txtfilenameOrDir);
13 }

Member Function Documentation

◆ efficiency()

float SUSY::CrossSectionDBPMG::efficiency ( int  id) const
inline

Definition at line 34 of file SUSYCrossSectionPMG.h.

34 { return m_pmgxs->getFilterEff(id); }

◆ kfactor()

float SUSY::CrossSectionDBPMG::kfactor ( int  id) const
inline

Definition at line 32 of file SUSYCrossSectionPMG.h.

32 { return m_pmgxs->getKfactor(id); };

◆ loadFile()

void SUSY::CrossSectionDBPMG::loadFile ( const std::string &  txtfilename)

Definition at line 15 of file SUSYCrossSectionPMG.cxx.

16 {
17  std::vector<std::string> xs_files;
18  xs_files.push_back(txtfilename);
19  m_pmgxs->readInfosFromFiles(xs_files);
20 }

◆ name()

std::string SUSY::CrossSectionDBPMG::name ( int  id) const
inline

Definition at line 39 of file SUSYCrossSectionPMG.h.

39 { return m_pmgxs->getSampleName(id); }

◆ rawxsect()

float SUSY::CrossSectionDBPMG::rawxsect ( int  id) const
inline

Definition at line 31 of file SUSYCrossSectionPMG.h.

31 { return m_pmgxs->getAMIXsection(id); };

◆ rel_uncertainty()

float SUSY::CrossSectionDBPMG::rel_uncertainty ( int  ,
int   
) const
inline

Definition at line 35 of file SUSYCrossSectionPMG.h.

35 { return -1; };

◆ sumweight()

float SUSY::CrossSectionDBPMG::sumweight ( int  ) const
inline

Definition at line 36 of file SUSYCrossSectionPMG.h.

36 { return -1; };

◆ xsectTimesEff()

float SUSY::CrossSectionDBPMG::xsectTimesEff ( int  id) const
inline

Definition at line 30 of file SUSYCrossSectionPMG.h.

30 { return m_pmgxs->getSampleXsection(id); };

Member Data Documentation

◆ m_pmgxs

asg::AnaToolHandle<PMGTools::IPMGCrossSectionTool> SUSY::CrossSectionDBPMG::m_pmgxs
private

Definition at line 44 of file SUSYCrossSectionPMG.h.


The documentation for this class was generated from the following files:
asg::AnaToolHandle::retrieve
StatusCode retrieve()
initialize the tool
asg::AnaToolHandle::setTypeAndName
void setTypeAndName(const std::string &val_typeAndName)
set the value of type and name
PMGTools::IPMGCrossSectionTool::getSampleXsection
virtual double getSampleXsection(const int dsid) const =0
return the sample cross-section for DSID (can we find a more descriptive name for this,...
PMGTools::IPMGCrossSectionTool::readInfosFromFiles
virtual bool readInfosFromFiles(std::vector< std::string >)=0
read infos from file, store them in the structure and make a vector that keeps all of them
SUSY::CrossSectionDBPMG::m_pmgxs
asg::AnaToolHandle< PMGTools::IPMGCrossSectionTool > m_pmgxs
Definition: SUSYCrossSectionPMG.h:44
PMGTools::IPMGCrossSectionTool::readInfosFromDir
virtual bool readInfosFromDir(const std::string &inputDir)=0
read infos from all files in dir
PMGTools::IPMGCrossSectionTool::getFilterEff
virtual double getFilterEff(const int dsid) const =0
return filter efficiency for DSID
PMGTools::IPMGCrossSectionTool::getSampleName
virtual std::string getSampleName(const int dsid) const =0
return the sample name for DSID
PMGTools::IPMGCrossSectionTool::getKfactor
virtual double getKfactor(const int dsid) const =0
return the k-factor for DSID
PMGTools::IPMGCrossSectionTool::getAMIXsection
virtual double getAMIXsection(const int dsid) const =0
return the AMI cross-section for DSID