KaliVeda
Toolkit for HIC analysis
KVFAZIAIDSiCsI.cpp
1 //Created by KVClassFactory on Tue Sep 8 16:14:25 2015
2 //Author: ,,,
3 
4 #include "KVFAZIAIDSiCsI.h"
5 #include "KVDataSet.h"
6 
8 
9 // BEGIN_HTML <!--
11 /* -->
12 <h2>KVFAZIAIDSiCsI</h2>
13 <h4>id telescope to manage FAZIA Si-CsI identification</h4>
14 <!-- */
15 // --> END_HTML
17 
18 
19 
23 {
24  // Default constructor
25  SetType("Si-CsI");
26  SetLabel("FAZIA.Si-CsI");
27  fBelowProton = 0;
28  fSiThreshold = 0;
29  fMaxZ = 16.5;
30  fSigmaZ = .4;
31 
32 }
33 
34 
35 
36 
39 
41 {
42  //Particle identification and code setting using identification grid (class KVIDZAGrid).
44 
45  Double_t csi, si2;
46  GetIDGridCoords(csi, si2, TheGrid, x, y);
47  if (fBelowProton) {
50  }
51  else {
53  }
54 
55  return ok;
56 }
57 
58 
59 //____________________________________________________________________________________
60 
61 //void KVFAZIAIDSiCsI::Initialize()
62 //{
63 // // Initialisation of telescope before identification.
64 // // This method MUST be called once before any identification is attempted.
65 // // Initialisation of grid is performed here.
66 // // IsReadyForID() will return kTRUE if a grid is associated to this telescope for the current run.
67 
68 // KVIDTelescope::Initialize();
69 
70 // ResetBit(kReadyForID);
71 // TheGrid = (KVIDZAGrid*) GetIDGrid();
72 // if (TheGrid) {
73 // //printf("Grid Found\n");
74 // SetHasMassID(TheGrid->HasMassIDCapability());
75 // TheGrid->Initialize();
76 // fBelowProton = (KVIDCutLine*)TheGrid->GetCut("PIEDESTAL");
77 // fSiThreshold = (KVIDCutLine*)TheGrid->GetCut("threshold");
78 // // make sure both x & y axes' signals are well set up
79 // if (!fGraphCoords[TheGrid].fVarX || !fGraphCoords[TheGrid].fVarY) {
80 // Warning("Initialize",
81 // "ID tel. %s: grid %s has undefined VarX(%s:%p) or VarY(%s:%p) - WILL NOT USE",
82 // GetName(), TheGrid->GetName(), TheGrid->GetVarX(), fGraphCoords[TheGrid].fVarX, TheGrid->GetVarY(), fGraphCoords[TheGrid].fVarY);
83 // }
84 // else
85 // SetBit(kReadyForID);
86 // }
87 // else {
88 // ResetBit(kReadyForID);
89 // }
90 
91 
92 
93 // if (!gDataSet->HasCalibIdentInfos()) {// for filtering simulations
94 // SetBit(kReadyForID);
95 // SetHasMassID();// in principle mass identification always possible
96 // }
97 //}
98 
99 
bool Bool_t
double Double_t
KVIDCutLine * fBelowProton
;
virtual Bool_t Identify(KVIdentificationResult *, Double_t x=-1., Double_t y=-1.)
Particle identification and code setting using identification grid (class KVIDZAGrid).
KVIDZAGrid * TheGrid
telescope's grid
virtual Bool_t TestPoint(Double_t x, Double_t y)
Definition: KVIDCutLine.h:68
virtual Bool_t Identify(KVIdentificationResult *, Double_t x=-1., Double_t y=-1.)
void GetIDGridCoords(Double_t &X, Double_t &Y, KVIDGraph *grid, Double_t x=-1, Double_t y=-1)
Full result of one attempted particle identification.
Int_t deltaEpedestal
special code for handling particles which give no signal in deltaE
Double_t y[n]
Double_t x[n]
ClassImp(TPyArg)