/[PAMELA software]/yoda/event/PamelaRun.cpp
ViewVC logotype

Diff of /yoda/event/PamelaRun.cpp

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

revision 6.8 by pam-rm2, Wed Aug 23 14:39:44 2006 UTC revision 6.9 by mocchiut, Mon Oct 16 10:59:12 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: kusanagi $   * $Author: pam-rm2 $
3   * $Date: 2006/06/26 08:43:20 $   * $Date: 2006/08/23 14:39:44 $
4   * $Revision: 6.6 $   * $Revision: 6.8 $
5   *   *
6   * Implementation of the PamelaRun class.   * Implementation of the PamelaRun class.
7   */   */
# Line 30  extern "C" { Line 30  extern "C" {
30  #include "DirectoryStructure.h"  #include "DirectoryStructure.h"
31  }  }
32    
33    extern int GetYODAver();
34    
35  using namespace pamela;  using namespace pamela;
36    
37  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.PamelaRun"));  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.PamelaRun"));
# Line 504  void PamelaRun::WriteFiles(void) { Line 506  void PamelaRun::WriteFiles(void) {
506      }      }
507    }    }
508    
509      TTree *softinfo = 0;
510      Int_t version=GetYODAver();
511      //Int_t version= 60312;
512      //printf("version = %f \n",version);
513      softinfo = new TTree("SoftInfo","YODA software info");
514      softinfo->Branch("SoftInfo",&version,"version/I");
515      softinfo->Fill();
516    
517    for (TTreeListMap::iterator i = WritingRootTrees.begin();    for (TTreeListMap::iterator i = WritingRootTrees.begin();
518         i != WritingRootTrees.end(); i++) {         i != WritingRootTrees.end(); i++) {
519      for (TTreeList::iterator j = i->second.begin();      for (TTreeList::iterator j = i->second.begin();
# Line 511  void PamelaRun::WriteFiles(void) { Line 521  void PamelaRun::WriteFiles(void) {
521        (*j)->GetCurrentFile()->Write(0,TObject::kOverwrite);        (*j)->GetCurrentFile()->Write(0,TObject::kOverwrite);
522      }      }
523    }    }
524      
525      softinfo->Delete();
526  }  }
527    
528  /**  /**

Legend:
Removed from v.6.8  
changed lines
  Added in v.6.9

  ViewVC Help
Powered by ViewVC 1.1.23