-
Notifications
You must be signed in to change notification settings - Fork 0
/
AliMCConf.h
68 lines (61 loc) · 1.62 KB
/
AliMCConf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef ALIMCCONF_H
#define ALIMCCONF_H
#include <TObject.h>
#include <TString.h>
#include <stdio.h>
class AliMCConf : public TObject
{
public:
enum collsyst_t {kPP,kPA,kAP,kAA};
enum {kOffsStep=2}; // offset step in spaces
AliMCConf();
void WriteConfigDet();
void SetDetConfName(const char* nm=0);
const char* GetDetConfName() const {return fDetConfName.Data();}
//
protected:
void OpenFile(const char* name);
void CloseFile();
void ToFile(const char* cmd, int offsInc=0);
void IncOffs() {fOffs += kOffsStep;}
void DecOffs() {fOffs -= kOffsStep;}
//
void DoAliBody();
void DoBody();
void DoMagnet();
void DoAbsorber();
void DoDipole();
void DoHall();
void DoFrame();
void DoShield();
void DoPipe();
void DoITS();
void DoTPC();
void DoTOF();
void DoHMPID();
void DoZDC();
void DoTRD();
void DoFMD();
void DoMUON();
void DoPHOS();
void DoPMD();
void DoT0();
void DoEMCAL();
void DoACORDE();
void DoVZERO();
void DoAD();
//
protected:
Int_t fYear;
collsyst_t fCollSystem; // collision system
Float_t fBeamEnergy; // beam energy (per charge)
//
FILE* fFlOut; // current output file
Int_t fOffs; // current offset in spaces
TString fDetConfName; // name for detector config macro
//
static const char* fgkDetConfName; // default name for detector config file
//
ClassDef(AliMCConf,0);
};
#endif