1 #ifndef STAR_JanBprsEveA_H
2 #define STAR_JanBprsEveA_H
6 #include "JanBarrelConst.h"
12 void clear() { chi2=chi2dof=eveID=capID=crateID=-999; raw.Set(0); good.Set(0);
13 bestChi2dof=bestCapID=-888; useFix=
false;
15 int getBestCapID() {
if(useFix)
return bestCapID;
else return capID; }
17 printf(
"BPRS: eveID=%d capID=%d carteID=%d nRaw=%d nGood=%d chi2=%f chi2dof=%f\n",eveID,capID,crateID,raw.GetN(),good.GetN(),chi2,chi2dof);
18 if(bestCapID>=0) printf(
" better capID=%d chi2dof=%f useFix=%d\n", bestCapID,bestChi2dof, useFix);
21 void set(
int cap,
int crate,
int e) { capID=cap; crateID=crate; eveID=e;}
22 void addRawValue(
double id,
float rawAdc) { raw.SetPoint(raw.GetN(),rawAdc,id);}
23 void addGoodValue(
double id,
float rawAdc) { good.SetPoint(good.GetN(),rawAdc,id);}
26 int capID, crateID,eveID,bestCapID, useFix;