]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix indentations, open trigger cluster at BC=0 time window definition
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Jun 2013 16:48:49 +0000 (16:48 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Jun 2013 16:48:49 +0000 (16:48 +0000)
PWG/CaloTrackCorrBase/AliAnaCaloTrackCorrMaker.cxx
PWG/CaloTrackCorrBase/AliCaloTrackReader.cxx

index 55c3d104da6bf814b96cdc5521be95d883be0649..980be8669867a710b34fef25ab624a93a6c98de2 100755 (executable)
@@ -183,20 +183,20 @@ void    AliAnaCaloTrackCorrMaker::AddAnalysis(TObject* ana, Int_t n)
 TList * AliAnaCaloTrackCorrMaker::FillAndGetAODBranchList()
 { 
        
-       // Get any new output AOD branches from analysis and put them in a list
-       // The list is filled in the maker, and new branch passed to the analysis frame
-       // AliAnalysisTaskCaloTrackCorrelation
+  // Get any new output AOD branches from analysis and put them in a list
+  // The list is filled in the maker, and new branch passed to the analysis frame
+  // AliAnalysisTaskCaloTrackCorrelation
   
-       TList *aodBranchList = fReader->GetAODBranchList() ;
+  TList *aodBranchList = fReader->GetAODBranchList() ;
+  
+  for(Int_t iana = 0; iana <  fAnalysisContainer->GetEntries(); iana++)
+    {
+      AliAnaCaloTrackCorrBaseClass * ana =  ((AliAnaCaloTrackCorrBaseClass *) fAnalysisContainer->At(iana)) ;
+      if(ana->NewOutputAOD()) aodBranchList->Add(ana->GetCreateOutputAODBranch());
+    }
+  
+  return aodBranchList ;
   
-       for(Int_t iana = 0; iana <  fAnalysisContainer->GetEntries(); iana++)
-  {
-               AliAnaCaloTrackCorrBaseClass * ana =  ((AliAnaCaloTrackCorrBaseClass *) fAnalysisContainer->At(iana)) ;
-               if(ana->NewOutputAOD()) aodBranchList->Add(ana->GetCreateOutputAODBranch());
-       }
-       
-       return aodBranchList ;
-       
 }
 
 //_________________________________________________________
@@ -312,18 +312,18 @@ void AliAnaCaloTrackCorrMaker::FillControlHistograms()
 TList * AliAnaCaloTrackCorrMaker::GetListOfAnalysisCuts()
 { 
   
-       // Get the list of the cuts used for the analysis
-       // The list is filled in the maker, called by the task in LocalInit() and posted there
+  // Get the list of the cuts used for the analysis
+  // The list is filled in the maker, called by the task in LocalInit() and posted there
   
-       for(Int_t iana = 0; iana <  fAnalysisContainer->GetEntries(); iana++)
-  {
-               AliAnaCaloTrackCorrBaseClass * ana =  ((AliAnaCaloTrackCorrBaseClass *) fAnalysisContainer->At(iana)) ;
-               TObjString * objstring = ana->GetAnalysisCuts();
-    
-               if(objstring)fCuts->Add(objstring);
-       }
+  for(Int_t iana = 0; iana <  fAnalysisContainer->GetEntries(); iana++)
+    {
+      AliAnaCaloTrackCorrBaseClass * ana =  ((AliAnaCaloTrackCorrBaseClass *) fAnalysisContainer->At(iana)) ;
+      TObjString * objstring = ana->GetAnalysisCuts();
+      
+      if(objstring)fCuts->Add(objstring);
+    }
   
-       return fCuts ;
+  return fCuts ;
   
 }
 
@@ -736,18 +736,18 @@ void AliAnaCaloTrackCorrMaker::Print(const Option_t * opt) const
   printf("Number of analysis tasks   =     %d\n", fAnalysisContainer->GetEntries()) ;
   
   if(!strcmp("all",opt))
-  {
-         printf("Print analysis Tasks settings :\n") ;
-         for(Int_t iana = 0; iana<fAnalysisContainer->GetEntries(); iana++)
     {
-                 ((AliAnaCaloTrackCorrBaseClass *) fAnalysisContainer->At(iana))->Print("");
-         }
-    
-         printf("Print analysis Reader settings :\n") ;
-         fReader->Print("");
-         printf("Print analysis Calorimeter Utils settings :\n") ;
-         fCaloUtils->Print("");
-    
+      printf("Print analysis Tasks settings :\n") ;
+      for(Int_t iana = 0; iana<fAnalysisContainer->GetEntries(); iana++)
+       {
+         ((AliAnaCaloTrackCorrBaseClass *) fAnalysisContainer->At(iana))->Print("");
+       }
+      
+      printf("Print analysis Reader settings :\n") ;
+      fReader->Print("");
+      printf("Print analysis Calorimeter Utils settings :\n") ;
+      fCaloUtils->Print("");
+      
   }
   
 } 
