1 #ifndef TFLUKASCORINGOPTION
2 #define TFLUKASCORINGOPTION
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ///////////////////////////////////////////////////////////////////////////////
12 // Class to store FLUKA specific scoring options //
15 // Authors: Andreas Morsch <andreas.morsch@cern.ch> //
16 // Barbara Dalena <Barbara.Dalena@ba.infn.it> //
18 ///////////////////////////////////////////////////////////////////////////////
22 class TFlukaMCGeometry;
25 class TFlukaScoringOption : public TNamed
29 TFlukaScoringOption();
30 TFlukaScoringOption(const char* name, const char* sdum, Int_t nopfl, char* outfile, Float_t* what);
31 TFlukaScoringOption(const char* name, const char* sdum, Int_t nopfl, char* outfile, Float_t* what,
32 const char* det1, const char* det2, const char* det3);
34 Float_t What(Int_t indi) const {return fWhat[indi - 1];}
35 Int_t Par() const {return fNopfl;}
36 char* GetFileName() const {return fOutFile;}
37 Float_t GetLun() const {return fLun;}
38 const char* GetRegName(Int_t ndet);
39 void SetPar(Int_t val) {fNopfl = val;}
40 void SetFileName(char* outfile) {fOutFile = outfile;}
41 void SetLun(Float_t lun) {fLun = lun;}
44 void WriteFlukaInputCards();
45 void WriteOpenFlukaFile();
46 Int_t GetRegionByName(const char* detname);
48 static void SetStaticInfo(FILE* file, TFlukaMCGeometry* geom)
49 {fgFile = file; fgGeom = geom;}
51 Int_t fNopfl; // Number of paramters
52 Float_t fWhat[12]; // WHAT()
53 const char* fName[3]; // Region Name
54 char* fOutFile; // Output file
55 Float_t fLun; // Logical Unit Number for Fluka output
58 static FILE* fgFile; // Output file
59 static TFlukaMCGeometry* fgGeom; // Pointer to geometry
61 ClassDef(TFlukaScoringOption, 1) // Fluka Scoring Option