|
ATLAS Offline Software
|
Go to the documentation of this file.
18 m_BunchGroupSetId( 0 ),
19 m_LoadCtpFiles( true ),
20 m_LoadCtpcoreFiles( true ),
21 m_LoadCtpinFiles( true ),
22 m_LoadCtpmonFiles( true ),
46 for(
int i=0;
i<4;
i++)
53 cout <<
"Error: Partition " << pss.
partition() <<
" of PrescaleSet " << pss.
name() <<
" is larger than 3" << endl;
66 std::ofstream xmlfile;
69 xmlfile <<
"<?xml version=\"1.0\" ?>" << std::endl;
70 ds->writeXML(xmlfile);
95 cout <<
indent <<
"================================================================================" << endl;
96 cout <<
indent <<
"CTP Configuration";
97 if(
smk()>0) cout <<
" (SMK = " <<
smk() <<
")";
105 cout <<
indent <<
"================================================================================" << endl;
112 std::ofstream xmlfile;
115 xmlfile <<
"<?xml version=\"1.0\"?>" << endl
116 <<
"<LVL1Config name=\"" <<
menu().
name() <<
"\""
118 <<
" l1Version=\"" <<
l1Version() <<
"\""
120 <<
" <!--File is generated by TrigConfReadWrite-->" << endl
122 <<
" <!--No. L1 items defined: " <<
menu().
size() <<
"-->" << endl;
123 writeXML(xmlfile,indentLevel,indentWidth);
124 xmlfile <<
"</LVL1Config>" << endl;
134 if( ! pss.isNull()) {
135 pss.writeXML(xmlfile, indentLevel, indentWidth);
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
unsigned int partition() const
const std::string & name() const
virtual void print(const std::string &indent="", unsigned int detail=1) const override
unsigned int ctpVersion() const
const BunchGroupSet & bunchGroupSet() const
unsigned int m_ctpVersion
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
const Random & random() const
Forward iterator to traverse the main components of the trigger configuration.
bool equals(const CTPConfig *other, const std::string &filename) const
const PrescaledClock & prescaledClock() const
unsigned int l1Version() const
DiffStruct * compareTo(const CTPConfig *o) const
PrescaleSet m_PrescaleSets[4]
unsigned int m_ctpVersion
const PrescaleSet & prescaleSet(unsigned int partition=0) const
virtual void print(const std::string &indent="", unsigned int detail=1) const override
virtual void print(const std::string &indent="", unsigned int detail=1) const override
void setCTPVersion(unsigned int v)
const Menu & menu() const
void setL1Version(unsigned int v)
void writeXML(const std::string &filename, int indentWidth=2) const
constexpr std::enable_if_t< is_bitmask_v< E >, E & > reset(E &lhs, E rhs)
Convenience function to clear bits in a class enum bitmask.
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
std::ostream & indent(std::ostream &o, int lvl, int size) const
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
virtual void print(const std::string &indent="", unsigned int detail=1) const override
void printNameIdV(const std::string &indent="") const
const Muctpi & muCTPi() const
void setPrescaleSet(const PrescaleSet &pss)
virtual ~CTPConfig() override