//
for(Int_t iqual =0; iqual<3; iqual++) fGeneralThresholds[iqual] =foan.fGeneralThresholds[iqual];
- for (UInt_t chipNr=0; chipNr<11; chipNr++) {
+ for (UInt_t chipNr=0; chipNr<10; chipNr++) {
for (UInt_t hs=0; hs<6; hs++) {
for(Int_t i=0; i<kNqualityFlags;i++) fNh[i][hs][chipNr]=NULL;
}
//
for (UInt_t hs=0; hs<6; hs++) {
- for (UInt_t chipNr=0; chipNr<11; chipNr++) {
+ for (UInt_t chipNr=0; chipNr<10; chipNr++) {
for(Int_t i=0; i<kNqualityFlags ; i++ ) if(fNh[i][hs][chipNr]!=NULL) delete fNh[i][hs][chipNr];
}
}
// assignment operator, only copies the filename and params (not the processed data)
if (this!=&foan) {
for (UInt_t hs=0; hs<6; hs++) {
- for (UInt_t chipNr=0; chipNr<11; chipNr++) {
+ for (UInt_t chipNr=0; chipNr<10; chipNr++) {
for(Int_t i=0; i<kNqualityFlags ; i++ ) if(fNh[i][hs][chipNr]!=NULL) delete fNh[i][hs][chipNr];
}
}
}
TKey *key;
- Double_t *dacvalues;
TIter iter((fFOHandler->GetFile())->GetListOfKeys());
while ((key = (TKey*)(iter.Next()))) {
TString classname = key->GetClassName();
break;
}
- dacvalues = fFOHandler->GetDACvaluesD(key->GetName(), GetFOHandler()->GetFOscanInfo()->GetNumDACindex());
+ Double_t *dacvalues = fFOHandler->GetDACvaluesD(key->GetName(), GetFOHandler()->GetFOscanInfo()->GetNumDACindex());
for(Int_t i=0; i< array->GetSize(); i++){
AliITSOnlineSPDfoChip *chip = (AliITSOnlineSPDfoChip *)array->At(i);
if(!fNh[quality][hs][chipid]) BuildTHnSparse(hs,chipid);
fNh[quality][hs][chipid]->Fill(dacvalues);
}
+
+ if(dacvalues) delete [] dacvalues;
}
}
//---------------------------------------------
TH2D *h2=0x0;
if(idim == 0) {
h1 = hn->Projection(k-1);
- if(!h1) printf("no histogram!!...\n\n\n");
+ if(!h1) {
+ printf("no histogram!!...\n\n\n");
+ } else {
h1->SetXTitle(Form("DAC %i ( %s )",k-1,dacname[k-1].Data()));
h1->SetYTitle("entries (eff within thresholds)");
h1->Draw();
+ }
}
if(idim==1) {