33 |
if ( !OrbitalInfoTrk ) OrbitalInfoTrk = new TClonesArray("OrbitalInfoTrkVar",2); //ELENA |
if ( !OrbitalInfoTrk ) OrbitalInfoTrk = new TClonesArray("OrbitalInfoTrkVar",2); //ELENA |
34 |
}//ELENA |
}//ELENA |
35 |
|
|
36 |
|
OrbitalInfoTrkVar *OrbitalInfo::GetOrbitalInfoTrkVar(Int_t itrk){ |
37 |
|
// |
38 |
|
if(itrk >= ntrk()){ |
39 |
|
printf(" OrbitalInfo ERROR: track related variables set %i does not exists! \n",itrk); |
40 |
|
printf(" stored track related variables = %i \n",ntrk()); |
41 |
|
return(NULL); |
42 |
|
} |
43 |
|
// |
44 |
|
if(!OrbitalInfoTrk)return 0; //ELENA |
45 |
|
TClonesArray &t = *(OrbitalInfoTrk); |
46 |
|
OrbitalInfoTrkVar *orbtrack = (OrbitalInfoTrkVar*)t[itrk]; |
47 |
|
return orbtrack; |
48 |
|
} |
49 |
|
|
50 |
void OrbitalInfo::Clear(Option_t *t){ |
void OrbitalInfo::Clear(Option_t *t){ |
51 |
// |
// |