X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TOF%2FTOFnoiseda.cxx;h=3d28cd48a96384bc4e33a5d22c34ac8ececbb6f2;hb=e24f582d8d54c004d7b8659a6245abe7a0c2b04a;hp=35d1bed665820c2f428c3103a97473a828b8d078;hpb=67cb6c0212cbcf2548096ad9366ad1ccc5eb5b88;p=u%2Fmrichter%2FAliRoot.git diff --git a/TOF/TOFnoiseda.cxx b/TOF/TOFnoiseda.cxx index 35d1bed6658..3d28cd48a96 100644 --- a/TOF/TOFnoiseda.cxx +++ b/TOF/TOFnoiseda.cxx @@ -207,7 +207,7 @@ int main(int argc, char **argv) { //start decoding if (!rawReader->ReadNext(data, kDataSize)) { rawReader->AddMajorErrorLog(AliTOFRawStream::kDDLdataReading); - printf("Error while reading DDL data. Go to next equipment \n"); + printf("Error while reading DDL data (DDL # %d). Go to next equipment \n",currentDDL); delete [] data; data = 0x0; continue; @@ -294,9 +294,6 @@ int main(int argc, char **argv) { delete rawStreamTOF; rawStreamTOF = 0x0; - delete geom; - geom = 0x0; - Int_t noisyChannels = 0; Int_t checkedChannels = 0; Float_t time = nevents_physics; // acquisition time in number of events @@ -306,20 +303,21 @@ int main(int argc, char **argv) { Float_t cont = htofNoise->GetBinContent(ibin); if (cont!=-1) { checkedChannels++; - //debugging printings - if (debugFlag && cont) printf(" content = %f \n", cont); htofNoise->SetBinContent(ibin,cont/time); //debugging printings - if (debugFlag && cont) printf(" scaled content = %f \n", cont/time); + Int_t volume[5] = {-1,-1,-1,-1,-1}; + geom->GetVolumeIndices(ibin-1,volume); // N.B. the number of the channel correspond to the index of the bin -1 + if (debugFlag && cont) printf(" content for channel corresponding to sector %d, plate %d, strip %d, padz %d, padx %d scaled by the number of events = %f \n", volume[0], volume[1], volume[2], volume[3], volume[4], cont/time); if (cont != 0) noisyChannels++; } } - if (debugFlag) { - printf("Number of checked channels = %i\n",checkedChannels); - printf("Number of noisy channels (before applying threshold) = %i\n",noisyChannels); - } + delete geom; + geom = 0x0; + + printf("Number of checked channels = %i\n",checkedChannels); + printf("Number of noisy channels (before applying threshold) = %i\n",noisyChannels); //write the Run level file char filename[100];