]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
sort functions alphabetically
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Jun 2012 03:30:50 +0000 (03:30 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Jun 2012 03:30:50 +0000 (03:30 +0000)
PWGGA/EMCALTasks/AliAnalysisTaskEmcal.cxx
PWGGA/EMCALTasks/AliAnalysisTaskEmcal.h

index 71049aaa6b44e5e7aaa8ac069bc79c79d2aad1b9..51be78f6694ccda4e318daa00746ebe0c4f1decb 100644 (file)
@@ -88,9 +88,86 @@ AliAnalysisTaskEmcal::~AliAnalysisTaskEmcal()
 }
 
 //________________________________________________________________________
-void AliAnalysisTaskEmcal::UserCreateOutputObjects()
+void AliAnalysisTaskEmcal::UserExec(Option_t *) 
+{
+  // Main loop, called for each event.
+
+  if (!fInitialized) 
+    Init();
+
+  if (!RetrieveEventObjects())
+    return;
+
+  if (!Run())
+    return;
+
+  if (!FillHistograms())
+    return;
+    
+  if (fCreateHisto) {
+    // information for this iteration of the UserExec in the container
+    PostData(1, fOutput);
+  }
+}
+
+//________________________________________________________________________
+Bool_t AliAnalysisTaskEmcal::AcceptCluster(AliVCluster *clus, Bool_t acceptMC) const
 {
-  // User create outputs.
+  // Return true if cluster is accepted.
+
+  if (!clus)
+    return kFALSE;
+
+  if (!clus->IsEMCAL())
+    return kFALSE;
+
+  if (!acceptMC && clus->Chi2() == 100)
+    return kFALSE;
+
+  TLorentzVector nPart;
+  clus->GetMomentum(nPart, const_cast<Double_t*>(fVertex));
+
+  if (nPart.Et() < fPtCut)
+    return kFALSE;
+
+  return kTRUE;
+}
+
+//________________________________________________________________________
+Bool_t AliAnalysisTaskEmcal::AcceptEmcalPart(AliEmcalParticle *part, Bool_t acceptMC) const
+{
+  // Return true if EMCal particle is accepted.
+
+  if (!part)
+    return kFALSE;
+
+  if (fAnaType == kEMCAL && !part->IsEMCAL())
+    return kFALSE;
+
+  if (part->Pt() < fPtCut)
+    return kFALSE;
+
+  if (!acceptMC && part->IsMC())
+    return kFALSE;
+
+  return kTRUE;
+}
+
+//________________________________________________________________________
+Bool_t AliAnalysisTaskEmcal::AcceptTrack(AliVTrack *track, Bool_t acceptMC) const
+{
+  // Return true if track is accepted.
+
+  if (!track)
+    return kFALSE;
+
+  if (!acceptMC && track->GetLabel() == 100)
+    return kFALSE;
+
+  if (track->Pt() < fPtCut)
+    return kFALSE;
+  
+  return kTRUE;
 }
 
 //_____________________________________________________
@@ -123,6 +200,7 @@ AliAnalysisTaskEmcal::BeamType AliAnalysisTaskEmcal::GetBeamType()
   }  
 }
 
+//________________________________________________________________________
 void AliAnalysisTaskEmcal::Init()
 {
   // Init the analysis.
@@ -185,91 +263,3 @@ Bool_t AliAnalysisTaskEmcal::RetrieveEventObjects()
   return kTRUE;
 }
 
-//________________________________________________________________________
-Bool_t AliAnalysisTaskEmcal::AcceptCluster(AliVCluster *clus, Bool_t acceptMC) const
-{
-  // Return true if cluster is accepted.
-
-  if (!clus)
-    return kFALSE;
-
-  if (!clus->IsEMCAL())
-    return kFALSE;
-
-  if (!acceptMC && clus->Chi2() == 100)
-    return kFALSE;
-
-  TLorentzVector nPart;
-  clus->GetMomentum(nPart, const_cast<Double_t*>(fVertex));
-
-  if (nPart.Et() < fPtCut)
-    return kFALSE;
-
-  return kTRUE;
-}
-
-//________________________________________________________________________
-Bool_t AliAnalysisTaskEmcal::AcceptEmcalPart(AliEmcalParticle *part, Bool_t acceptMC) const
-{
-  // Return true if EMCal particle is accepted.
-
-  if (!part)
-    return kFALSE;
-
-  if (fAnaType == kEMCAL && !part->IsEMCAL())
-    return kFALSE;
-
-  if (part->Pt() < fPtCut)
-    return kFALSE;
-
-  if (!acceptMC && part->IsMC())
-    return kFALSE;
-
-  return kTRUE;
-}
-
-//________________________________________________________________________
-Bool_t AliAnalysisTaskEmcal::AcceptTrack(AliVTrack *track, Bool_t acceptMC) const
-{
-  // Return true if track is accepted.
-
-  if (!track)
-    return kFALSE;
-
-  if (!acceptMC && track->GetLabel() == 100)
-    return kFALSE;
-
-  if (track->Pt() < fPtCut)
-    return kFALSE;
-  
-  return kTRUE;
-}
-
-//________________________________________________________________________
-void AliAnalysisTaskEmcal::UserExec(Option_t *) 
-{
-  // Main loop, called for each event.
-
-  if (!fInitialized) 
-    Init();
-
-  if (!RetrieveEventObjects())
-    return;
-
-  if (!Run())
-    return;
-
-  if (!FillHistograms())
-    return;
-    
-  if (fCreateHisto) {
-    // information for this iteration of the UserExec in the container
-    PostData(1, fOutput);
-  }
-}
-
-//________________________________________________________________________
-void AliAnalysisTaskEmcal::Terminate(Option_t *) 
-{
-  // Called once at the end of the analysis.
-}
index 5eb88fa3dbc92788c54c065b82b7c48109c2714d..922881243eb0642bc14b01473279cf3c70597c8b 100644 (file)
@@ -32,10 +32,7 @@ class AliAnalysisTaskEmcal : public AliAnalysisTaskSE {
   AliAnalysisTaskEmcal(const char *name, Bool_t histo=kFALSE); 
   virtual ~AliAnalysisTaskEmcal();
 
-  virtual void                Init();
-  virtual void                UserCreateOutputObjects();
-  virtual void                UserExec(Option_t *option);
-  virtual void                Terminate(Option_t *option);
+  void                        UserExec(Option_t *option);
 
   void                        SetAnaType(EmcalAnaType type)                        { fAnaType        = type       ; }
   void                        SetClusName(const char *n)                           { fCaloName       = n          ; }
@@ -48,6 +45,7 @@ class AliAnalysisTaskEmcal : public AliAnalysisTaskSE {
   Bool_t                      AcceptEmcalPart(AliEmcalParticle *part,  Bool_t acceptMC = kFALSE)       const;
   Bool_t                      AcceptTrack(AliVTrack            *track, Bool_t acceptMC = kFALSE)       const;
   BeamType                    GetBeamType()                                                                 ;
+  virtual void                Init();
   virtual Bool_t              FillHistograms()                                     { return fCreateHisto; }
   void                        SetInitialized(Bool_t ini = kTRUE)                   { fInitialized    = ini        ; }
   virtual Bool_t              RetrieveEventObjects();