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 |
|
|
|