CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/MuonAnalysis/MomentumScaleCalibration/plugins/TreeSplitter.h

Go to the documentation of this file.
00001 #ifndef TreeSplitter_HH
00002 #define TreeSplitter_HH
00003 
00004 // -*- C++ -*-
00005 //
00006 // Package:    TreeSplitter
00007 // Class:      TreeSplitter
00008 // 
00016 //
00017 // Original Author:  Marco De Mattia
00018 //         Created:  Thu Sep 11 12:16:00 CEST 2008
00019 // $Id: TreeSplitter.h,v 1.1 2010/07/13 10:50:38 demattia Exp $
00020 //
00021 
00022 #include "FWCore/Framework/interface/MakerMacros.h"
00023 #include "FWCore/Framework/interface/Frameworkfwd.h"
00024 #include "FWCore/Framework/interface/EDAnalyzer.h"
00025 #include "FWCore/Framework/interface/Event.h"
00026 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00027 #include <MuonAnalysis/MomentumScaleCalibration/interface/RootTreeHandler.h>
00028 
00029 class TreeSplitter : public edm::EDAnalyzer
00030 {
00031 public:
00032   explicit TreeSplitter(const edm::ParameterSet&);
00033   ~TreeSplitter();
00034 
00035 private:
00036   virtual void analyze(const edm::Event&, const edm::EventSetup&) {};
00037   virtual void endJob();
00038 
00039   TString treeFileName_;
00040   TString outputFileName_;
00041   int32_t maxEvents_;
00042   uint32_t subSampleFirstEvent_;
00043   uint32_t subSampleMaxEvents_;
00044 };
00045 
00046 #endif // TREESPLITTER_HH