KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVFAZIAIDCsI.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Tue Sep 8 16:00:28 2015
2 //Author: ,,,
3 
4 #include "KVFAZIAIDCsI.h"
5 #include "KVIDGCsI.h"
7 #include "KVDataSet.h"
8 
10 
11 // BEGIN_HTML <!--
13 /* -->
14 <h2>KVFAZIAIDCsI</h2>
15 <h4>id telescope to manage FAZIA CsI identification</h4>
16 <!-- */
17 // --> END_HTML
19 
20 
21 
25 {
26  // Default constructor
27  SetType("CsI");
28  fMaxZ = 22.5; // dummy hight values, hard threshold at Z=4 set by CanIdentify() Mmethod
29  fSigmaZ = .5;
30  /* in principle all CsI R-L telescopes can identify mass & charge */
31  SetHasMassID(kTRUE);
32 }
33 
34 
35 
42 
44 {
45  // Particle identification and code setting using identification grid
46  //
47  // To enable use of either KVIDGCsI (fast-slow grid a la INDRA) or KVIDZAGrid
48  // (a la Valdre style), we override KVIDTelescope::Identify in order to correctly
49  // label particles identified as gammas.
50 
52 
53  // did we just see a gamma ?
54  if (IDR->IDquality == KVIDGCsI::kICODE10
55  || (IDR->IDquality == KVIDZAGrid::kICODE8 && IDR->Rejecting_Cut == "gamma_line")) {
56  IDR->IDOK = true;
57  IDR->IDcode = 0; // kludge: should be KVFAZIA::IDCodes::ID_GAMMA, but would require moving class to 'geometry'
58  ok = kTRUE;
60  IDR->Z = 0;
61  IDR->A = 1;
62  }
63  return ok;
64 }
65 
66 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
bool Bool_t
double Double_t
const Bool_t kTRUE
virtual Bool_t Identify(KVIdentificationResult *, Double_t x=-1., Double_t y=-1.)
virtual Bool_t Identify(KVIdentificationResult *, Double_t x=-1., Double_t y=-1.)
Full result of one attempted particle identification.
Bool_t IDOK
general quality of identification, =kTRUE if acceptable identification made
TString Rejecting_Cut
name of cut in grid which rejected particle for identification
Int_t A
A of particle found (if Aident==kTRUE)
Int_t Z
Z of particle found (if Zident==kTRUE)
Int_t IDquality
specific quality code returned by identification procedure
Int_t IDcode
a general identification code for this type of identification
Double_t y[n]
Double_t x[n]