]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
max events 1000 will be processed
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Jul 2008 15:35:42 +0000 (15:35 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Jul 2008 15:35:42 +0000 (15:35 +0000)
PMD/PMDPEDESTALda.cxx

index 91ada1ff23033cebdfead9682f11d68015c19f6f..d2d0fbc459322ddab86d16e826a95b438e897f42 100644 (file)
@@ -134,7 +134,6 @@ int main(int argc, char **argv) {
                break;
                
            case PHYSICS_EVENT:
-             //if(iev%100 == 0)printf(" event number = %i \n",iev);
 
                AliRawReader *rawReader = new AliRawReaderDate((void*)event);
                TObjArray *pmdddlcont = new TObjArray();
@@ -151,6 +150,16 @@ int main(int argc, char **argv) {
        
        /* exit when last event received, no need to wait for TERM signal */
 
+       // either END_OF_RUN or 1000 events
+
+       if (iev == 1000)
+         {
+           printf("-- 1000 pedestal events processed : terminating --\n");
+           printf("-- eventT is set to END_OF_RUN --\n");
+           eventT = END_OF_RUN;
+           break;
+         }
+
     }
 
     printf(" Total number of events processed = %i \n",iev);