Added Protection and Error Message for missing Output Tree
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jul 2010 11:24:15 +0000 (11:24 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jul 2010 11:24:15 +0000 (11:24 +0000)
ANALYSIS/AliAnalysisTaskESDfilter.cxx

index 8084626..b061b04 100644 (file)
@@ -78,7 +78,12 @@ void AliAnalysisTaskESDfilter::UserCreateOutputObjects()
   //\r
   // Create Output Objects conenct filter to outputtree\r
   // \r
+  if(OutputTree()){\r
     OutputTree()->GetUserInfo()->Add(fTrackFilter);\r
+  }\r
+  else{\r
+    AliError("No OutputTree() for adding the track filter");\r
+  }\r
 }\r
 \r
 void AliAnalysisTaskESDfilter::Init()\r