22 fIsDecoded(false), fFirstTime(true), fDeltaT(0.0),
23 fClockChan(0), fNumChanMask(0), fNumChanShift(0),
24 fHasClock(false), fClockRate(0), fNormScaler(nullptr),
25 firsttime(true), firstwarn(true)
77 cout <<
"GenScaler:: WARNING: Declaring this object to have"<<endl;
78 cout <<
" a clock even though this also has a normalization scaler ?"<<endl;
79 cout <<
" This makes no sense. "<<endl;
85 cout <<
"GenScaler:: ERROR: clock channel out of range "<<endl;
94 if (fClockRate <= 0 && retcode>=0) retcode=2;
96 cout <<
"GenScaler:: Warning: using default deltaT = "<<
fDeltaT<<endl;
98 if (retcode == 0) cout <<
"GetScaler:: Warning:: no deltaT nor clockrate define for this scaler "<<endl;
104 cout <<
"GenScaler:: WARNING: loading norm scaler although this"<<endl;
105 cout <<
" object has a clock ? This makes no sense. "<<endl;
108 cout <<
"GenScaler:: ERROR: attempting to load a non-existent "<<endl;
109 cout <<
"normalization scaler !" <<endl;
125 if ( !
IsSlot(*evbuffer) )
return nfound;
148 *
fDebugFile <<
"Into GetTimeSincePrev "<<endl;
184 fRate[i] = diff/dtime;
206 cout <<
"GenScaler:: crate "<<
fCrate<<
" slot "<<
fSlot<<endl;
208 cout <<
"GenScaler:: fNumChanMask = "<< hex<<
fNumChanMask<<dec<<endl;
209 cout <<
"GenScaler:: fNumChanShift = "<< hex<<
fNumChanShift<<dec<<endl;
211 if (
fHasClock) cout <<
"Has a clock"<<endl;
225 *
file<<
"Data now // previous // rate "<<endl;
244 cout <<
"Warning::GenScaler:: (" <<
fCrate <<
"," <<
fSlot
256 cout <<
"GenScaler:: ERROR: (" <<
fCrate <<
"," <<
fSlot <<
") "
257 <<
"inconsistent number of chan." << endl;
273 if (!
fHeader) cerr <<
"GenScaler::LoadSlot::ERROR : no header ?"<<endl;
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Double_t GetRate(UInt_t chan) const
static const UInt_t fgNumChanDefault
Bool_t checkchan(UInt_t chan) const
Double_t GetTimeSincePrev() const
void DebugPrint(std::ofstream *file=nullptr) const
virtual void DoPrint() const
virtual void Clear(Option_t *opt="")
Int_t SetClock(Double_t deltaT, UInt_t clockchan=0, Double_t clockrate=0)
std::vector< Double_t > fRate
std::vector< UInt_t > fPrevData
void LoadNormScaler(GenScaler *scal)
virtual void SetBank(Int_t bank)
virtual Bool_t IsSlot(UInt_t rdata)
virtual Int_t Decode(const UInt_t *evbuffer)
std::vector< UInt_t > fDataArray
virtual UInt_t GetData(UInt_t chan) const
virtual UInt_t LoadSlot(THaSlotData *sldat, const UInt_t *evbuffer, const UInt_t *pstop)
std::ofstream * fDebugFile
Int_t loadData(const char *type, UInt_t chan, UInt_t dat, UInt_t raw)
void Clear(Option_t *option="") override