#include <Random.h>
|
| std::ostream & | indent (std::ostream &o, int lvl, int size) const |
◆ Random()
Definition at line 12 of file Random.cxx.
15 "Random2", "Random3" },
16 m_cuts{ 0xffffff, 0xffffff, 0xffffff,
17 0xffffff }
18{}
◆ ~Random()
| virtual TrigConf::Random::~Random |
( |
| ) |
|
|
overridevirtualdefault |
◆ __str__()
| string TrigConfData::__str__ |
( |
| ) |
const |
|
virtualinherited |
◆ comment()
| const std::string & TrigConf::TrigConfData::comment |
( |
| ) |
const |
|
inlineinherited |
◆ cuts()
| uint32_t TrigConf::Random::cuts |
( |
unsigned int | idx | ) |
const |
|
inline |
◆ getRateFromCut()
| float Random::getRateFromCut |
( |
unsigned int | idx | ) |
const |
Definition at line 21 of file Random.cxx.
21 {
23 float ucut = abs(cut);
24 return ( 0x1000000 / ( ucut + 1 ) );
25}
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
◆ id()
| unsigned int TrigConf::TrigConfData::id |
( |
| ) |
const |
|
inlineinherited |
◆ indent()
| std::ostream & TrigConfData::indent |
( |
std::ostream & | o, |
|
|
int | lvl, |
|
|
int | size ) const |
|
protectedinherited |
Definition at line 23 of file TrigConfData.cxx.
23 {
25 if(
width==0)
return o;
26 o << setw(lvl*size) << " ";
27 return o;
28}
◆ lvl1MasterTableId()
| unsigned int TrigConf::L1DataBaseclass::lvl1MasterTableId |
( |
| ) |
const |
|
inlineinherited |
◆ name()
| const std::string & TrigConf::TrigConfData::name |
( |
| ) |
const |
|
inlineinherited |
◆ print()
| void Random::print |
( |
const std::string & | indent = "", |
|
|
unsigned int | detail = 1 ) const |
|
overridevirtual |
Implements TrigConf::TrigConfData.
Definition at line 28 of file Random.cxx.
28 {
29 if(detail>=1) {
31 if(detail>=2) {
32 if(
m_cuts[0]!=0xffffffff ||
36 {
37 for(
int i=0;
i<4;
i++) {
39 }
40 } else {
43 }
44 }
45 }
46}
static double getPrescaleFromCut(int32_t cut)
prescale = 2*24/(cut+1.)
std::ostream & indent(std::ostream &o, int lvl, int size) const
void printNameIdV(const std::string &indent="") const
◆ printNameIdV()
| void TrigConfData::printNameIdV |
( |
const std::string & | indent = "" | ) |
const |
|
inherited |
Definition at line 31 of file TrigConfData.cxx.
31 {
34 cout <<
" (id=" <<
id() <<
"/v=" <<
version() <<
")";
35 cout << endl;
38}
const std::string & name() const
const std::string & comment() const
unsigned int version() const
◆ rate1()
| int TrigConf::Random::rate1 |
( |
| ) |
const |
|
inline |
◆ rate2()
| int TrigConf::Random::rate2 |
( |
| ) |
const |
|
inline |
◆ rndmName()
| const std::string & TrigConf::Random::rndmName |
( |
unsigned int | idx | ) |
const |
|
inline |
◆ setComment()
| void TrigConf::TrigConfData::setComment |
( |
const std::string & | c | ) |
|
|
inlineinherited |
◆ setCut()
| void TrigConf::Random::setCut |
( |
uint32_t | idx, |
|
|
uint32_t | cut ) |
|
inline |
◆ setId()
| void TrigConf::TrigConfData::setId |
( |
unsigned int | id | ) |
|
|
inlineinherited |
◆ setLvl1MasterTableId()
| void TrigConf::L1DataBaseclass::setLvl1MasterTableId |
( |
unsigned int | id | ) |
|
|
inlineinherited |
◆ setName()
| void TrigConf::TrigConfData::setName |
( |
const std::string & | name | ) |
|
|
inlineinherited |
◆ setRate1()
| void TrigConf::Random::setRate1 |
( |
int | rate | ) |
|
|
inline |
◆ setRate2()
| void TrigConf::Random::setRate2 |
( |
int | rate | ) |
|
|
inline |
◆ setRndmName()
| void TrigConf::Random::setRndmName |
( |
uint32_t | idx, |
|
|
const std::string & | name ) |
|
inline |
◆ setSMK()
| void TrigConf::TrigConfData::setSMK |
( |
int | id | ) |
|
|
inlineinherited |
◆ setSuperMasterTableId()
| void TrigConf::TrigConfData::setSuperMasterTableId |
( |
int | id | ) |
|
|
inlineinherited |
◆ setVersion()
| void TrigConf::TrigConfData::setVersion |
( |
unsigned int | version | ) |
|
|
inlineinherited |
◆ smk()
| unsigned int TrigConf::TrigConfData::smk |
( |
| ) |
const |
|
inlineinherited |
◆ superMasterTableId()
| int TrigConf::TrigConfData::superMasterTableId |
( |
| ) |
const |
|
inlineinherited |
◆ version()
| unsigned int TrigConf::TrigConfData::version |
( |
| ) |
const |
|
inlineinherited |
◆ writeXML()
| void Random::writeXML |
( |
std::ostream & | xmlfile, |
|
|
int | indentLevel = 0, |
|
|
int | indentWidth = 2 ) const |
|
virtual |
Definition at line 49 of file Random.cxx.
49 {
50 if(
m_cuts[0]!=0xffffffff ||
54 {
56 << "<Random "
57 <<
"name0=\""<<
m_names[0] <<
"\" cut0=\"" <<
m_cuts[0] <<
"\" "
58 <<
"name1=\""<<
m_names[1] <<
"\" cut1=\"" <<
m_cuts[1] <<
"\" "
59 <<
"name2=\""<<
m_names[2] <<
"\" cut2=\"" <<
m_cuts[2] <<
"\" "
60 <<
"name3=\""<<
m_names[3] <<
"\" cut3=\"" <<
m_cuts[3] <<
"\"/>" << endl;
61 } else {
63 <<
"<Random name=\"" <<
name() <<
"\" rate1=\"" <<
m_rate1
65 << "\" seed1=\"1\" seed2=\"1\"/>" << endl;
66 }
67}
static std::vector< std::string > xmlfile
◆ m_comment
| std::string TrigConf::TrigConfData::m_comment |
|
privateinherited |
◆ m_cuts
| uint32_t TrigConf::Random::m_cuts[4] |
|
private |
◆ m_id
| unsigned int TrigConf::TrigConfData::m_id |
|
privateinherited |
◆ m_Lvl1MasterId
| unsigned int TrigConf::L1DataBaseclass::m_Lvl1MasterId |
|
privateinherited |
◆ m_name
| std::string TrigConf::TrigConfData::m_name |
|
privateinherited |
◆ m_names
| std::string TrigConf::Random::m_names[4] |
|
private |
◆ m_rate1
| int TrigConf::Random::m_rate1 |
|
private |
◆ m_rate2
| int TrigConf::Random::m_rate2 |
|
private |
◆ m_smk
| unsigned int TrigConf::TrigConfData::m_smk |
|
privateinherited |
◆ m_version
| unsigned int TrigConf::TrigConfData::m_version |
|
privateinherited |
The documentation for this class was generated from the following files: