forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AliGenScan.h
51 lines (38 loc) · 1.35 KB
/
AliGenScan.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
#ifndef ALIGENSCAN_H
#define ALIGENSCAN_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
// Realisation of AliGenerator that generates particles with
// vertices on a user defined grid.
// Author: [email protected]
#include "AliGenerator.h"
class AliGenScan : public AliGenerator
{
public:
AliGenScan();
AliGenScan(Int_t npart);
virtual ~AliGenScan();
// Set Scanning Range
virtual void SetRange(Int_t nx, Float_t xmin, Float_t xmax,
Int_t ny, Float_t ymin, Float_t ymax,
Int_t nz, Float_t zmin, Float_t zmax);
// Initialise
virtual void Init() {}
// generate event
virtual void Generate();
virtual void SetPart(Int_t part) {fIpart=part;}
protected:
Float_t fXCmin; // Minimum x on grid
Float_t fXCmax; // Maximum x on grid
Int_t fNx; // Number of divisions in x
Float_t fYCmin; // Minimum y on grid
Float_t fYCmax; // Maximum y on grid
Int_t fNy; // Number of divisions in y
Float_t fZmin; // Minimum z on grid
Float_t fZmax; // Maximum z on grid
Int_t fNz; // Number of divisions in z
Int_t fIpart; // Particle type
ClassDef(AliGenScan,1) //Partcles on a regular grid
};
#endif