#include <SUSYCrossSection.h>
|
| | CrossSectionDB (const std::string &txtfilename="dev/PMGTools/PMGxsecDB_mc16.txt", bool usePathResolver=true, bool isExtended=false, bool usePMGTool=true) |
| void | loadFile (const std::string &) |
| void | extend (const std::string &) |
| void | setExtended (bool isExtended=true) |
| void | setUsePMGTool (bool usePMGTool=true) |
| Process | process (int id, int proc=0) const |
| Process | process (int id, int pdgId1, int pdgId2) const |
| float | xsectTimesEff (int id, int proc=0) const |
| float | xsectTimesEff (int id, int pdgId1, int pdgId2) const |
| float | rawxsect (int id, int proc=0) const |
| float | rawxsect (int id, int pdgId1, int pdgId2) const |
| float | kfactor (int id, int proc=0) const |
| float | kfactor (int id, int pdgId1, int pdgId2) const |
| float | efficiency (int id, int proc=0) const |
| float | efficiency (int id, int pdgId1, int pdgId2) const |
| float | rel_uncertainty (int id, int proc=0) const |
| float | rel_uncertainty (int id, int pdgId1, int pdgId2) const |
| float | sumweight (int id, int proc=0) const |
| float | sumweight (int id, int pdgId1, int pdgId2) const |
| std::string | name (int id) const |
| iterator | begin () const |
| iterator | end () const |
Definition at line 28 of file SUSYCrossSection.h.
◆ iterator
◆ xsDB_t
◆ CrossSectionDB()
| SUSY::CrossSectionDB::CrossSectionDB |
( |
const std::string & | txtfilename = "dev/PMGTools/PMGxsecDB_mc16.txt", |
|
|
bool | usePathResolver = true, |
|
|
bool | isExtended = false, |
|
|
bool | usePMGTool = true ) |
Definition at line 113 of file SUSYCrossSection.cxx.
115{
118
119
120 m_pmgxs.setTypeAndName(
"PMGTools::PMGCrossSectionTool/PMGCrossSectionTool");
122 std::vector<std::string>
inFiles={};
125 if (!in) return;
127 m_pmgxs->readInfosFromFiles( inFiles );
128
129}
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
asg::AnaToolHandle< PMGTools::IPMGCrossSectionTool > m_pmgxs
void setUsePMGTool(bool usePMGTool=true)
void setExtended(bool isExtended=true)
◆ begin()
| iterator SUSY::CrossSectionDB::begin |
( |
| ) |
const |
|
inline |
◆ efficiency() [1/2]
| float SUSY::CrossSectionDB::efficiency |
( |
int | id, |
|
|
int | pdgId1, |
|
|
int | pdgId2 ) const |
|
inline |
Definition at line 104 of file SUSYCrossSection.h.
float efficiency(int id, int proc=0) const
unsigned int finalState(const int SUSY_Spart1_pdgId, const int SUSY_Spart2_pdgId)
◆ efficiency() [2/2]
| float SUSY::CrossSectionDB::efficiency |
( |
int | id, |
|
|
int | proc = 0 ) const |
|
inline |
◆ end()
| iterator SUSY::CrossSectionDB::end |
( |
| ) |
const |
|
inline |
◆ extend()
| void SUSY::CrossSectionDB::extend |
( |
const std::string & | txtfilename | ) |
|
Definition at line 167 of file SUSYCrossSection.cxx.
167 {
168
170
171 std::ifstream in(txtfilename.c_str());
172 if (!in) return;
173 while ( getline(in, line) )
174 {
175
176 if ( !
line.empty() ){
177 while ( line[0] ==
' ' )
line.erase(0, 1);
178 }
179
180 if ( !
line.empty() && isdigit(line[0]) ){
181 std::stringstream is(line);
192 }
194 } else {
195
199 my_it->second.stat(stat);
200 }
201 }
202 }
203
204}
xsDB_t::iterator my_find(const int proc)
float sumweight(int id, int proc=0) const
float kfactor(int id, int proc=0) const
std::string name(int id) const
◆ kfactor() [1/2]
| float SUSY::CrossSectionDB::kfactor |
( |
int | id, |
|
|
int | pdgId1, |
|
|
int | pdgId2 ) const |
|
inline |
◆ kfactor() [2/2]
| float SUSY::CrossSectionDB::kfactor |
( |
int | id, |
|
|
int | proc = 0 ) const |
|
inline |
◆ loadFile()
| void SUSY::CrossSectionDB::loadFile |
( |
const std::string & | txtfilename | ) |
|
Definition at line 131 of file SUSYCrossSection.cxx.
131 {
132
134
135 std::ifstream in(txtfilename.c_str());
136 if (!in) return;
137 while ( getline(in, line) ){
138
139 if ( !
line.empty() ){
140 while ( line[0] ==
' ' )
line.erase(0, 1);
141 }
142
143 if ( !
line.empty() && isdigit(line[0]) ){
144 std::stringstream is(line);
152 }
154 }
155 }
156}
◆ my_find()
| SUSY::CrossSectionDB::xsDB_t::iterator SUSY::CrossSectionDB::my_find |
( |
const int | proc | ) |
|
|
private |
◆ name()
| std::string SUSY::CrossSectionDB::name |
( |
int | id | ) |
const |
|
inline |
◆ process() [1/2]
| Process SUSY::CrossSectionDB::process |
( |
int | id, |
|
|
int | pdgId1, |
|
|
int | pdgId2 ) const |
|
inline |
◆ process() [2/2]
Definition at line 206 of file SUSYCrossSection.cxx.
207{
208
211 } else {
212 const Key k(
id, proc);
216 } else {
220 }
221 }
222 }
224}
◆ rawxsect() [1/2]
| float SUSY::CrossSectionDB::rawxsect |
( |
int | id, |
|
|
int | pdgId1, |
|
|
int | pdgId2 ) const |
|
inline |
◆ rawxsect() [2/2]
| float SUSY::CrossSectionDB::rawxsect |
( |
int | id, |
|
|
int | proc = 0 ) const |
|
inline |
◆ rel_uncertainty() [1/2]
| float SUSY::CrossSectionDB::rel_uncertainty |
( |
int | id, |
|
|
int | pdgId1, |
|
|
int | pdgId2 ) const |
|
inline |
◆ rel_uncertainty() [2/2]
| float SUSY::CrossSectionDB::rel_uncertainty |
( |
int | id, |
|
|
int | proc = 0 ) const |
|
inline |
◆ setExtended()
| void SUSY::CrossSectionDB::setExtended |
( |
bool | isExtended = true | ) |
|
|
inline |
◆ setUsePMGTool()
| void SUSY::CrossSectionDB::setUsePMGTool |
( |
bool | usePMGTool = true | ) |
|
|
inline |
◆ sumweight() [1/2]
| float SUSY::CrossSectionDB::sumweight |
( |
int | id, |
|
|
int | pdgId1, |
|
|
int | pdgId2 ) const |
|
inline |
◆ sumweight() [2/2]
| float SUSY::CrossSectionDB::sumweight |
( |
int | id, |
|
|
int | proc = 0 ) const |
|
inline |
◆ xsectTimesEff() [1/2]
| float SUSY::CrossSectionDB::xsectTimesEff |
( |
int | id, |
|
|
int | pdgId1, |
|
|
int | pdgId2 ) const |
|
inline |
◆ xsectTimesEff() [2/2]
| float SUSY::CrossSectionDB::xsectTimesEff |
( |
int | id, |
|
|
int | proc = 0 ) const |
|
inline |
◆ m_cache
| xsDB_t SUSY::CrossSectionDB::m_cache |
|
private |
◆ m_extended
| bool SUSY::CrossSectionDB::m_extended |
|
private |
◆ m_pmgxs
◆ m_usePMGTool
| bool SUSY::CrossSectionDB::m_usePMGTool |
|
private |
◆ m_xsectDB
| xsDB_t SUSY::CrossSectionDB::m_xsectDB |
|
private |
The documentation for this class was generated from the following files: