]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliInputEventHandler.cxx
Coverity fix.
[u/mrichter/AliRoot.git] / STEER / AliInputEventHandler.cxx
index 3cd61adc9d7a5d7bad93edc64e0bf6656979d6f6..9a163e8e80f6a90782d8be99f3dd7c3df5c7f7fb 100644 (file)
 
 #include "AliInputEventHandler.h"
 #include "AliVEvent.h"
+#include "AliVCuts.h"
 #include "AliLog.h"
 
+
 ClassImp(AliInputEventHandler)
 
 //______________________________________________________________________________
@@ -33,7 +35,10 @@ AliInputEventHandler::AliInputEventHandler() :
     fTree(0),
     fBranches(""),
     fBranchesOn(""),
-    fNewEvent(kTRUE)
+    fNewEvent(kTRUE),
+    fEventCuts(0),
+    fIsSelectedResult(0),
+    fMixingHandler(0)
 {
   // default constructor
 }
@@ -50,8 +55,12 @@ AliInputEventHandler::AliInputEventHandler(const char* name, const char* title):
   fTree(0),
   fBranches(""),
   fBranchesOn(""),
-  fNewEvent(kTRUE)
+  fNewEvent(kTRUE),
+  fEventCuts(0),
+  fIsSelectedResult(0),
+  fMixingHandler(0)
 {
+// Named constructor.
 }
 
 void AliInputEventHandler::SwitchOffBranches() const {
@@ -64,8 +73,9 @@ void AliInputEventHandler::SwitchOffBranches() const {
        if (str.Length() == 0)
            continue;
        fTree->SetBranchStatus(Form("%s%s%s","*", str.Data(), "*"), 0);
-       AliInfo(Form("Branch %s switched off \n", str.Data()));
+       AliDebug(1,Form("Branch %s switched off", str.Data()));
     }
+  delete tokens;
 }
 
 void AliInputEventHandler::SwitchOnBranches() const {
@@ -79,11 +89,20 @@ void AliInputEventHandler::SwitchOnBranches() const {
       if (str.Length() == 0)
          continue;
       fTree->SetBranchStatus(Form("%s%s%s","*", str.Data(), "*"), 1);
-      AliInfo(Form("Branch %s switched on \n", str.Data()));
+      AliDebug(1,Form("Branch %s switched on", str.Data()));
   }
+  delete tokens;
 }
 
-
-
+TObject *AliInputEventHandler::GetStatistics(Option_t *) const
+{
+// Returns the statistics object(s) (TH2F histogram) produced by the physics
+// selection. Implementations both for ESD and AOD input handlers.
+  return NULL;
+}
+   
 Long64_t AliInputEventHandler::GetReadEntry() const 
-{return fTree->GetReadEntry();}
+{
+  // Get the current entry.
+  return fTree->GetReadEntry();
+}