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.3 by loizides, Thu Jun 19 16:53:43 2008 UTC vs.
Revision 1.6 by loizides, Sun Sep 14 15:37:43 2008 UTC

# Line 1 | Line 1
1   // $Id$
2  
3   #include "MitProd/TreeFiller/interface/BaseFiller.h"
4 + #include <TSystem.h>
5 + #include <TError.h>
6  
7   using namespace std;
8   using namespace edm;
9   using namespace mithep;
10  
11   //--------------------------------------------------------------------------------------------------
12 < BaseFiller::BaseFiller(const ParameterSet &cfg, const char *name) :
12 > BaseFiller::BaseFiller(const ParameterSet &cfg, const char *name, bool active) :
13    name_(name),
14    config_(cfg.exists(name) ? cfg.getUntrackedParameter<ParameterSet>(name) : ParameterSet()),
15 <  active_(config_.getUntrackedParameter<bool>("active",true))
15 >  active_(config_.getUntrackedParameter<bool>("active",active)),
16 >  verify_(config_.getUntrackedParameter<bool>("verify",false)),
17 >  verbose_(config_.getUntrackedParameter<int>("verbose",0))
18   {
19   }
20 +
21 + //--------------------------------------------------------------------------------------------------
22 + void BaseFiller::PrintErrorAndExit(const char *msg) const
23 + {
24 +  Error("PrintErrorAndExit", msg);
25 +  gSystem->Exit(1);
26 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines