ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeService/src/TreeService.cc
(Generate patch)

Comparing UserCode/MitProd/TreeService/src/TreeService.cc (file contents):
Revision 1.6 by loizides, Fri Jun 20 17:52:24 2008 UTC vs.
Revision 1.7 by loizides, Tue Jul 1 16:33:55 2008 UTC

# Line 15 | Line 15 | using namespace mithep;
15  
16   //--------------------------------------------------------------------------------------------------
17   TreeService::TreeService(const ParameterSet &cfg, ActivityRegistry &r) :
18 <  tws_        (0)
18 >  tws_(0)
19   {
20    if (cfg.exists("treeNames"))
21      treeNames_=cfg.getUntrackedParameter<vector<string>   >("treeNames");
# Line 67 | Line 67 | TreeService::TreeService(const Parameter
67    for (unsigned int i=0; i<treeNames_.size(); ++i) {
68  
69      TreeWriter *t = new TreeWriter(treeNames_.at(i).c_str(),1);
70
70      t->SetPrefix(fileNames_.at(i).c_str());
71  
72 <    if      (i<pathNames_.size())
72 >    if (i<pathNames_.size())
73        t->SetBaseURL(pathNames_.at(i).c_str());
74      else if (pathNames_.size()>0)
75        t->SetBaseURL(pathNames_.at(0).c_str());
76  
77 <    if      (i<maxSizes_.size())
77 >    if (i<maxSizes_.size())
78        t->SetMaxSize((Long64_t)maxSizes_.at(i)*1024*1024);
79      else if (maxSizes_.size()>0)
80        t->SetMaxSize((Long64_t)maxSizes_.at(0)*1024*1024);
81  
82 <    if      (i<compLevels_.size())
82 >    if (i<compLevels_.size())
83        t->SetCompressLevel(compLevels_.at(i));
84      else if (compLevels_.size()>0)
85        t->SetCompressLevel(compLevels_.at(0));
86  
87 <    if      (i<splitLevels_.size())
87 >    if (i<splitLevels_.size())
88        t->SetDefaultSL(splitLevels_.at(i));
89      else if (splitLevels_.size()>0)
90        t->SetDefaultSL(splitLevels_.at(0));
91  
92 <    if      (i<brSizes_.size())
92 >    if (i<brSizes_.size())
93        t->SetDefaultBrSize(brSizes_.at(i));
94      else if (brSizes_.size()>0)
95        t->SetDefaultBrSize(brSizes_.at(0));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines