#include <HtrXmlPatternWriter.h>
|
void | packWordsStd (int adc0, int adc1, int adc2, int capid, unsigned int &w1, unsigned int &w2) |
|
Definition at line 7 of file HtrXmlPatternWriter.h.
HtrXmlPatternWriter::HtrXmlPatternWriter |
( |
| ) |
|
void HtrXmlPatternWriter::packWordsStd |
( |
int |
adc0, |
|
|
int |
adc1, |
|
|
int |
adc2, |
|
|
int |
capid, |
|
|
unsigned int & |
w1, |
|
|
unsigned int & |
w2 |
|
) |
| |
|
private |
void HtrXmlPatternWriter::setTagName |
( |
std::string |
tn | ) |
|
|
inline |
void HtrXmlPatternWriter::writePattern |
( |
HalfHtrData * |
spigotData, |
|
|
int |
fiber, |
|
|
std::ostream & |
os, |
|
|
int |
level = 0 |
|
) |
| |
Definition at line 22 of file HtrXmlPatternWriter.cc.
References TauDecayModes::dec, ChannelPattern::getCoded(), HalfHtrData::getCrate(), HalfHtrData::getDCC(), HalfHtrData::getPattern(), HalfHtrData::getSlot(), HalfHtrData::getSpigot(), HalfHtrData::getTB(), i, m_stamp, m_tagName, p1, p2, p3, packWordsStd(), tabbing(), and w2.
Referenced by HtrXmlPatternTool::writeXML().
25 os <<
tabbing(
level+1) <<
"<Parameter name='DCC' type='int'>" <<
std::dec << spigotData->
getDCC() <<
"</Parameter>" << std::endl;
28 os <<
tabbing(
level+1) <<
"<Parameter name='SLOT' type='int'>" << spigotData->
getSlot() <<
"</Parameter>" << std::endl;
29 os <<
tabbing(
level+1) <<
"<Parameter name='TOPBOTTOM' type='int'>" << spigotData->
getTB() <<
"</Parameter>" << std::endl;
30 os <<
tabbing(
level+1) <<
"<Parameter name='FIBER' type='int'>" << fiber <<
"</Parameter>" << std::endl;
32 int genIndex=fiber+(spigotData->
getTB()*10)+(spigotData->
getSlot()*100)+(spigotData->
getCrate()*10000);
33 os <<
tabbing(
level+1) <<
"<Parameter name='GENERALIZEDINDEX' type='int'>" <<
std::dec << genIndex <<
"</Parameter>" << std::endl;
34 os <<
tabbing(
level+1) <<
"<Parameter name='CREATIONTAG' type='string'>" <<
m_tagName <<
"</Parameter>" << std::endl;
35 os <<
tabbing(
level+1) <<
"<Parameter name='CREATIONSTAMP' type='string'>" <<
m_stamp <<
"</Parameter>" << std::endl;
36 os <<
tabbing(
level+1) <<
"<Parameter name='PATTERN_SPEC_NAME' type='string'>" <<
m_tagName <<
"</Parameter>" << std::endl;
41 os <<
tabbing(
level+1) <<
"<Data elements='1024' encoding='hex'>" << std::endl;
49 for (
int i=0;
i<512;
i++) {
51 os << std::hex << w1 <<
' ' << std::hex << w2 <<
' ';
54 os << std::endl <<
tabbing(
level+1) <<
"</Data>" << std::endl;
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)
std::string HtrXmlPatternWriter::m_stamp |
|
private |
std::string HtrXmlPatternWriter::m_tagName |
|
private |