if(digit)
totalEnergy+=energy[i] ;
}
- if(!fMode || (oldTotalEnergy != 0) &&
- (TMath::Abs(oldTotalEnergy - totalEnergy)/oldTotalEnergy < fPrecBg))
+ if(!fMode || ((oldTotalEnergy != 0) &&
+ (TMath::Abs(oldTotalEnergy - totalEnergy)/oldTotalEnergy < fPrecBg)))
break ;
}
}
}
-TTreeStream &TTreeStream::operator<<(Char_t *name)
+TTreeStream &TTreeStream::operator<<(const Char_t *name)
{
//
// Endl
TTreeStream &operator<<(Float_t &f){CheckIn('F',&f);return *this;}
TTreeStream &operator<<(Double_t &d){CheckIn('D',&d);return *this;}
TTreeStream &operator<<(TObject*o){CheckIn(o);return *this;}
- TTreeStream &operator<<(Char_t *name);
+ TTreeStream &operator<<(const Char_t *name);
protected:
//
fCurrentCol = -1;
fCurrentIndex = -1;
Int_t i;
- for (i=0; (( i<fNelems) && (fElements->At(i)<=fThreshold));i++); //MI1211
+ for (i=0; (( i<fNelems) && (fElements->At(i)<=fThreshold));i++) {} //MI1211
if (i == fNelems) return kFALSE;
fCurrentCol =i/fNrows;
fCurrentRow =i%fNrows;
//
if (fCurrentIndex<0) return kFALSE; // if we didn't adjust first
Int_t i;
- for (i=fCurrentIndex+1; ( (i<fNelems) && (fElements->At(i)<=fThreshold) ) ;i++);
+ for (i=fCurrentIndex+1; ( (i<fNelems) && (fElements->At(i)<=fThreshold) ) ;i++) {}
if (i >= fNelems) {
fCurrentIndex = -1;
return kFALSE;
fSegment->Delete();
delete fSegment;
}
- if (fTree)
+ if (fTree) {
if (fTreeOwner) delete fTree;
- else fTree->Reset();
+ else fTree->Reset();}
if (fTreeIndex) delete fTreeIndex;
// if (fClass!=0) delete fClass;
{
// AliSegmentID segment;
AliSegmentID * psegment = NewSegment();
- if (fTree)
+ if (fTree) {
if (fTreeOwner)
{
delete fTree;
fTree = new TTree("Segment Tree","Tree with segments");
}
- else fTree->Reset();
+ else fTree->Reset();}
//PH fBranch = fTree->Branch("Segment",psegment->IsA()->GetName(),&psegment,64000);
TH2S* GetHistoT0 (Int_t sector, Bool_t force=kFALSE); // get refernce histogram
TH2S* GetHistoRMS(Int_t sector, Bool_t force=kFALSE); // get refernce histogram
- const Float_t GetMeanT0rms() {return fMeanT0rms;}
- const Float_t GetMeanQrms() {return fMeanQrms;}
- const Float_t GetMeanRMSrms() {return fMeanRMSrms;}
-
- const Int_t GetPeakDetectionMinus(){return fPeakMinus;}
- const Int_t GetPeakDetectionPlus(){return fPeakPlus;}
- const Float_t GetNnoiseThresholdMax() {return fNoiseThresholdMax;}
- const Float_t GetNnoiseThresholdSum() {return fNoiseThresholdSum;}
+ Float_t GetMeanT0rms() const {return fMeanT0rms;}
+ Float_t GetMeanQrms() const {return fMeanQrms;}
+ Float_t GetMeanRMSrms() const {return fMeanRMSrms;}
+
+ Int_t GetPeakDetectionMinus() const {return fPeakMinus;}
+ Int_t GetPeakDetectionPlus() const {return fPeakPlus;}
+ Float_t GetNnoiseThresholdMax() const {return fNoiseThresholdMax;}
+ Float_t GetNnoiseThresholdSum() const {return fNoiseThresholdSum;}
TH1S* GetHistoTmean(Int_t sector, Bool_t force=kFALSE); // get refernce histogram
if(s1=="all"){ fComponents[j] = -1; }
else { fComponents[j] = (int)atoi(s1.Data()); }
if(
- j==0 && (fComponents[j] < -1 || fComponents[j]>5000) ||
- j==1 && (fComponents[j] < -1 || fComponents[j]>5 ) ||
- j==2 && (fComponents[j] < -1 || fComponents[j]>1 ) ||
- j==3 && (fComponents[j] < -1 || fComponents[j]>25 ) ||
- j==4 && (fComponents[j] < -1 || fComponents[j]>6 ) ||
- j==5 && (fComponents[j] < -1 || fComponents[j]>8 ) )
+ (j==0 && (fComponents[j] < -1 || fComponents[j]>5000)) ||
+ (j==1 && (fComponents[j] < -1 || fComponents[j]>5 )) ||
+ (j==2 && (fComponents[j] < -1 || fComponents[j]>1 )) ||
+ (j==3 && (fComponents[j] < -1 || fComponents[j]>25 )) ||
+ (j==4 && (fComponents[j] < -1 || fComponents[j]>6 )) ||
+ (j==5 && (fComponents[j] < -1 || fComponents[j]>8 )) )
{
compsel =0;
AliError("Settings out of range ( version 2) ");
xyz[1]=y1;
xyz[2]=fZLength-xyz[2];
if (index[1]<fNInnerSector)
- if ( index[1]>=(fNInnerSector>>1)) xyz[2]*=-1.;
+ {if ( index[1]>=(fNInnerSector>>1)) xyz[2]*=-1.;}
else
- if ( (index[1]-fNInnerSector) >= (fNOuterSector>>1) ) xyz[2]*=-1;
+ {if ( (index[1]-fNInnerSector) >= (fNOuterSector>>1) ) xyz[2]*=-1;}
index[0]=1;
}
// , *fDataWord, fSM, fLAYER, fSTACK, fSIDE+10
// , fTracklPadRow, fTracklPadPos, fTracklDefL, fTracklPID));
- if( (fSTACK == 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC0()) ||
- (fSTACK != 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC1()) ) {
+ if( ((fSTACK == 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC0())) ||
+ ((fSTACK != 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC1())) ) {
AliWarning(Form("Strange Row read from Tracklet Word: %d", fTracklPadRow));
fRawReader->AddMajorErrorLog(kTrackletRowMismatch,Form("Word: %d", fTracklPadRow));
}
// , *fDataWord, fSM, fLAYER, fSTACK, fSIDE+10
// , fTracklPadRow, fTracklPadPos, fTracklDefL, fTracklPID));
- if( (fSTACK == 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC0()) ||
- (fSTACK != 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC1()) ) {
+ if( ((fSTACK == 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC0())) ||
+ ((fSTACK != 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC1())) ) {
AliWarning(Form("Strange Row read from Tracklet Word: %d", fTracklPadRow));
fRawReader->AddMajorErrorLog(kTrackletRowMismatch,Form("Word: %d", fTracklPadRow));
}
AliTRDalignment *alignment = (AliTRDalignment*) gMinuit->GetObjectFit();
f = alignment->SurveyChi2(par);
- if (iflag==3);
- if (npar);
- if (g); // no warnings about unused stuff...
+ if (iflag==3) {}
+ if (npar) {}
+ if (g) {} // no warnings about unused stuff...
}
Int_t i;
for (i = fCurrentIndex + 1;
((i < fNelems) && (fElements->At(i) <= fThreshold));
- i++);
+ i++) {}
if (i >= fNelems) {
fCurrentIndex = -1;
return kFALSE;
Int_t i;
for (i = fCurrentIndex + 1;
((i < fNelems) && (fElements->At(i) <= fThreshold));
- i++);
+ i++) {}
if (i >= fNelems) {
fCurrentIndex = -1;
return kFALSE;
Int_t i;
for (i = fCurrentIndex + 1;
((i < fNelems) && (fElements->At(i) <= fThreshold));
- i++);
+ i++) {}
if (i >= fNelems) {
fCurrentIndex = -1;
return kFALSE;
// get detector for this tracklet
AliTRDcluster *cl = 0x0;
- Int_t ic = 0; do; while(!(cl = tracklet->GetClusters(ic++)));
+ Int_t ic = 0; do {} while(!(cl = tracklet->GetClusters(ic++)));
Int_t idet = cl->GetDetector();
Double_t local[3];
AliCluster* GetCluster(Int_t index) const;
AliTRDseedV1* GetTracklet(Int_t index) const;
AliKalmanTrack* GetTrack(Int_t index) const;
- TClonesArray* GetListOfClusters() {return fClusters;}
- TClonesArray* GetListOfTracklets() {return fTracklets;}
- TClonesArray* GetListOfTracks() {return fTracks;}
- static const Int_t GetNTimeBins() {return fgNTimeBins;}
+ TClonesArray* GetListOfClusters() const {return fClusters;}
+ TClonesArray* GetListOfTracklets() const {return fTracklets;}
+ TClonesArray* GetListOfTracks() const {return fTracks;}
+ static Int_t GetNTimeBins() {return fgNTimeBins;}
static void GetExtrapolationConfig(Int_t iconfig, Int_t planes[2]);
static void GetSeedingConfig(Int_t iconfig, Int_t planes[4]);
static TLinearFitter* GetTiltedRiemanFitter();
\r
//setting fValue to maximum; first was to big\r
fValue = fuRestriction;\r
- fValue = fValue & LUT(exponent)-1;\r
+ fValue = fValue & (LUT(exponent)-1);\r
return *this;\r
}\r
\r
\r
//setting fValue to minimum; first was to small\r
fValue = flRestriction;\r
- fValue = fValue & LUT(exponent)-1;\r
+ fValue = fValue & (LUT(exponent)-1);\r
return *this;\r
}\r
\r
\r
fValue = first;\r
fValue = fValue<<fPostCom; \r
- fValue = fValue & LUT(exponent)-1;\r
+ fValue = fValue & (LUT(exponent)-1);\r
\r
return *this;\r
\r
}
if(trkInf->GetNTrackRefs()){
Int_t iref = 0;
- while(!(trackRef = trkInf->GetTrackRef(iref++)));
+ while(!(trackRef = trkInf->GetTrackRef(iref++))) {}
}
if(!trackRef) printf("Error: Track Reference missing for Track %d\n", trkInf->GetLabel());
mom = trackRef ? trackRef->P() : trkInf->GetOuterParam()->P();