improved DA
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Feb 2008 20:21:03 +0000 (20:21 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Feb 2008 20:21:03 +0000 (20:21 +0000)
T0/T0Laserda.cxx

index 9827bcb..85b8a2f 100644 (file)
@@ -65,7 +65,7 @@ int main(int argc, char **argv) {
      return -1;
   }
   
-
   FILE *inp;
   char c;
   inp = fopen(FILE_IN, "r");  
@@ -223,31 +223,29 @@ int main(int argc, char **argv) {
       for (Int_t ik = 0; ik<24; ik+=2)
          for (Int_t iHt=0; iHt<5; iHt++){
                 Int_t cc = ik/2;
-               if((allData[cc+1][iHt]-allData[0][0])>0){
-                hCFD[cc]->Fill(allData[cc+1][iHt]-allData[0][0]);
+               if((allData[cc+1][iHt]-allData[0][0]+5000)!=0 && allData[cc+1][iHt]>0){
+                hCFD[cc]->Fill(allData[cc+1][iHt]-allData[0][0]+5000);
                }
                if(allData[ik+25][iHt]!=0 && allData[ik+26][iHt]!=0 && allData[cc+1][iHt]!=0){
-                 hCFD_QTC[cc]->Fill((allData[ik+25][iHt]-allData[ik+26][iHt]) , (allData[cc+1][iHt]-allData[0][0]));
-                } 
+                 hCFD_QTC[cc]->Fill((allData[ik+25][iHt]-allData[ik+26][iHt]) , (allData[cc+1][iHt]-allData[0][0]+5000));
+               } 
                 if(allData[cc+13][iHt]!=0 && allData[cc+1][iHt]!=0){
-                hCFD_LED[cc]->Fill(allData[cc+13][iHt]-allData[cc+1][iHt],allData[cc+1][iHt]-allData[0][0]);
-                }
+                hCFD_LED[cc]->Fill(allData[cc+13][iHt]-allData[cc+1][iHt],allData[cc+1][iHt]-allData[0][0]+5000);
+               }
        }
 
       for (Int_t ik = 24; ik<48; ik+=2)
          for (Int_t iHt=0; iHt<5; iHt++){
                 Int_t cc = ik/2;
-                if((allData[cc+45][iHt]-allData[0][0])>0){
-                 hCFD[cc]->Fill(allData[cc+45][iHt]-allData[0][0]);
+                if((allData[cc+45][iHt]-allData[0][0]+5000)!=0 && allData[cc+45][iHt]>0){
+                 hCFD[cc]->Fill(allData[cc+45][iHt]-allData[0][0]+5000);
                 }
-
-                if(allData[ik+57][iHt]!=0 && allData[ik+58][iHt]!=0){
-                if(allData[cc+45][iHt]!=0)
-                 hCFD_QTC[cc]->Fill(allData[ik+57][iHt]-allData[ik+58][iHt],allData[cc+45][iHt]-allData[0][0]);
-                }
+                if(allData[ik+69][iHt]!=0 && allData[ik+70][iHt]!=0 && allData[cc+45][iHt]!=0){
+                 hCFD_QTC[cc]->Fill(allData[ik+70][iHt]-allData[ik+69][iHt],allData[cc+45][iHt]-allData[0][0]+5000);
+               }
                 if(allData[cc+57][iHt]!=0 && allData[cc+45][iHt]!=0){
-                 hCFD_LED[cc]->Fill(allData[cc+57][iHt]-allData[cc+45][iHt],allData[cc+45][iHt]-allData[0][0]);
-                 }
+                 hCFD_LED[cc]->Fill(allData[cc+57][iHt]-allData[cc+45][iHt],allData[cc+45][iHt]-allData[0][0]+5000);
+                }
        }