ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/Validation/src/GenRelValMod.cc
(Generate patch)

Comparing UserCode/MitAna/Validation/src/GenRelValMod.cc (file contents):
Revision 1.1 by loizides, Thu Jul 10 14:56:27 2008 UTC vs.
Revision 1.2 by loizides, Thu Jul 10 16:23:11 2008 UTC

# Line 1 | Line 1
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  
# Line 28 | Line 24 | void GenRelValMod::SlaveBegin()
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  
# Line 61 | Line 55 | void GenRelValMod::Process()
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          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines