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

Comparing UserCode/MitProd/TreeFiller/src/FillMitTree.cc (file contents):
Revision 1.3 by loizides, Thu Jun 19 16:53:43 2008 UTC vs.
Revision 1.5 by loizides, Tue Jun 24 14:25:46 2008 UTC

# Line 6 | Line 6
6   #include "MitProd/TreeService/interface/TreeService.h"
7   #include "MitProd/TreeFiller/interface/FillerMetaInfos.h"
8   #include "MitProd/TreeFiller/interface/FillerGlobalMuons.h"
9 + #include "MitProd/TreeFiller/interface/FillerGenParts.h"
10  
11   using namespace std;
12   using namespace edm;
# Line 60 | Line 61 | void FillMitTree::beginJob(const edm::Ev
61  
62    // Loop over the various components and book the branches
63    for (std::vector<BaseFiller*>::iterator iF = fillers_.begin(); iF != fillers_.end(); ++iF) {
64 <    (*iF)->BookDataBlock(tws);
64 >    (*iF)->BookDataBlock(*tws);
65    }
65  return;
66   }
67  
68   //-------------------------------------------------------------------------------------------------
# Line 83 | Line 83 | bool FillMitTree::configure(const edm::P
83    else
84      delete fillerGlobalMuons;
85  
86 +  FillerGenParts *fillerGenParts = new FillerGenParts(cfg);
87 +  if (fillerGenParts->Active())
88 +    fillers_.push_back(fillerGenParts);
89 +  else
90 +    delete fillerGenParts;
91 +
92    return 1;
93   }
94  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines