KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVFAZIAIDSiCsI.cpp
Go to the documentation of this file.
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  fBelowProton = 0;
27  fSiThreshold = 0;
28  fMaxZ = 16.5;
29  fSigmaZ = .4;
30 
31 }
32 
33 
34 
35 
38 
40 {
41  //Particle identification and code setting using identification grid (class KVIDZAGrid).
43 
44  Double_t csi, si2;
45  GetIDGridCoords(csi, si2, TheGrid, x, y);
46  if (fBelowProton) {
49  }
50  else {
52  }
53 
54  return ok;
55 }
56 
57 
58 //____________________________________________________________________________________
59 
60 //void KVFAZIAIDSiCsI::Initialize()
61 //{
62 // // Initialisation of telescope before identification.
63 // // This method MUST be called once before any identification is attempted.
64 // // Initialisation of grid is performed here.
65 // // IsReadyForID() will return kTRUE if a grid is associated to this telescope for the current run.
66 
67 // KVIDTelescope::Initialize();
68 
69 // ResetBit(kReadyForID);
70 // TheGrid = (KVIDZAGrid*) GetIDGrid();
71 // if (TheGrid) {
72 // //printf("Grid Found\n");
73 // SetHasMassID(TheGrid->HasMassIDCapability());
74 // TheGrid->Initialize();
75 // fBelowProton = (KVIDCutLine*)TheGrid->GetCut("PIEDESTAL");
76 // fSiThreshold = (KVIDCutLine*)TheGrid->GetCut("threshold");
77 // // make sure both x & y axes' signals are well set up
78 // if (!fGraphCoords[TheGrid].fVarX || !fGraphCoords[TheGrid].fVarY) {
79 // Warning("Initialize",
80 // "ID tel. %s: grid %s has undefined VarX(%s:%p) or VarY(%s:%p) - WILL NOT USE",
81 // GetName(), TheGrid->GetName(), TheGrid->GetVarX(), fGraphCoords[TheGrid].fVarX, TheGrid->GetVarY(), fGraphCoords[TheGrid].fVarY);
82 // }
83 // else
84 // SetBit(kReadyForID);
85 // }
86 // else {
87 // ResetBit(kReadyForID);
88 // }
89 
90 
91 
92 // if (!gDataSet->HasCalibIdentInfos()) {// for filtering simulations
93 // SetBit(kReadyForID);
94 // SetHasMassID();// in principle mass identification always possible
95 // }
96 //}
97 
98 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
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:67
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]