ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/src/BaseFiller.cc
Revision: 1.5
Committed: Tue Jul 8 12:38:20 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: MITHEP_2_0_x
Changes since 1.4: +10 -1 lines
Log Message:
Updated Fillers to use GetProduct function in BaseFiller. This function will determine whether a product is valid and otherwise exit.

File Contents

# User Rev Content
1 loizides 1.5 // $Id: BaseFiller.cc,v 1.4 2008/06/20 17:52:57 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.4 active_(config_.getUntrackedParameter<bool>("active",active))
16 paus 1.1 {
17     }
18 loizides 1.5
19     //--------------------------------------------------------------------------------------------------
20     void BaseFiller::PrintErrorAndExit(const char *msg) const
21     {
22     Error("PrintErrorAndExit", msg);
23     gSystem->Exit(1);
24     }