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

Comparing UserCode/MitAna/TreeMod/src/Analysis.cc (file contents):
Revision 1.30 by loizides, Mon Mar 23 08:31:30 2009 UTC vs.
Revision 1.33 by loizides, Fri Jun 19 07:39:01 2009 UTC

# Line 49 | Line 49 | Analysis::Analysis(Bool_t useproof) :
49    fProof(0),
50    fDoNEvents(TChain::kBigNumber),
51    fSkipNEvents(0),
52 +  fPrintScale(100),
53    fCacheSize(-1)
54   {
55    // Default constructor.
# Line 191 | Line 192 | Bool_t Analysis::AddFiles(const char *pn
192    ifstream in;
193    in.open(pname);
194    if (!in) {
195 <    Error("AddFiles", "Can not open file with name %s", pname);
195 >    Error("AddFiles", "Cannot open file with name %s", pname);
196      return kFALSE;
197    }
198  
# Line 386 | Line 387 | Bool_t Analysis::Init()
387        while (TObjString *obj = dynamic_cast<TObjString*>(next())) {
388          fChain->Add(obj->GetName());
389          fSet->Add(obj->GetName());
390 <        if (fCacheSize<0 && obj->GetString().BeginsWith("/castor/cern.ch"))
390 >        if (fCacheSize<0 && obj->GetString().Contains("/castor/"))
391            fCacheSize = 64*1024*1024;
392        }
393      } else {
# Line 397 | Line 398 | Bool_t Analysis::Init()
398        while (TObjString *obj = dynamic_cast<TObjString*>(next())) {
399          chain->Add(obj->GetName());
400          set->Add(obj->GetName());
401 <        if (fCacheSize<0 && obj->GetString().BeginsWith("/castor/cern.ch"))
401 >        if (fCacheSize<0 && obj->GetString().Contains("/castor/"))
402            fCacheSize = 64*1024*1024;
403        }
404  
# Line 423 | Line 424 | Bool_t Analysis::Init()
424    // create our ana framework module
425    AnaFwkMod *anamod = new AnaFwkMod;
426    anamod->SetSkipNEvents(fSkipNEvents);
427 +  anamod->SetPrintScale(fPrintScale);
428    fDeleteList->Add(anamod);
429  
430    // create our HLT framework module

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines