]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
-updates to reduced events (ionut)
authorjbook <jbook@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Jul 2012 14:26:34 +0000 (14:26 +0000)
committerjbook <jbook@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Jul 2012 14:26:34 +0000 (14:26 +0000)
PWGDQ/dielectron/AliAnalysisTaskReducedTree.h
PWGDQ/dielectron/AliReducedEvent.cxx

index 9206f1bcd3b4be8fdc378a993388f6fccaa3c501..1ec46d2eece07213b34c219b066a93a102a84d2d 100644 (file)
@@ -91,12 +91,12 @@ public:
   Double_t fLambdaMassRange[2];        // mass range for allowed Lambda pairs
   AliDielectronHistos* fV0Histos;    // histogram manager for V0s
 
-  TFile *fTreeFile;                  // output file containing the tree
+  TFile *fTreeFile;                  //! output file containing the tree
   TTree *fTree;                      //! Reduced event tree
-  TTree *fFriendTreeFile;            // output file containing the friend tree
+  TTree *fFriendTreeFile;            //! output file containing the friend tree
   TTree *fFriendTree;                //! Reduced event tree with friend info (event plane, etc.)
-  AliReducedEvent *fReducedEvent;    // reduced event wise information
-  AliReducedEventFriend *fReducedEventFriend;    // friend reduced event wise information
+  AliReducedEvent *fReducedEvent;    //! reduced event wise information
+  AliReducedEventFriend *fReducedEventFriend;    //! friend reduced event wise information
   
   void FillEventInfo();                     // fill reduced event information
   void FillFriendEventInfo();               // fill reduced event friend information
index 9cc55ca975dbdeaa77ed4d009eab49935bd4da42..60d0284a29bd9fe45fa9025fd58137214e2eacd8 100644 (file)
@@ -288,9 +288,9 @@ void AliReducedEvent::ClearEvent() {
   //
   // clear the event
   //
-  fTracks->Clear("C");
-  fCandidates->Clear("C");
-  fCaloClusters->Clear("C");
+  if(fTracks) fTracks->Clear("C");
+  if(fCandidates) fCandidates->Clear("C");
+  if(fCaloClusters) fCaloClusters->Clear("C");
   fRunNo = 0;
   fBC = 0;
   fTriggerMask = 0;