]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliInputEventHandler.cxx
protection agains wrong centrality bin
[u/mrichter/AliRoot.git] / STEER / AliInputEventHandler.cxx
index 89c106c98da952bd49a2d7bbe861f8d4dc705e6b..a84cc16f5bbbec92d464435e0336b5d9021383ac 100644 (file)
@@ -37,7 +37,9 @@ AliInputEventHandler::AliInputEventHandler() :
     fBranchesOn(""),
     fNewEvent(kTRUE),
     fEventCuts(0),
-    fIsSelectedResult(0)
+    fIsSelectedResult(0),
+    fMixingHandler(0),
+    fParentHandler(0)
 {
   // default constructor
 }
@@ -56,8 +58,11 @@ AliInputEventHandler::AliInputEventHandler(const char* name, const char* title):
   fBranchesOn(""),
   fNewEvent(kTRUE),
   fEventCuts(0),
-  fIsSelectedResult(0)
+  fIsSelectedResult(0),
+  fMixingHandler(0),
+  fParentHandler(0)
 {
+// Named constructor.
 }
 
 void AliInputEventHandler::SwitchOffBranches() const {
@@ -70,8 +75,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 {
@@ -85,11 +91,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();
+}