HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hrpcclustersim.cc
Go to the documentation of this file.
1 //*-- AUTHOR : Diego Gonzalez-Diaz 19/12/2007
2 //*-- Modified: 12/12/2009
3 //(Included flag 'isAtBox').
4 //*-- Modified: 29/12/2009
5 // Geant references and tracks extended to 10-dimensional arrays
6 //
7 //_HADES_CLASS_DESCRIPTION
8 ///////////////////////////////////////////////////////////////////////////////
9 // //
10 // HRpcClusterSim //
11 // this is the ClusterSim data level for simulated data //
12 ///////////////////////////////////////////////////////////////////////////////
13 
14 #include "hrpcclustersim.h"
15 
17 
19  clear();
20 }
21 
23  // clears the object
24 
26  isAtBox = kFALSE;
27 
28  for(Int_t i=0;i<4;i++) TrackList[i] = -999;
29  for(Int_t i=0;i<4;i++) RefList[i] = -999;
30  for(Int_t i=0;i<4;i++) isAtBoxList[i] = kFALSE;
31 
32 }
33 
35 
36  for(Int_t i=0;i<4;i++){
37  if (TrackList[i]==track) return kTRUE;
38  else return kFALSE;
39  }
40  return -1;
41 }
42 
43 Bool_t HRpcClusterSim::isRef(Int_t ref) {
44 
45  for(Int_t i=0;i<4;i++){
46  if (RefList[i]==ref) return kTRUE;
47  else return kFALSE;
48  }
49  return -1;
50 }
Int_t TrackList[4]
ClassImp(HRpcClusterSim) HRpcClusterSim
void clear(void)
Bool_t isRef(Int_t ref)
Bool_t isAtBoxList[4]
Int_t RefList[4]
Bool_t isTrack(Int_t track)