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 |
*/ |
*/ |
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")); |
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(); |
521 |
(*j)->GetCurrentFile()->Write(0,TObject::kOverwrite); |
(*j)->GetCurrentFile()->Write(0,TObject::kOverwrite); |
522 |
} |
} |
523 |
} |
} |
524 |
|
|
525 |
|
softinfo->Delete(); |
526 |
} |
} |
527 |
|
|
528 |
/** |
/** |