void DoCorrSin(Bool_t doCorrSin ){fgDoCorrSin=doCorrSin;} // Set sinoidal correction
void SetX (Double_t x ){fXX=x;} // Setter
void SetY (Double_t y ){fYY=y;} // Setter
+ void SetQ (Double_t q ){fQ=q;if(fQ>4095)fQ=4095;} // Setter
+ void SetQRaw (Double_t qRaw ){fQRaw=qRaw;if(fQRaw>4095)fQRaw=4095;} // Setter
void SetSize (Int_t size ){fSi=size;} // Setter
+ void SetCh (Int_t chamber ){fCh=chamber;} // Setter
+ void SetChi2 (Double_t chi2 ){fChi2=chi2;} // Setter
+ void SetSt (Double_t st ){fSt=st;} // Setter
void FindClusterSize(Int_t i,Int_t *pSigmaCut); //Find the clusterSize of deconvoluted clusters
virtual void Clear(const Option_t*) { delete [] fDigs; fDigs=0; delete [] fParam; fParam=0; }
x1=x2=-b/(2*a);
return 1;
}
+ if(a==0) {
+ x1 = -c/b;
+ return 1;
+ }
// delta>0
x1 = (-b+TMath::Sqrt(delta))/(2*a);
x2 = (-b-TMath::Sqrt(delta))/(2*a);
Double_t chi2 = 0;
for(Int_t i=0;i<nPhiBins;i++) {
Double_t theo = (Double_t)npeff/(Double_t)nPhiBins;
+ if(theo==0) continue;
chi2+= (iPhiBin[i] - theo)*(iPhiBin[i] - theo)/theo;
}