ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/lucieg/interface/FWLiteTSelector.h
Revision: 1.2
Committed: Wed May 26 16:52:21 2010 UTC (14 years, 11 months ago) by lucieg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef PFAnalyses_VBFHTauTau_FWLiteTSelector_h
2 #define PFAnalyses_VBFHTauTau_FWLiteTSelector_h
3 // -*- C++ -*-
4 //
5 // Class : FWLiteTSelector
6 //
7 /**\class FWLiteTSelector
8
9 Description: A ROOT TSelector which accesses data using an edm::Event
10 Version updated and adapted to FWLiteAnalysis framework.
11
12 */
13 //
14 // Original Author: Chris Jones
15 // Created: Tue Jun 27 16:37:27 EDT 2006
16 // Updated by Artur Kalinowski
17 // Fri Sep 18 13:54:16 CEST 2009
18 //
19 //
20
21
22 #include <string>
23
24 // system include files
25 #include "TSelector.h"
26
27 // user include files
28 #include "boost/shared_ptr.hpp"
29
30 // forward declarations
31 class TFile;
32 class TList;
33 class TTree;
34 class TProofOutputFile;
35
36 class FWLiteTreeAnalyzer;
37
38 #include "DataFormats/FWLite/interface/ChainEvent.h"
39
40 namespace pfAnalyses{
41
42 class FWLiteTSelector : public TSelector
43 {
44
45 public:
46 FWLiteTSelector();
47 virtual ~FWLiteTSelector();
48
49 private:
50 FWLiteTSelector(const FWLiteTSelector&); // stop default
51
52 const FWLiteTSelector& operator=(const FWLiteTSelector&); // stop default
53
54 virtual void Begin(TTree *) ;
55 virtual void SlaveBegin(TTree *);
56 virtual void Init(TTree*);
57 virtual Bool_t Notify() ;
58 virtual Bool_t Process(Long64_t /*entry*/) ;
59 virtual void SlaveTerminate();
60 virtual void Terminate();
61 virtual Int_t Version() const { return 1; }
62
63 void setupNewFile(TFile&);
64 // ---------- member data --------------------------------
65 int tmp_;
66 int lastEntry_;
67 std::string sampleName_;
68 std::string fileName_;
69 bool everythingOK_;
70 boost::shared_ptr<fwlite::ChainEvent> event_;
71 TTree *tree_;
72
73 FWLiteTreeAnalyzer *fwLiteTreeAnalyzer_;
74 TProofOutputFile *fProofFile_;
75 TFile *fFile_;
76
77
78 };
79 }
80
81 #endif