ATLAS Offline Software
Loading...
Searching...
No Matches
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
13// Lots of function inlining!
15
16namespace PMGTools {
18}
19
20namespace SUSY
21{
22
24{
25public:
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
41private:
42
43 //PMG tool
45
46};
47
48}
49
50#endif
float rel_uncertainty(int, int) const
float rawxsect(int id) const
float efficiency(int id) const
std::string name(int id) const
void loadFile(const std::string &)
asg::AnaToolHandle< PMGTools::IPMGCrossSectionTool > m_pmgxs
float kfactor(int id) const
CrossSectionDBPMG(const std::string &txtfilenameOrDir="SUSYTools/data/mc15_13TeV/")
float xsectTimesEff(int id) const
a modified tool handle that allows its owner to configure new tools from the C++ side
Tool providing sample cross-sections and k-factors etc.