/[PAMELA software]/eventviewer/flight/src/FEVdetector.cpp
ViewVC logotype

Diff of /eventviewer/flight/src/FEVdetector.cpp

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

revision 1.18 by mocchiut, Fri Mar 30 11:16:43 2007 UTC revision 1.19 by mocchiut, Tue Apr 17 16:05:21 2007 UTC
# Line 136  void FEVdetector::SetDDEC(TString de){ Line 136  void FEVdetector::SetDDEC(TString de){
136  void FEVdetector::GetWindow(){  void FEVdetector::GetWindow(){
137    //    //
138    if ( level.file == 2 ){    if ( level.file == 2 ){
139        //    printf("0qui\n");
140      L2->GetEntry(minevent);      L2->GetEntry(minevent);
141    } else {    } else {
142      otr->GetEntry(minevent);      otr->GetEntry(minevent);
# Line 152  void FEVdetector::GetWindow(){ Line 153  void FEVdetector::GetWindow(){
153    };    };
154    //    //
155    if ( level.file == 2 ){    if ( level.file == 2 ){
156        //    printf("1qui\n");
157      L2->GetEntry(maxevent);      L2->GetEntry(maxevent);
158    } else {    } else {
159      otr->GetEntry(maxevent);      otr->GetEntry(maxevent);
# Line 193  void FEVdetector::GetEntry(Int_t i){ Line 195  void FEVdetector::GetEntry(Int_t i){
195    thisentry = i;      thisentry = i;  
196    if ( level.file == 2 ){    if ( level.file == 2 ){
197      L2->Clear();      L2->Clear();
198        //    printf("qui\n");
199      L2->GetEntry(i);      L2->GetEntry(i);
200      ShowInfo("RunInfo");      ShowInfo("RunInfo");
201      ShowInfo("SoftInfo");      ShowInfo("SoftInfo");
# Line 1011  int FEVdetector::SelectEvent(){ Line 1014  int FEVdetector::SelectEvent(){
1014    //    //
1015  }  }
1016    
1017  TChain* FEVdetector::Load(TFile &mainfile){  TChain* FEVdetector::Load(TString file){
1018    //    //
1019    file = &mainfile;    //  file = &mainfile;
1020    //    //
1021    if ( level.file == 2 ){    if ( level.file == 2 ){
1022      //      //
1023      printf(" %s \n",ddec.Data());      printf(" %s \n",ddec.Data());
1024      if ( !L2 ){      if ( !L2 ){
1025        L2 = new PamLevel2("",file->GetName(),ddec.Data());        L2 = new PamLevel2("",file.Data(),ddec.Data());
1026        otr = L2->GetPamTree();        otr = L2->GetPamTree();
1027          printf(" l2 constructor\n");
1028          //      printf(" abst %u obt %u qtot %f \n",L2->GetOrbitalInfo()->absTime,L2->GetOrbitalInfo()->OBT,L2->GetCaloLevel2()->qtot);    
1029      } else {      } else {
1030        //        //
1031        otr = L2->GetPamTree(gSystem->DirName(file->GetName()),file->GetName(),ddec.Data());        printf(" l2 already exist \n");
1032        L2->GetRunTree(gSystem->DirName(file->GetName()),file->GetName());        otr = L2->GetPamTree(gSystem->DirName(file.Data()),file.Data(),ddec.Data());
1033          L2->GetRunTree(gSystem->DirName(file.Data()),file.Data());
1034        //        //
1035      };      };
1036      //      //
# Line 1089  TChain* FEVdetector::Load(TFile &mainfil Line 1095  TChain* FEVdetector::Load(TFile &mainfil
1095      tof = new pamela::tof::TofEvent();      tof = new pamela::tof::TofEvent();
1096      //      //
1097      otr = new TChain("Physics");      otr = new TChain("Physics");
1098      otr->Add(file->GetName(),-1);      otr->Add(file.Data(),-1);
1099      otr->SetBranchAddress("Trigger", &trigger);      otr->SetBranchAddress("Trigger", &trigger);
1100      otr->SetBranchAddress("Header", &eh);      otr->SetBranchAddress("Header", &eh);
1101    };    };

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.23