@@ -759,20 +759,20 @@ void AliAnaCaloTrackCorrMaker::ProcessEvent(const Int_t iEntry,
   //Process analysis for this event
   
   if(fMakeHisto && !fOutputContainer)
-  {
-    printf("AliAnaCaloTrackCorrMaker::ProcessEvent() - Histograms not initialized\n");
-    abort();
-  }
-       
+    {
+      printf("AliAnaCaloTrackCorrMaker::ProcessEvent() - Histograms not initialized\n");
+      abort();
+    }
+  
   if(fAnaDebug >= 0 )
-  {
-               printf("***  AliAnaCaloTrackCorrMaker::ProcessEvent() Event %d   ***  \n",iEntry);
-         if(fAnaDebug > 1 ) 
     {
-                 printf("AliAnaCaloTrackCorrMaker::ProcessEvent() - Current File Name : %s\n", currentFileName);
-                 //printf("fAODBranchList %p, entries %d\n",fAODBranchList,fAODBranchList->GetEntries());
-         }
-  }
+      printf("***  AliAnaCaloTrackCorrMaker::ProcessEvent() Event %d   ***  \n",iEntry);
+      if(fAnaDebug > 1 ) 
+       {
+         printf("AliAnaCaloTrackCorrMaker::ProcessEvent() - Current File Name : %s\n", currentFileName);
+         //printf("fAODBranchList %p, entries %d\n",fAODBranchList,fAODBranchList->GetEntries());
+       }
+    }
   
   //Each event needs an empty branch
   TList * aodList = fReader->GetAODBranchList();
@@ -788,7 +788,6 @@ void AliAnaCaloTrackCorrMaker::ProcessEvent(const Int_t iEntry,
   
   //Set the AODB calibration, bad channels etc. parameters at least once
   fCaloUtils->AccessOADB(fReader->GetInputEvent());    
-
   
   //Tell the reader to fill the data in the 3 detector lists
   Bool_t ok = fReader->FillInputEvent(iEntry, currentFileName);
@@ -865,9 +864,9 @@ void AliAnaCaloTrackCorrMaker::ProcessEvent(const Int_t iEntry,
   
   if(!ok)
   {    
-         if(fAnaDebug >= 1 )printf("*** Skip event *** %d \n",iEntry);
+    if(fAnaDebug >= 1 )printf("*** Skip event *** %d \n",iEntry);
     fReader->ResetLists();
-         return ;
+    return ;
   }
   
   //Magic line to write events to file
@@ -941,17 +940,17 @@ void AliAnaCaloTrackCorrMaker::Terminate(TList * outputList)
   
   if (!outputList) 
   {
-         Error("Terminate", "No output list");
-         return;
+    Error("Terminate", "No output list");
+    return;
   }
-         
+  
   for(Int_t iana = 0; iana <  fAnalysisContainer->GetEntries(); iana++)
-  {
-    
-    AliAnaCaloTrackCorrBaseClass * ana =  ((AliAnaCaloTrackCorrBaseClass *) fAnalysisContainer->At(iana)) ;
-    if(ana->MakePlotsOn())ana->Terminate(outputList);
-    
-  }//Loop on analysis defined
+    {
+      
+      AliAnaCaloTrackCorrBaseClass * ana =  ((AliAnaCaloTrackCorrBaseClass *) fAnalysisContainer->At(iana)) ;
+      if(ana->MakePlotsOn())ana->Terminate(outputList);
+      
+    }//Loop on analysis defined
   
 }
 
index e1feace3202810414a2366f0956453b381319ae3..5d6cc650c0cbab988d584576336ef2f01b2b9742 100755 (executable)
@@ -668,10 +668,10 @@ void AliCaloTrackReader::Print(const Option_t * opt) const
          fEventTriggerAtSE, fEventTriggerMask,fMixEventTriggerMask);
   
   if(fComparePtHardAndClusterPt)
