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

Comparing UserCode/MitProd/TreeFiller/src/BaseFiller.cc (file contents):
Revision 1.1 by paus, Wed Jun 18 13:23:22 2008 UTC vs.
Revision 1.3 by loizides, Thu Jun 19 16:53:43 2008 UTC

# Line 6 | Line 6 | using namespace std;
6   using namespace edm;
7   using namespace mithep;
8  
9 < //-------------------------------------------------------------------------------------------------
10 < BaseFiller::BaseFiller(const ParameterSet &cfg) :
11 <  config_(&cfg)
9 > //--------------------------------------------------------------------------------------------------
10 > BaseFiller::BaseFiller(const ParameterSet &cfg, const char *name) :
11 >  name_(name),
12 >  config_(cfg.exists(name) ? cfg.getUntrackedParameter<ParameterSet>(name) : ParameterSet()),
13 >  active_(config_.getUntrackedParameter<bool>("active",true))
14   {
15   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines