ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
PMGTools
PMGTools
PMGCrossSectionTool.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
3
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef PMGTOOLS_PMGCROSSSECTIONTOOL_H
8
#define PMGTOOLS_PMGCROSSSECTIONTOOL_H
9
10
// System include(s):
11
#include <map>
12
#include <string>
13
14
// Infrastructure include(s):
15
#include "
AsgTools/AsgTool.h
"
16
17
// Interface include(s):
18
#include "
PMGAnalysisInterfaces/IPMGCrossSectionTool.h
"
19
22
23
namespace
PMGTools
{
24
25
class
PMGCrossSectionTool
:
public
virtual
IPMGCrossSectionTool
,
26
public
asg::AsgTool
{
27
28
public
:
29
//constructor for athena can be created using special macro
30
ASG_TOOL_CLASS
(
PMGCrossSectionTool
,
PMGTools::IPMGCrossSectionTool
)
31
32
33
PMGCrossSectionTool
(
const
std::string& name =
34
"PMGCrossSectionTool"
);
35
38
40
StatusCode
initialize
();
41
43
bool
readInfosFromFiles
(
const
std::vector<std::string> &);
44
46
bool
readInfosFromDir
(
const
std::string& inputDir);
47
49
double
getFilterEff
(
const
int
dsid,
const
int
etag = -1)
const
;
50
52
std::string
getSampleName
(
const
int
dsid,
const
int
etag = -1)
const
;
53
55
double
getAMIXsection
(
const
int
dsid,
const
int
etag = -1)
const
;
56
58
double
getXsectionUncertainty
(
const
int
dsid,
const
int
etag = -1)
const
;
59
61
double
getXsectionUncertaintyUP
(
const
int
dsid,
const
int
etag = -1)
const
;
62
64
double
getXsectionUncertaintyDOWN
(
const
int
dsid,
const
int
etag = -1)
const
;
65
66
// :: below is for future use?
68
//double getBR(const int dsid, const int etag = -1) const;
69
71
double
getKfactor
(
const
int
dsid,
const
int
etag = -1)
const
;
72
74
double
getSampleXsection
(
const
int
dsid,
const
int
etag = -1)
const
;
75
77
std::vector<int>
getLoadedDSIDs
()
const
;
78
79
private
:
80
81
// store vector of structures, each structure contains full info for DSID
82
std::map<std::pair<unsigned, int>,
PMGTools::AllSampleInfo
>
m_fStoreSampleInfo
;
83
std::string
m_InputFileName
;
84
85
};
// class PMGCrossSectionTool
86
87
}
88
89
#endif
//> !PMGTOOLS_PMGCROSSSECTIONTOOL_H
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
IPMGCrossSectionTool.h
PMGTools::IPMGCrossSectionTool
Definition
IPMGCrossSectionTool.h:33
PMGTools::PMGCrossSectionTool::getKfactor
double getKfactor(const int dsid, const int etag=-1) const
return the branching ratio for DSID
Definition
PMGCrossSectionTool.cxx:195
PMGTools::PMGCrossSectionTool::readInfosFromDir
bool readInfosFromDir(const std::string &inputDir)
read infos from all files in dir
Definition
PMGCrossSectionTool.cxx:96
PMGTools::PMGCrossSectionTool::getSampleName
std::string getSampleName(const int dsid, const int etag=-1) const
return the sample name for DSID
Definition
PMGCrossSectionTool.cxx:139
PMGTools::PMGCrossSectionTool::getXsectionUncertaintyUP
double getXsectionUncertaintyUP(const int dsid, const int etag=-1) const
return the cross-section uncertainty for DSID
Definition
PMGCrossSectionTool.cxx:171
PMGTools::PMGCrossSectionTool::getXsectionUncertaintyDOWN
double getXsectionUncertaintyDOWN(const int dsid, const int etag=-1) const
return the cross-section uncertainty for DSID
Definition
PMGCrossSectionTool.cxx:180
PMGTools::PMGCrossSectionTool::getSampleXsection
double getSampleXsection(const int dsid, const int etag=-1) const
return the sample cross-section for DSID
Definition
PMGCrossSectionTool.cxx:206
PMGTools::PMGCrossSectionTool::readInfosFromFiles
bool readInfosFromFiles(const std::vector< std::string > &)
read infos from file, store them in the structure and make a vector that keeps all of them
Definition
PMGCrossSectionTool.cxx:37
PMGTools::PMGCrossSectionTool::getXsectionUncertainty
double getXsectionUncertainty(const int dsid, const int etag=-1) const
return the cross-section uncertainty for DSID
Definition
PMGCrossSectionTool.cxx:189
PMGTools::PMGCrossSectionTool::getAMIXsection
double getAMIXsection(const int dsid, const int etag=-1) const
return the AMI cross-section for DSID
Definition
PMGCrossSectionTool.cxx:149
PMGTools::PMGCrossSectionTool::PMGCrossSectionTool
PMGCrossSectionTool(const std::string &name="PMGCrossSectionTool")
Standard tool constructor, with name.
Definition
PMGCrossSectionTool.cxx:21
PMGTools::PMGCrossSectionTool::initialize
StatusCode initialize()
initialize() is required by AsgTool base class
Definition
PMGCrossSectionTool.cxx:24
PMGTools::PMGCrossSectionTool::getFilterEff
double getFilterEff(const int dsid, const int etag=-1) const
return filter efficiency for DSID
Definition
PMGCrossSectionTool.cxx:129
PMGTools::PMGCrossSectionTool::getLoadedDSIDs
std::vector< int > getLoadedDSIDs() const
get a list of the DSID for the loaded samples
Definition
PMGCrossSectionTool.cxx:218
PMGTools::PMGCrossSectionTool::m_InputFileName
std::string m_InputFileName
Definition
PMGCrossSectionTool.h:83
PMGTools::PMGCrossSectionTool::m_fStoreSampleInfo
std::map< std::pair< unsigned, int >, PMGTools::AllSampleInfo > m_fStoreSampleInfo
Definition
PMGCrossSectionTool.h:82
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
PMGTools
Tool providing sample cross-sections and k-factors etc.
Definition
AnalysisCommon/PMGTools/PMGTools/IPMGSherpaVjetsSysTool.h:16
PMGTools::AllSampleInfo
Definition
IPMGCrossSectionTool.h:18
Generated on
for ATLAS Offline Software by
1.17.0