/[PAMELA software]/DarthVader/OrbitalInfo/src/OrbitalInfo.cpp
ViewVC logotype

Diff of /DarthVader/OrbitalInfo/src/OrbitalInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by mocchiut, Wed Oct 1 15:25:44 2008 UTC revision 1.12 by mocchiut, Fri Oct 31 15:49:00 2008 UTC
# Line 33  void OrbitalInfo::Set(){//ELENA Line 33  void OrbitalInfo::Set(){//ELENA
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    //    //

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.23