QwAnalysis
MQwF1TDC.cc File Reference
#include "MQwF1TDC.h"
#include "QwColor.h"
#include "QwLog.h"
#include <math.h>
+ Include dependency graph for MQwF1TDC.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const MQwF1TDC &f1tdc)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const MQwF1TDC f1tdc 
)

Definition at line 134 of file MQwF1TDC.cc.

References MQwF1TDC::fF1ChannelAddress, MQwF1TDC::fF1ChannelNumber, MQwF1TDC::fF1ChipAddress, MQwF1TDC::fF1Dataword, MQwF1TDC::fF1FakeDataFlag, MQwF1TDC::fF1HeaderEventNumber, MQwF1TDC::fF1HeaderFlag, MQwF1TDC::fF1HeaderTrigFIFOFlag, MQwF1TDC::fF1HeaderTriggerTime, MQwF1TDC::fF1HeaderXorSetupFlag, MQwF1TDC::fF1HitFIFOFlag, MQwF1TDC::fF1OutputFIFOFlag, MQwF1TDC::fF1ResolutionLockFlag, MQwF1TDC::fF1ROCNumber, and MQwF1TDC::fF1SlotNumber.

135 {
136  if(f1tdc.fF1HeaderFlag) {
137  os << "<<<< Header:";
138  }
139  else {
140  os << ">>>> DATA :";
141  }
142 
143  os << " Ch" << std::setw(3) << f1tdc.fF1ChannelNumber;
144  os << "[" << f1tdc.fF1ChipAddress;
145  os << "," << f1tdc.fF1ChannelAddress;
146  os << "]";
147 
148  if(f1tdc.fF1HeaderFlag) {
149  os << " Xor " << f1tdc.fF1HeaderXorSetupFlag
150  << " tOF " << f1tdc.fF1HeaderTrigFIFOFlag;
151  }
152  else {
153  os << " - DATA "
154  << f1tdc.fF1FakeDataFlag
155  << " - ";
156  }
157 
158  os << "(hitOF,outOF,resLK)("
159  << f1tdc.fF1HitFIFOFlag
160  << f1tdc.fF1OutputFIFOFlag
161  << f1tdc.fF1ResolutionLockFlag
162  << ")";
163  os << " ROC" << std::setw(2) << f1tdc.fF1ROCNumber;
164 
165  Int_t slot = 0;
166  slot = f1tdc.fF1SlotNumber;
167 
168  os << " Slot" << std::setw(2) << slot;
169 
170  if(f1tdc.fF1HeaderFlag) {
171  os << " EvtN" << std::setw(2) << f1tdc.fF1HeaderEventNumber;
172  os << " TriT" << std::setw(4) << f1tdc.fF1HeaderTriggerTime;
173  }
174  else {
175  os << " RawT " << std::setw(10) << f1tdc.fF1Dataword;
176  }
177 
178  if(slot == 0) {
179  os << ": a filler word";
180  }
181  if( (not f1tdc.fF1HeaderFlag) and (f1tdc.fF1FakeDataFlag) ){
182  os << ": --> fake data";
183  }
184 
185  // os << std::endl;
186  return os;
187 }
UInt_t fF1ChannelAddress
Definition: MQwF1TDC.h:158
Bool_t fF1HeaderFlag
Definition: MQwF1TDC.h:148
UInt_t fF1ChannelNumber
Definition: MQwF1TDC.h:156
Bool_t fF1ResolutionLockFlag
Definition: MQwF1TDC.h:152
Bool_t fF1HeaderTrigFIFOFlag
Definition: MQwF1TDC.h:163
UInt_t fF1HeaderEventNumber
Definition: MQwF1TDC.h:164
Bool_t fF1HitFIFOFlag
Definition: MQwF1TDC.h:150
UInt_t fF1ChipAddress
Definition: MQwF1TDC.h:157
Bool_t fF1FakeDataFlag
Definition: MQwF1TDC.h:155
UInt_t fF1SlotNumber
Definition: MQwF1TDC.h:146
UInt_t fF1Dataword
Definition: MQwF1TDC.h:159
Bool_t fF1OutputFIFOFlag
Definition: MQwF1TDC.h:151
UInt_t fF1ROCNumber
Definition: MQwF1TDC.h:145
UInt_t fF1HeaderTriggerTime
Definition: MQwF1TDC.h:165
Bool_t fF1HeaderXorSetupFlag
Definition: MQwF1TDC.h:166