KaliVeda
Toolkit for HIC analysis
KVFAZIAIDCsI.cpp
1 //Created by KVClassFactory on Tue Sep 8 16:00:28 2015
2 //Author: ,,,
3 
4 #include "KVFAZIAIDCsI.h"
5 #include "KVIDGCsI.h"
6 #include "KVIdentificationResult.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  SetLabel("FAZIA.CsI");
29  fMaxZ = 22.5; // dummy hight values, hard threshold at Z=4 set by CanIdentify() Mmethod
30  fSigmaZ = .5;
31  /* in principle all CsI R-L telescopes can identify mass & charge */
32  SetHasMassID(kTRUE);
33 }
34 
35 
36 
43 
45 {
46  // Particle identification and code setting using identification grid
47  //
48  // To enable use of either KVIDGCsI (fast-slow grid a la INDRA) or KVIDZAGrid
49  // (a la Valdre style), we override KVIDTelescope::Identify in order to correctly
50  // label particles identified as gammas.
51 
53 
54  // did we just see a gamma ?
55  if (IDR->IDquality == KVIDGCsI::kICODE10
56  || (IDR->IDquality == KVIDZAGrid::kICODE8 && IDR->Rejecting_Cut == "gamma_line")) {
57  IDR->IDOK = true;
58  IDR->IDcode = 0; // kludge: should be KVFAZIA::IDCodes::ID_GAMMA, but would require moving class to 'geometry'
59  ok = kTRUE;
61  IDR->Z = 0;
62  IDR->A = 1;
63  }
64  return ok;
65 }
66 
67 
bool Bool_t
double Double_t
constexpr 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]
ClassImp(TPyArg)