Moved from TDPMjet.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 May 2008 07:28:04 +0000 (07:28 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 May 2008 07:28:04 +0000 (07:28 +0000)
STEER/AliGenDPMjetEventHeader.cxx [new file with mode: 0644]
STEER/AliGenDPMjetEventHeader.h [new file with mode: 0644]
STEER/STEERBaseLinkDef.h
STEER/libSTEERBase.pkg

diff --git a/STEER/AliGenDPMjetEventHeader.cxx b/STEER/AliGenDPMjetEventHeader.cxx
new file mode 100644 (file)
index 0000000..ea2a807
--- /dev/null
@@ -0,0 +1,39 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+
+#include "AliGenDPMjetEventHeader.h"
+ClassImp(AliGenDPMjetEventHeader)
+
+AliGenDPMjetEventHeader::AliGenDPMjetEventHeader():
+    AliGenEventHeader(),
+    AliCollisionGeometry(),
+    fTotalEnergy(0.),
+    fTrials(0), 
+    fProcessType(0)
+{
+    // Default constructor
+}
+
+
+AliGenDPMjetEventHeader::AliGenDPMjetEventHeader(const char* name):
+    AliGenEventHeader(name),
+    AliCollisionGeometry(),
+    fTotalEnergy(0.),
+    fTrials(0), 
+    fProcessType(0)
+{
+    // Constructor
+}
diff --git a/STEER/AliGenDPMjetEventHeader.h b/STEER/AliGenDPMjetEventHeader.h
new file mode 100644 (file)
index 0000000..0a859e5
--- /dev/null
@@ -0,0 +1,38 @@
+#ifndef ALIGENDPMJETEVENTHEADER_H
+#define ALIGENDPMJETEVENTHEADER_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+#include <TLorentzVector.h>
+
+#include "AliGenEventHeader.h"
+#include "AliCollisionGeometry.h"
+
+class AliGenDPMjetEventHeader : public AliGenEventHeader, public AliCollisionGeometry
+{
+ public:
+    AliGenDPMjetEventHeader(const char* name);
+    AliGenDPMjetEventHeader();
+    virtual ~AliGenDPMjetEventHeader() {}
+
+  // Getters
+  Float_t TotalEnergy()  {return fTotalEnergy;} 
+  Int_t   Trials()       {return fTrials;}
+  Int_t   ProcessType()  {return fProcessType;}
+  
+         
+  // Setters
+  void SetTotalEnergy(Float_t energy)  {fTotalEnergy = energy;}
+  void SetTrials(Int_t trials)         {fTrials      = trials;}
+  void SetProcessType(Int_t type)      {fProcessType = type;}
+         
+protected:
+  Float_t fTotalEnergy;              // Total energy of produced particles
+  Int_t   fTrials;                   // Number of trials to fulfill trigger condition
+  Int_t   fProcessType;              // Process Type 
+  
+  ClassDef(AliGenDPMjetEventHeader,1) // Event header for dpmjet event
+};
+
+#endif
index 44cd1f6..6a7a82a 100644 (file)
@@ -37,7 +37,7 @@
 #pragma link C++ class AliGenPythiaEventHeader+;
 #pragma link C++ class AliGenHijingEventHeader+;
 #pragma link C++ class AliCollisionGeometry+;
-
+#pragma link C++ class AliGenDPMjetEventHeader+;
 #pragma link C++ class AliStack+;
 #pragma link C++ class AliMCEventHandler+;
 #pragma link C++ class AliInputEventHandler+;
index d41bb79..10fa6d7 100644 (file)
@@ -12,6 +12,7 @@ SRCS = AliVParticle.cxx \
        AliHeader.cxx AliGenEventHeader.cxx AliDetectorEventHeader.cxx \
        AliGenPythiaEventHeader.cxx AliGenCocktailEventHeader.cxx \
        AliGenHijingEventHeader.cxx AliCollisionGeometry.cxx \
+       AliGenDPMjetEventHeader.cxx \
        AliStack.cxx AliMCEventHandler.cxx AliInputEventHandler.cxx \
        AliTrackReference.cxx AliSysInfo.cxx \
        AliMCEvent.cxx AliMCParticle.cxx \