KaliVeda
Toolkit for HIC analysis
KVIDINDRACsI.h
1 /***************************************************************************
2  KVIDINDRACsI.h - description
3  -------------------
4  begin : Fri Feb 20 2004
5  copyright : (C) 2004 by J.D. Frankland
6  email : frankland@ganil.fr
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef KVIDINDRACsI_H
19 #define KVIDINDRACsI_H
20 
21 #include "KVINDRAIDTelescope.h"
22 #include "KVIDGraph.h"
23 
31 
36 
37 protected:
38  float smootherstep(float edge0, float edge1, float x);
39  float clamp(float x, float lowerlimit, float upperlimit);
40 
41 public:
42  KVIDINDRACsI();
43  void Initialize()
44  {
46  CsIGrid = GetIDGrid();
47  fRapideLente = CsIGrid && CsIGrid->InheritsFrom("KVIDGCsI");
48  }
49  virtual Bool_t Identify(KVIdentificationResult*, Double_t x = -1., Double_t y = -1.);
50 
51  virtual Bool_t CanIdentify(Int_t Z, Int_t /*A*/)
52  {
57  return (Z < 6);
58  }
60 
61  ClassDef(KVIDINDRACsI, 3) //INDRA identification using CsI R-L matrices
62 };
63 
64 #endif
int Int_t
bool Bool_t
double Double_t
#define ClassDef(name, id)
Base class for particle identification in a 2D map.
Definition: KVIDGraph.h:32
float clamp(float x, float lowerlimit, float upperlimit)
Int_t fThresMin[2][4]
min ID thresholds (smooth step)
Definition: KVIDINDRACsI.h:34
virtual Bool_t CanIdentify(Int_t Z, Int_t)
Definition: KVIDINDRACsI.h:51
virtual Bool_t Identify(KVIdentificationResult *, Double_t x=-1., Double_t y=-1.)
Int_t fThresMax[2][4]
max ID thresholds (smooth step)
Definition: KVIDINDRACsI.h:35
void Initialize()
Definition: KVIDINDRACsI.h:43
void SetIdentificationStatus(KVReconstructedNucleus *n)
Bool_t fRapideLente
set to true when using rapide-lente grid i.e. KVIDGCsI
Definition: KVIDINDRACsI.h:33
KVIDGraph * CsIGrid
telescope's grid
Definition: KVIDINDRACsI.h:32
float smootherstep(float edge0, float edge1, float x)
Scale, and clamp x to 0..1 range.
KVIDGraph * GetIDGrid()
virtual void Initialize(void)
Base class for identification telescopes of INDRA array.
Full result of one attempted particle identification.
Nuclei reconstructed from data measured by a detector array .
virtual Bool_t InheritsFrom(const char *classname) const