ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/kiesel/TreeWriter/executable.cc
Revision: 1.3
Committed: Fri Apr 19 10:14:01 2013 UTC (12 years ago) by kiesel
Content type: text/plain
Branch: MAIN
Changes since 1.2: +3 -1 lines
Log Message:
runs smothly

File Contents

# User Rev Content
1 kiesel 1.1 #include "treeWriter.h"
2    
3     int main( int argc, char** argv ) {
4    
5     std::string filename = "../susyEvents.root";
6 kiesel 1.3 //std::string filename = "dcache:dcap://dcache-cms-dcap.desy.de/pnfs/desy.de/cms/tier2/store/user/jschulz/nTuples/WJets_V01/susyEvents_812_1_Fbi.root";
7 kiesel 1.1 std::string outputFilename = "susyTree.root";
8    
9 kiesel 1.2 TreeWriter *tw = new TreeWriter( filename, outputFilename, 0 );
10 kiesel 1.1
11     // settings
12     tw->PileUpWeightFile("pileUpReweighting/puWeights.root");
13 kiesel 1.3 tw->SetProcessNEvents(-1);
14     tw->SetReportEvents(1000);
15 kiesel 1.1 tw->SkimEvents(true);
16     tw->Loop();
17    
18     }
19