ATLAS Offline Software
SUSYCrossSectionPMG.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef __SUSYCROSSSECTIONPMG__
6 #define __SUSYCROSSSECTIONPMG__
7 
8 // Function arguments
9 #include <string>
10 
11 // For PMG centralized tool's wrapper tool handles
12 #include "AsgTools/AnaToolHandle.h"
13 // Lots of function inlining!
15 
16 namespace PMGTools {
17  class IPMGCrossSectionTool;
18 }
19 
20 namespace SUSY
21 {
22 
24 {
25 public:
26  CrossSectionDBPMG(const std::string& txtfilenameOrDir = "SUSYTools/data/mc15_13TeV/");
27 
28  void loadFile(const std::string&);
29 
30  float xsectTimesEff(int id) const { return m_pmgxs->getSampleXsection(id); };
31  float rawxsect(int id) const { return m_pmgxs->getAMIXsection(id); };
32  float kfactor(int id) const { return m_pmgxs->getKfactor(id); };
33 
34  float efficiency(int id/*, int proc = 0*/) const { return m_pmgxs->getFilterEff(id); }
35  float rel_uncertainty(int /*id*/, int /*proc = 0*/) const { return -1; };
36  float sumweight(int /*id, int proc = 0*/) const { return -1; };
37 
38  // invalid ID return "" string
39  std::string name(int id) const { return m_pmgxs->getSampleName(id); }
40 
41 private:
42 
43  //PMG tool
45 
46 };
47 
48 }
49 
50 #endif
SUSY::CrossSectionDBPMG::rawxsect
float rawxsect(int id) const
Definition: SUSYCrossSectionPMG.h:31
asg::AnaToolHandle< PMGTools::IPMGCrossSectionTool >
SUSY::CrossSectionDBPMG
Definition: SUSYCrossSectionPMG.h:24
SUSY::CrossSectionDBPMG::kfactor
float kfactor(int id) const
Definition: SUSYCrossSectionPMG.h:32
SUSY::CrossSectionDBPMG::xsectTimesEff
float xsectTimesEff(int id) const
Definition: SUSYCrossSectionPMG.h:30
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,...
SUSY::CrossSectionDBPMG::loadFile
void loadFile(const std::string &)
Definition: SUSYCrossSectionPMG.cxx:15
SUSY
Definition: AtlasPID.h:613
SUSY::CrossSectionDBPMG::sumweight
float sumweight(int) const
Definition: SUSYCrossSectionPMG.h:36
SUSY::CrossSectionDBPMG::efficiency
float efficiency(int id) const
Definition: SUSYCrossSectionPMG.h:34
SUSY::CrossSectionDBPMG::m_pmgxs
asg::AnaToolHandle< PMGTools::IPMGCrossSectionTool > m_pmgxs
Definition: SUSYCrossSectionPMG.h:44
PMGTools::IPMGCrossSectionTool::getFilterEff
virtual double getFilterEff(const int dsid) const =0
return filter efficiency for DSID
PMGTools
Tool providing sample cross-sections and k-factors etc.
Definition: AnalysisCommon/PMGTools/PMGTools/IPMGCrossSectionTool.h:15
AnaToolHandle.h
SUSY::CrossSectionDBPMG::CrossSectionDBPMG
CrossSectionDBPMG(const std::string &txtfilenameOrDir="SUSYTools/data/mc15_13TeV/")
Definition: SUSYCrossSectionPMG.cxx:7
SUSY::CrossSectionDBPMG::rel_uncertainty
float rel_uncertainty(int, int) const
Definition: SUSYCrossSectionPMG.h:35
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
IPMGCrossSectionTool.h
SUSY::CrossSectionDBPMG::name
std::string name(int id) const
Definition: SUSYCrossSectionPMG.h:39
PMGTools::IPMGCrossSectionTool::getAMIXsection
virtual double getAMIXsection(const int dsid) const =0
return the AMI cross-section for DSID