KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVTGIDZ.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  KVTGIDZ.cpp - description
3  -------------------
4  begin : 5 July 2005
5  copyright : (C) 2005 by J.D. Frankland
6  email : frankland@ganil.fr
7 
8 $Id: KVTGIDZ.cpp,v 1.8 2009/03/03 14:27:15 franklan Exp $
9 ***************************************************************************/
10 #include "KVTGIDZ.h"
11 #include "KVIDZAGrid.h"
12 #include "KVIDZALine.h"
13 
14 using namespace std;
15 
17 
18 
19 
25 KVTGIDZ::KVTGIDZ(const Char_t* name,
26  const Char_t* function,
27  Double_t xmin, Double_t xmax, Int_t npar, Int_t x_par,
28  Int_t y_par)
29  : KVTGID(name, function, xmin, xmax, npar, x_par, y_par)
30 {
31  //Create Z identification with given name,
32  //using a KVTGIDFunctions namespace function (e.g. "tassangot_Z"),
33  //for 'x' values from xmin to xmax, npar parameters, and defining
34  //the parameter indices corresponding to 'x' and 'y' coordinates.
35 
36  fZorA = 1; //only Z identification
37 }
38 
39 
40 
41 
49 
50 KVTGIDZ::KVTGIDZ(const Char_t* name, Int_t npar, Int_t type, Int_t light, Int_t mass)
51  : KVTGID(name, "fede", 0.1, 150., npar, 4, 5)
52 {
53  // Create Z identification with given "name", using the generalised
54  // Tassan-Got functional KVTGIDFunctions::fede.
55  // npar = total number of parameters
56  // type = functional type (0: standard, 1:extended)
57  // light = with (1) or without (0) CsI light-energy dependence
58  // mass = mass formula used to calculate A for each Z (see KVNucleus::GetAFromZ)
59 
60  fType = type;
61  fLight = light;
62  fZorA = 1; //only Z identification
63  fMassFormula = mass;
64  SetParameter(0, type);
65  SetParameter(1, light);
66  SetParameter(2, fZorA);
67  SetParameter(3, mass);
68  Int_t np = 6;
69  fLambda = np++;
70  if (type) {
71  fAlpha = np++;
72  fBeta = np++;
73  fMu = np++;
74  fNu = np++;
75  fXi = np++;
76  }
77  else {
78  fMu = np++;
79  }
80  fG = np++;
81  fPdx = np++;
82  fPdy = np++;
83  if (light) fEta = np;
85 }
86 
87 
88 
93 
95 {
96  // Copy constructor. Can be used with any daughter class of KVTGID.
97  // The parameter ZorA is set to 1 (i.e. only Z idenfification) and
98  // the Parameter 3 is the mass formula.
99  init();
100  ((KVTGID&)obj).Copy(*this);
101 
102  // Case where obj is a KVTGIDZA
103  if (!fZorA) {
104  fZorA = 1; //only Z identification
105  SetParameter(2, fZorA);
107  SetParName(3, "MassFormula");
108  }
109 }
110 
111 
112 
115 
117 {
118  //Set atomic number Z of identification line
119  dynamic_cast < KVIDZALine* >(line)->SetZ((Int_t) Z);
120 }
121 
122 
123 
124 
127 
129 {
130  //Add a new KVIDZALine to the grid
131  return (KVIDLine*)g->Add("ID", "KVIDZALine");
132 }
133 
134 
int Int_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char Char_t
double Double_t
int type
Abstract base class for 2D identification grids in e.g. (dE,E) maps.
Definition: KVIDGrid.h:73
Base class for lines/cuts used for particle identification in 2D data maps.
Definition: KVIDLine.h:142
Base class for identification ridge lines corresponding to different nuclear species.
Definition: KVIDZALine.h:32
Abstract base class for charged particle Z identfication using functionals developed by L....
Definition: KVTGIDZ.h:32
virtual KVIDLine * AddLine(KVIDGrid *)
Add a new KVIDZALine to the grid.
Definition: KVTGIDZ.cpp:128
virtual void SetIdent(KVIDLine *, Double_t ID)
Set atomic number Z of identification line.
Definition: KVTGIDZ.cpp:116
KVTGIDZ()
Definition: KVTGIDZ.h:38
Abstract base class for particle identfication using functionals developed by L. Tassan-Got (IPN Orsa...
Definition: KVTGID.h:43
Int_t fLight
with (1) or without (0) CsI light-energy dependence
Definition: KVTGID.h:64
Int_t fNu
Definition: KVTGID.h:60
Int_t fMu
Definition: KVTGID.h:54
Int_t fXi
Definition: KVTGID.h:61
Int_t fG
Definition: KVTGID.h:55
Int_t fZorA
used for Z (1) or A (0) identification
Definition: KVTGID.h:65
void SetLTGParameterNames()
Definition: KVTGID.cpp:723
Int_t fBeta
Definition: KVTGID.h:59
void init()
Definition: KVTGID.cpp:29
Int_t fLambda
indices of parameters
Definition: KVTGID.h:53
Int_t fEta
Definition: KVTGID.h:62
Int_t fMassFormula
mass formula used to calculate A from Z (if Z identification used)
Definition: KVTGID.h:66
Int_t fPdy
Definition: KVTGID.h:57
Int_t fPdx
Definition: KVTGID.h:56
Int_t fType
type of functional (=0 standard, =1 extended)
Definition: KVTGID.h:63
Int_t fAlpha
Definition: KVTGID.h:58
virtual void SetParName(Int_t ipar, const char *name)
virtual void SetParameter(const TString &name, Double_t value)
TLine * line
const long double g
masses
Definition: KVUnits.h:72