]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/ITSSDDGAINda.cxx
correct check for regular high and low gain channels
[u/mrichter/AliRoot.git] / ITS / ITSSDDGAINda.cxx
index 132cfc90e954f2c6d861c741c2952ea675664fb9..56ddceeb0dff0f973e1ffacce282bbd1e6c65d4d 100644 (file)
@@ -74,8 +74,6 @@ int main(int argc, char **argv) {
   }
 
 
-  Int_t eqOffset = 256;
-  Int_t DDLrange = 24;
   Int_t maxNEvents=15; // maximum number of events to be analyzed
   const Int_t kTotDDL=24;
   const Int_t kModPerDDL=12;
@@ -156,7 +154,6 @@ int main(int argc, char **argv) {
       case PHYSICS_EVENT: // uncomment this line for test raw data
        printf(" event number = %i \n",iev);
        AliRawReader *rawReader = new AliRawReaderDate((void*)event);
-       rawReader->SelectEquipment(17,eqOffset+1,eqOffset+DDLrange);
 
        Int_t evtyp=0;
        while(rawReader->ReadHeader()){
@@ -178,7 +175,9 @@ int main(int argc, char **argv) {
        while(s.Next()){
          Int_t iDDL=rawReader->GetDDLID();
          Int_t iCarlos=s.GetCarlosId();
-         if(iDDL>=0 && iDDL<kTotDDL && s.IsCompletedModule()==kFALSE){ 
+         if(s.IsCompletedModule()) continue;
+         if(s.IsCompletedDDL()) continue;
+         if(iDDL>=0 && iDDL<kTotDDL){ 
            Int_t index=kSides*(kModPerDDL*iDDL+iCarlos)+s.GetChannel(); 
            histo[index]->Fill(s.GetCoord2(),s.GetCoord1(),s.GetSignal());
            isFilled[index]=1;