FACT++  1.0
void ConnectionFAD::PrintChannelHeaders ( )
inlineprotected

Definition at line 62 of file fadctrl.cc.

References fStartCell, kNumChannelsPerChip, and kNumChips.

63  {
64  Out() << dec << endl;
65 
66  for (unsigned int c=0; c<FAD::kNumChips; c++)
67  {
68  Out() << "ROI|" << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":" << c << ":";
69  for (unsigned int ch=0; ch<FAD::kNumChannelsPerChip; ch++)
70  Out() << " " << setw(4) << fChannelHeader[c+ch*FAD::kNumChips].fRegionOfInterest;
71  Out() << endl;
72  }
73 
74  Out() << "CEL|" << fEventHeader.Crate() << ":" <<fEventHeader.Board() << ": ";
75  for (unsigned int c=0; c<FAD::kNumChips; c++)
76  {
77  if (0)//fIsFullChannelHeader)
78  {
79  for (unsigned int ch=0; ch<FAD::kNumChannelsPerChip; ch++)
80  Out() << " " << setw(4) << fChannelHeader[c+ch*FAD::kNumChips].fStartCell;
81  Out() << endl;
82  }
83  else
84  {
85  Out() << " ";
86  const uint16_t cel = fChannelHeader[c*FAD::kNumChannelsPerChip].fStartCell;
87  for (unsigned int ch=1; ch<FAD::kNumChannelsPerChip; ch++)
88  if (cel!=fChannelHeader[c+ch*FAD::kNumChips].fStartCell)
89  {
90  Out() << "!";
91  break;
92  }
93  Out() << cel;
94  }
95  }
96  Out() << endl;
97 
98  if (fIsHexOutput)
99  Out() << Converter::GetHex<uint16_t>(fChannelHeader, 16) << endl;
100 
101  }
FAD::ChannelHeader fChannelHeader[FAD::kNumChannels]
Definition: fadctrl.cc:40
std::ostream & Out()
Definition: Connection.h:51
uint16_t fStartCell
Definition: HeadersFAD.h:94
FAD::EventHeader fEventHeader
Definition: fadctrl.cc:39
bool fIsHexOutput
Definition: fadctrl.cc:44