ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/src/BaseFiller.cc
Revision: 1.6
Committed: Sun Sep 14 15:37:43 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre1, Mit_006b, Mit_006a, Mit_006, Mit_005, Mit_004
Changes since 1.5: +4 -2 lines
Log Message:
Add verbose and verify variables. This can be used by higher level filler to switch on verbosity and verification code

File Contents

# User Rev Content
1 loizides 1.6 // $Id: BaseFiller.cc,v 1.5 2008/07/08 12:38:20 loizides Exp $
2 paus 1.1
3     #include "MitProd/TreeFiller/interface/BaseFiller.h"
4 loizides 1.5 #include <TSystem.h>
5     #include <TError.h>
6 paus 1.1
7     using namespace std;
8     using namespace edm;
9     using namespace mithep;
10    
11 loizides 1.3 //--------------------------------------------------------------------------------------------------
12 loizides 1.4 BaseFiller::BaseFiller(const ParameterSet &cfg, const char *name, bool active) :
13 loizides 1.3 name_(name),
14     config_(cfg.exists(name) ? cfg.getUntrackedParameter<ParameterSet>(name) : ParameterSet()),
15 loizides 1.6 active_(config_.getUntrackedParameter<bool>("active",active)),
16     verify_(config_.getUntrackedParameter<bool>("verify",false)),
17     verbose_(config_.getUntrackedParameter<int>("verbose",0))
18 paus 1.1 {
19     }
20 loizides 1.5
21     //--------------------------------------------------------------------------------------------------
22     void BaseFiller::PrintErrorAndExit(const char *msg) const
23     {
24     Error("PrintErrorAndExit", msg);
25     gSystem->Exit(1);
26     }