Class for storage of user scoring options.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Oct 2004 14:11:55 +0000 (14:11 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Oct 2004 14:11:55 +0000 (14:11 +0000)
TFluka/TFlukaLinkDef.h
TFluka/TFlukaScoringOption.cxx [new file with mode: 0644]
TFluka/TFlukaScoringOption.h [new file with mode: 0644]
TFluka/libTFluka.pkg

index a10b27018f6cc37549c2934d2ee10a73ab3e093e..2b902bee54fc78e52d0d68cf60be17de147c5258 100644 (file)
@@ -12,6 +12,7 @@
 #pragma link C++ class  TFlukaMCGeometry+;
 #pragma link C++ class  TFlukaCerenkov+;
 #pragma link C++ class  TFlukaConfigOption+;
+#pragma link C++ class  TFlukaScoringOption+;
 #endif
 
 
diff --git a/TFluka/TFlukaScoringOption.cxx b/TFluka/TFlukaScoringOption.cxx
new file mode 100644 (file)
index 0000000..5bd9e97
--- /dev/null
@@ -0,0 +1,34 @@
+/**************************************************************************
+ * 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.                  *
+ **************************************************************************/
+
+/* $Id$*/
+
+#include "TFlukaScoringOption.h"
+ClassImp(TFlukaScoringOption);
+
+
+TFlukaScoringOption::TFlukaScoringOption()
+{
+    // Default constructor
+}
+
+
+TFlukaScoringOption::TFlukaScoringOption(const char* name, const char* sdum, Int_t npar,  Float_t what[12])
+    : TNamed(name, sdum)
+{
+    // Constructor
+    fNpar = npar;
+    for (Int_t i = 0; i < 12; i++) fWhat[i] = what[i];
+}
diff --git a/TFluka/TFlukaScoringOption.h b/TFluka/TFlukaScoringOption.h
new file mode 100644 (file)
index 0000000..89cc390
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef TFLUKASCORINGOPTION
+#define TFLUKASCORINGOPTION
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+//                                                                           //
+// Class to store FLUKA specific scoring options
+//                                                                           //
+//
+// Author: andreas.morsch@cern.ch 
+//
+//
+///////////////////////////////////////////////////////////////////////////////
+
+
+#include <TNamed.h>
+
+
+class TFlukaScoringOption : public TNamed
+{
+public:
+   // constructors
+    TFlukaScoringOption();
+    TFlukaScoringOption(const char* name, const char* sdum, Int_t npar,  Float_t what[12]);
+ protected:
+    Int_t         fNpar;        // Number of paramters
+    Float_t       fWhat[12];    // WHAT()
+    ClassDef(TFlukaScoringOption, 1)  // Fluka Scoring Option
+};
+       
+#endif
+       
index c46d9b204a5d6e02b2275a041233ce2afd4643de..dee436e3c395e99f02e5f17a2ed507dfc99b5ecc 100644 (file)
@@ -1,12 +1,13 @@
 # Sources
 SRCS:=  TFluka.cxx TFlukaMCGeometry.cxx TFlukaCerenkov.cxx \
-       TFlukaConfigOption.cxx \
+       TFlukaConfigOption.cxx TFlukaScoringOption.cxx\
         magfld.cxx source.cxx mgdraw.cxx bxdraw.cxx eedraw.cxx \
        endraw.cxx sodraw.cxx usdraw.cxx stupre.cxx stuprf.cxx \
        abscff.cxx dffcff.cxx queffc.cxx rflctv.cxx rfrndx.cxx
 
 # Headers
-HDRS:= TFluka.h TFlukaMCGeometry.h TFlukaCerenkov.h TFlukaConfigOption.h
+HDRS:= TFluka.h TFlukaMCGeometry.h TFlukaCerenkov.h TFlukaConfigOption.h \
+       TFlukaScoringOption.h
 
 FSRCS:= FLUKA_input.f crnkvp.f