]>
Commit | Line | Data |
---|---|---|
f87cfe57 | 1 | #ifndef ALIGENEXTFILE_H |
2 | #define ALIGENEXTFILE_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
f87cfe57 | 8 | |
675e9664 | 9 | // Event generator that can read the old ALICE event format based on CW-ntuples |
10 | // http://consult.cern.ch/alice/Internal_Notes/1995/32/abstract | |
11 | // Author: andreas.morsch@cern.ch | |
f87cfe57 | 12 | |
693caace | 13 | #include "AliGenerator.h" |
675e9664 | 14 | class TTree; |
693caace | 15 | |
16 | class AliGenExtFile : public AliGenerator | |
17 | { | |
f87cfe57 | 18 | public: |
19 | AliGenExtFile(); | |
20 | AliGenExtFile(Int_t npart); | |
21 | AliGenExtFile(const AliGenExtFile &cocktail); | |
22 | ||
23 | virtual ~AliGenExtFile(); | |
24 | // Initialise | |
25 | virtual void Init() {} | |
26 | // Initialise fluka data | |
27 | virtual void NtupleInit(); | |
28 | // set file name of data file | |
29 | virtual void SetFileName(const Text_t *filname) {fFileName=filname;} | |
30 | // generate event | |
31 | virtual void Generate(); | |
32 | AliGenExtFile & operator=(const AliGenExtFile & rhs); | |
f177bfed | 33 | enum Code_t {kPDG, kGEANT3}; |
34 | void SetParticleCode(Code_t code) {fCode = code;} | |
35 | ||
693caace | 36 | protected: |
f87cfe57 | 37 | const Text_t *fFileName; //! Choose the file |
38 | Int_t fNcurrent; // points to the next entry | |
39 | TTree *fTreeNtuple; // pointer to the TTree | |
40 | //Declaration of leaves types | |
f177bfed | 41 | Code_t fCode; // Particle code type |
f87cfe57 | 42 | Int_t fNihead; // Number of entries in integer header |
43 | Int_t fIhead[12]; // Integer header | |
44 | Int_t fNrhead; // Number of entries in float header | |
45 | Float_t fRhead[6]; // Float header | |
46 | UInt_t fIdpart; // Particle type | |
47 | Float_t fTheta; // Theta | |
48 | Float_t fPhi; // Phi | |
49 | Float_t fP; // Total momentum | |
50 | Float_t fE; // Total energy | |
51 | ||
52 | ClassDef(AliGenExtFile,1) //Generate particles from external file | |
693caace | 53 | }; |
54 | #endif | |
55 | ||
56 | ||
57 | ||
58 | ||
59 | ||
60 |