46 for(
int i=0; i<4; i++)
53 cout <<
"Error: Partition " << pss.
partition() <<
" of PrescaleSet " << pss.
name() <<
" is larger than 3" << endl;
69 xmlfile <<
"<?xml version=\"1.0\" ?>" << std::endl;
81 ds->check(
"name",
name(), o->
name());
95 cout <<
indent <<
"================================================================================" << endl;
96 cout <<
indent <<
"CTP Configuration";
97 if(
smk()>0) cout <<
" (SMK = " <<
smk() <<
")";
105 cout <<
indent <<
"================================================================================" << endl;
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;
124 xmlfile <<
"</LVL1Config>" << endl;
134 if( ! pss.isNull()) {
135 pss.writeXML(
xmlfile, indentLevel, indentWidth);
virtual void print(const std::string &indent="", unsigned int detail=1) const override
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
const PrescaledClock & prescaledClock() const
unsigned int ctpVersion() const
virtual ~CTPConfig() override
const Random & random() const
unsigned int l1Version() const
void setPrescaleSet(const PrescaleSet &pss)
const BunchGroupSet & bunchGroupSet() const
virtual void print(const std::string &indent="", unsigned int detail=1) const override
PrescaleSet m_PrescaleSets[4]
const Menu & menu() const
const Muctpi & muCTPi() const
const PrescaleSet & prescaleSet(unsigned int partition=0) const
void writeXML(const std::string &filename, int indentWidth=2) const
void setL1Version(unsigned int v)
DiffStruct * compareTo(const CTPConfig *o) const
unsigned int m_ctpVersion
void setCTPVersion(unsigned int v)
bool equals(const CTPConfig *other, const std::string &filename) const
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
unsigned int partition() 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
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
unsigned int m_ctpVersion
std::ostream & indent(std::ostream &o, int lvl, int size) const
const std::string & name() const
void printNameIdV(const std::string &indent="") const
static std::vector< std::string > xmlfile
Forward iterator to traverse the main components of the trigger configuration.