fix for Hydjet reaction plane
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Nov 2010 13:05:40 +0000 (13:05 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Nov 2010 13:05:40 +0000 (13:05 +0000)
PWG2/FLOW/AliFlowTasks/AliFlowEvent.cxx

index 9113362..2a1d1f2 100644 (file)
@@ -33,6 +33,7 @@
 #include "AliGenEposEventHeader.h"
 #include "AliGenHijingEventHeader.h"
 #include "AliGenGeVSimEventHeader.h"
+#include "AliCollisionGeometry.h"
 #include "AliMultiplicity.h"
 #include "AliFlowTrackCuts.h"
 #include "AliFlowEventSimple.h"
@@ -118,6 +119,12 @@ void AliFlowEvent::SetMCReactionPlaneAngle(const AliMCEvent* mcEvent)
     AliGenEposEventHeader* headerE = dynamic_cast<AliGenEposEventHeader*>(mcEvent->GenEventHeader());
     if (headerE) AliFlowEventSimple::SetMCReactionPlaneAngle( headerE->ReactionPlaneAngle() );
   }
+  //Hydjet
+  else
+  {
+    AliCollisionGeometry* header = dynamic_cast<AliCollisionGeometry*>(mcEvent->GenEventHeader());
+    if (header) AliFlowEventSimple::SetMCReactionPlaneAngle( header->ReactionPlaneAngle() );
+  }
 }
 
 //-----------------------------------------------------------------------