]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 9113362395c4a13e0abd9dbe995d00c341fed1a8..2a1d1f20b0f552658b2cc0b461cd8141d157a080 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() );
+  }
 }
 
 //-----------------------------------------------------------------------