]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGCF/FLOW/Documentation/examples/manual/ttree/macros/runTTreeFilter.C
remove redundant check from run macro
[u/mrichter/AliRoot.git] / PWGCF / FLOW / Documentation / examples / manual / ttree / macros / runTTreeFilter.C
index 72ca41a4410db2ed71fd89b252de171e18dd4a3d..065f255ee92f82ecec3a552c13b154cf29e1705c 100644 (file)
@@ -40,21 +40,9 @@ void runTTreeFilter() {
     // and connect it to the manager
     mgr->SetInputEventHandler(inputH);
 
-     // the manager is static, so get the existing manager via the static method
-    AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
-    if (!mgr) {
-        printf("No analysis manager to connect to!\n");
-        return NULL;
-    }
-        
-    // just to see if all went well, check if the input event handler has been connected
-    if (!mgr->GetInputEventHandler()) {
-        printf("This task requires an input event handler!\n");
-        return NULL;
-      }
-
     // compile the relevant classes
-      // include paths, necessary for compilation
+
+    // include paths, necessary for compilation
     gSystem->AddIncludePath("-Wno-deprecated");
     gSystem->AddIncludePath("-I$ALICE_ROOT -I$ALICE_ROOT/include -I$ALICE_ROOT/EMCAL");
     gSystem->AddIncludePath("-I$ALICE_ROOT/PWGDQ/dielectron -I$ALICE_ROOT/PWGHF/hfe");