-         printf("Compare jet pt and pt hard to accept event, factor = %2.2f",fPtHardAndJetPtFactor);
+    printf("Compare jet pt and pt hard to accept event, factor = %2.2f",fPtHardAndJetPtFactor);
   
   if(fComparePtHardAndClusterPt)
-         printf("Compare cluster pt and pt hard to accept event, factor = %2.2f",fPtHardAndClusterPtFactor);
+    printf("Compare cluster pt and pt hard to accept event, factor = %2.2f",fPtHardAndClusterPtFactor);
   
   printf("Read Kine from, stack? %d, AOD ? %d \n", fReadStack, fReadAODMCParticles) ;
   printf("Delta AOD File Name =     %s\n", fDeltaAODFileName.Data()) ;
@@ -699,14 +699,14 @@ Bool_t AliCaloTrackReader::FillInputEvent(const Int_t iEntry,
   //fCurrentFileName = TString(currentFileName);
   if(!fInputEvent)
   {
-         if(fDebug >= 0) printf("AliCaloTrackReader::FillInputEvent() - Input event not available, skip event analysis\n");
-         return kFALSE;
+    if(fDebug >= 0) printf("AliCaloTrackReader::FillInputEvent() - Input event not available, skip event analysis\n");
+    return kFALSE;
   }
   
   //Select events only fired by a certain trigger configuration if it is provided
   Int_t eventType = 0;
   if(fInputEvent->GetHeader())
-         eventType = ((AliVHeader*)fInputEvent->GetHeader())->GetEventType();
+    eventType = ((AliVHeader*)fInputEvent->GetHeader())->GetEventType();
   
   if (GetFiredTriggerClasses().Contains("FAST")  && !GetFiredTriggerClasses().Contains("ALL") && !fAcceptFastCluster) 
   {
@@ -1957,7 +1957,7 @@ void  AliCaloTrackReader::MatchTriggerCluster(TArrayI patches)
     
     if ( !IsEMCALCluster(clus)) continue ;
       
-               //Skip clusters with too low energy to be triggering
+    //Skip clusters with too low energy to be triggering
     if ( clus->E() < fTriggerEventThreshold / 2. ) continue ;
     
     Float_t  frac       = -1;
@@ -2061,7 +2061,7 @@ void  AliCaloTrackReader::MatchTriggerCluster(TArrayI patches)
   
   Double_t tofPatchMaxUS = TMath::Abs(tofPatchMax);
     
-  if     (tofPatchMaxUS < 25 ) fTriggerClusterBC = 0 ;
+  if     (tofPatchMaxUS < 28 ) fTriggerClusterBC = 0 ;
   else if(tofPatchMaxUS < 75 ) fTriggerClusterBC = 1 ;
   else if(tofPatchMaxUS < 125) fTriggerClusterBC = 2 ;
   else if(tofPatchMaxUS < 175) fTriggerClusterBC = 3 ;