5 for (
int i = 0;
i < level * 2;
i++)
13 time_t now1 =
time(
nullptr);
14 struct tm*
now = localtime(&now1);
17 strftime(buffer, 1024,
"%Y-%m-%d %H:%M:%S", now);
23 os <<
tabbing(level) <<
"<CFGBrick>" << std::endl;
24 os <<
tabbing(level + 1) <<
"<Parameter name='DCC' type='int'>" <<
std::dec << spigotData->
getDCC() <<
"</Parameter>" 27 <<
"</Parameter>" << std::endl;
29 <<
"</Parameter>" << std::endl;
30 os <<
tabbing(level + 1) <<
"<Parameter name='SLOT' type='int'>" << spigotData->
getSlot() <<
"</Parameter>" 32 os <<
tabbing(level + 1) <<
"<Parameter name='TOPBOTTOM' type='int'>" << spigotData->
getTB() <<
"</Parameter>" 34 os <<
tabbing(level + 1) <<
"<Parameter name='FIBER' type='int'>" << fiber <<
"</Parameter>" << std::endl;
36 int genIndex = fiber + (spigotData->
getTB() * 10) + (spigotData->
getSlot() * 100) + (spigotData->
getCrate() * 10000);
37 os <<
tabbing(level + 1) <<
"<Parameter name='GENERALIZEDINDEX' type='int'>" <<
std::dec << genIndex <<
"</Parameter>" 39 os <<
tabbing(level + 1) <<
"<Parameter name='CREATIONTAG' type='string'>" <<
m_tagName <<
"</Parameter>" 41 os <<
tabbing(level + 1) <<
"<Parameter name='CREATIONSTAMP' type='string'>" <<
m_stamp <<
"</Parameter>" 43 os <<
tabbing(level + 1) <<
"<Parameter name='PATTERN_SPEC_NAME' type='string'>" <<
m_tagName <<
"</Parameter>" 48 os <<
tabbing(level + 1) <<
"<Data elements='1024' encoding='hex'>" << std::endl;
55 for (
int i = 0;
i < 512;
i++) {
57 os << std::hex << w1 <<
' ' << std::hex << w2 <<
' ';
60 os << std::endl <<
tabbing(level + 1) <<
"</Data>" << std::endl;
62 os <<
tabbing(level) <<
"</CFGBrick>" << std::endl;
67 w1 |= (capid & 0x3) << 3;
68 w1 |= (capid & 0x3) << 5;
69 w1 |= (capid & 0x3) << 7;
int getCoded(int bc) const
common ppss p3p6s2 common epss epspn46 common const1 w2
static const char * tabbing(int level)
void packWordsStd(int adc0, int adc1, int adc2, int capid, unsigned int &w1, unsigned int &w2)
ChannelPattern * getPattern(int chan)
void writePattern(HalfHtrData *spigotData, int fiber, std::ostream &os, int level=0)