KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVIDINDRACsI.h
Go to the documentation of this file.
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 
30 
35 
36 protected:
37  float smootherstep(float edge0, float edge1, float x);
38  float clamp(float x, float lowerlimit, float upperlimit);
39 
40 public:
41  KVIDINDRACsI();
42  void Initialize()
43  {
45  CsIGrid = GetIDGrid();
46  fRapideLente = CsIGrid && CsIGrid->InheritsFrom("KVIDGCsI");
47  }
48  virtual Bool_t Identify(KVIdentificationResult*, Double_t x = -1., Double_t y = -1.);
49 
50  virtual Bool_t CanIdentify(Int_t Z, Int_t /*A*/)
51  {
56  return (Z < 6);
57  }
59 
60  ClassDef(KVIDINDRACsI, 3) //INDRA identification using CsI R-L matrices
61 };
62 
63 #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:31
float clamp(float x, float lowerlimit, float upperlimit)
Int_t fThresMin[2][4]
min ID thresholds (smooth step)
Definition: KVIDINDRACsI.h:33
virtual Bool_t CanIdentify(Int_t Z, Int_t)
Definition: KVIDINDRACsI.h:50
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:34
void Initialize()
Definition: KVIDINDRACsI.h:42
void SetIdentificationStatus(KVReconstructedNucleus *n)
Bool_t fRapideLente
set to true when using rapide-lente grid i.e. KVIDGCsI
Definition: KVIDINDRACsI.h:32
KVIDGraph * CsIGrid
telescope's grid
Definition: KVIDINDRACsI.h:31
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