Explicit cast to avoid warnings (Solaris x86)
[u/mrichter/AliRoot.git] / EVGEN / AliGenHaloProtvino.cxx
CommitLineData
14ab5373 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
88cb7938 16/* $Id$ */
14ab5373 17
18// Read background particles from a boundary source
19// Very specialized generator to simulate background from beam halo.
20// The input file is a text file specially prepared
21// for this purpose.
22// Author: andreas.morsch@cern.ch
23
116cbefd 24#include <stdlib.h>
14ab5373 25
26#include <TDatabasePDG.h>
d41a82ac 27#include <TCanvas.h>
28#include <TGraph.h>
116cbefd 29#include <TPDGCode.h>
eac2c8a3 30#include <TSystem.h>
116cbefd 31
32#include "AliGenHaloProtvino.h"
33#include "AliRun.h"
14ab5373 34
198bb1c7 35ClassImp(AliGenHaloProtvino)
36
37AliGenHaloProtvino::AliGenHaloProtvino()
1c56e311 38 :AliGenerator(-1),
39 fFile(0),
40 fFileName(0),
41 fSide(1),
42 fRunPeriod(kY3D90),
43 fTimePerEvent(1.e-4),
44 fNskip(0),
45 fZ1(0),
46 fZ2(0),
47 fG1(0),
48 fG2(0),
49 fGPASize(0)
14ab5373 50{
51// Constructor
154d524b 52
53 fName = "HaloProtvino";
54 fTitle = "Halo from LHC Tunnel";
14ab5373 55//
56// Read all particles
154d524b 57 fNpart = -1;
7f98ef21 58 SetAnalog(0);
14ab5373 59}
60
61AliGenHaloProtvino::AliGenHaloProtvino(Int_t npart)
1c56e311 62 :AliGenerator(npart),
63 fFile(0),
64 fFileName(0),
65 fSide(1),
66 fRunPeriod(kY3D90),
67 fTimePerEvent(1.e-4),
68 fNskip(0),
69 fZ1(0),
70 fZ2(0),
71 fG1(0),
72 fG2(0),
73 fGPASize(0)
14ab5373 74{
75// Constructor
154d524b 76 fName = "Halo";
77 fTitle= "Halo from LHC Tunnel";
14ab5373 78//
154d524b 79 fNpart = npart;
eac2c8a3 80//
7f98ef21 81 SetAnalog(0);
14ab5373 82}
83
198bb1c7 84
14ab5373 85/*
86# Title: README file for the sources of IR8 machine induced background
87# Author: Vadim Talanov <Vadim.Talanov@cern.ch>
88# Modified: 12-12-2000
89
900. Overview
91
92 There are three files, named ring.one.beta.[01,10,50].m, which
93 contain the lists of background particles, induced by proton losses
94 upstream of IP8 in the LHC ring one, for the beta* values of 1, 10
95 and 50 m, respectively.
96
971. File contents
98
99 Each line in the files contains the coordinates of particle track
100 crossing with the infinite plane, positioned at z=-1m, together with
101 the physical properties of corresponding particle, namely:
102
103 S - S coordinate of the primary interaction vertex, cm;
104 N - type of the gas nuclei at interaction, 1 is H, 2 - C and 3 - O;
105 I - particle ID in PDG particle numbering scheme;
106 W - particle weight;
107 E - particle kinetic energy, GeV;
108 X - x coordinate of the crossing point, cm;
109 Y - y coordinate of the crossing point, cm;
110 Dx - x direction cosine;
111 Dy - y direction cosine.
112
1132. Normalisation
114
115 Each file is given per unity of linear density of proton inelastic
116 interactions with the gas nuclei, [1 inelastic interaction/m].
117
118# ~/vtalanov/public/README.mib: the end.
119
120*/
121
122
123
124