#include <iostream.h>
#include "TFndZebini.h"
#include "TFndCorbo.h"
#include "TFndRawEqp.h"
ClassImp(TFndCorbo);
TFndCorbo::TFndCorbo(){
for (Int_t i=0; i<4; i++) {
trflag[i] = 0;
counts[i] = 0;
deadtime[i] = 0;
}
}
TFndCorbo::~TFndCorbo(){
}
TFndCorbo::TFndCorbo(TFndRawEqp *praw){
Int_t eqpl = praw->GetEqpLen(0);
UInt_t *pcorbo = praw->GetEqp(0);
for (Int_t i=0; i<eqpl/3; i++) {
trflag[i] = *pcorbo++;
counts[i] = *pcorbo++;
deadtime[i] = *pcorbo++;
}
}
TFndCorbo::TFndCorbo(TFndCorbo const& fcorbo) {
for (Int_t i=0; i<4; i++) {
trflag[i] = fcorbo.trflag[i];
counts[i] = fcorbo.counts[i];
deadtime[i] = fcorbo.deadtime[i];
}
}
void TFndCorbo::Print(){
cout << "The CORBO object" << endl;
for(Int_t i=0; i<4; i++) {
cout << "Channel " << i << endl;
cout << " trigger flag " << trflag[i] << endl;
cout << " counts " << counts[i] << endl;
cout << " deadtime " << deadtime[i] << endl;
}
}
Int_t TFndCorbo::GetTrflag(Int_t nch) const {
if(nch>=0 || nch<=3)
return trflag[nch];
else
return -1;
}
Int_t TFndCorbo::GetCounts(Int_t nch) const{
if(nch>=0 || nch<=3)
return counts[nch];
else
return -1;
}
Int_t TFndCorbo::GetDeadtime(Int_t nch) const{
if(nch>=0 || nch<=3)
return deadtime[nch];
else
return -1;
}
/*
void TFndCorbo::MzBook() {
Int_t *lq = &JFRDT;
Int_t *iq = lq+8;
Int_t *q = lq+8;
Int_t jb=-10;
char* chid = "TSVI";
Int_t nl=0;
Int_t ns=0;
Int_t nd=12;
Int_t iod=2;
Int_t nz=0;
Int_t ltsvi=0;
cout << "call MzBook, lq = " << lq << endl;
cout << "lq " << lq << ", iq " << iq << ", q " << q << endl;
mzbook_(&IXDST ,<svi ,&JFGES ,&jb ,&chid ,&nl ,&ns ,&nd ,&iod ,&nz);
for(Int_t i=0;i<4;i++) {
*(iq+ltsvi+i) = trflag[i];
*(iq+ltsvi+4+i) = deadtime[i];
*(iq+ltsvi+8+i) = counts[i];
}
}
*/
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.