1 |
|
// $Id$ |
2 |
|
|
3 |
|
#include "MitAna/Validation/interface/GenRelValMod.h" |
4 |
– |
|
4 |
|
#include "MitAna/DataTree/interface/Names.h" |
6 |
– |
//#include <stdio.h> |
7 |
– |
//#include <iostream> |
8 |
– |
//#include <fstream> |
5 |
|
|
6 |
|
using namespace mithep; |
7 |
|
|
24 |
|
// initialize histograms and other analysis objects and request branches. For this module, we |
25 |
|
// request a branch of the MitTree and open a text file for writing. |
26 |
|
|
31 |
– |
// Request the branches |
27 |
|
ReqBranch(fGenPartName,fParticles); |
28 |
|
|
34 |
– |
// Open file for writing |
29 |
|
ofile = new std::ofstream("macro_output.txt"); |
30 |
|
if (ofile->bad()) { |
31 |
< |
std::cout<<"Problem opening output file\n"; |
31 |
> |
SendError(kAbortAnalysis, "SlaveBegin", "Can not open output file."); |
32 |
|
} |
33 |
|
} |
34 |
|
|
55 |
|
const GenParticle *test = fParticles->At(j); |
56 |
|
if(test==mother) { |
57 |
|
mind=j+1; |
58 |
+ |
// hack to overcome ambiguity |
59 |
+ |
if(mind==5 && I==7 || I==8) mind=0; |
60 |
|
break; |
61 |
|
} |
62 |
|
} |