ATLAS Offline Software
SUSYCrossSectionPMG.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 SUSY::CrossSectionDBPMG::CrossSectionDBPMG(const std::string& txtfilenameOrDir)
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 }
14 
15 void SUSY::CrossSectionDBPMG::loadFile(const std::string& txtfilename)
16 {
17  std::vector<std::string> xs_files;
18  xs_files.push_back(txtfilename);
19  m_pmgxs->readInfosFromFiles(xs_files);
20 }
SUSYCrossSectionPMG.h
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
SUSY::CrossSectionDBPMG::loadFile
void loadFile(const std::string &)
Definition: SUSYCrossSectionPMG.cxx:15
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
SUSY::CrossSectionDBPMG::CrossSectionDBPMG
CrossSectionDBPMG(const std::string &txtfilenameOrDir="SUSYTools/data/mc15_13TeV/")
Definition: SUSYCrossSectionPMG.cxx:7