ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/SFrameTools/src/LuminosityHandler.cxx
(Generate patch)

Comparing UserCode/UHHAnalysis/SFrameTools/src/LuminosityHandler.cxx (file contents):
Revision 1.1 by peiffer, Fri May 25 09:31:04 2012 UTC vs.
Revision 1.2 by rkogler, Wed Jun 6 08:51:12 2012 UTC

# Line 86 | Line 86 | bool LuminosityHandler::Initialise()
86  
87     if( !m_lumiFileName.empty() ){
88  
89 //      TFile *testfile =  new TFile( "/afs/naf.desy.de/user/p/peiffer/CMSSW_5_2_3_patch4/src/UHHAnalysis/NtupleWriter/test.root", "READ");
90
91 //      TTree *testTr = (TTree*)testfile->Get( "AnalysisTree" );
92
93 //      TString* testString;
94 //      testTr->SetBranchAddress( "HLTpath", &testString);
95
96 //       for( Int_t ientry = 0; ientry<testTr->GetEntries(); ientry++){
97 //          testTr->GetEntry( ientry );
98 //       std::cout << testString->Data() << std::endl;
99 //       }
100 //       testfile->Close();
101
89        TFile *lumifile = new TFile( grl_dir + m_lumiFileName.c_str(), "READ");
90        if( lumifile == NULL ){
91           m_logger << FATAL << "Lumi File \"" << m_lumiFileName << "\" doesn't exist or cannot be opened!"
# Line 113 | Line 100 | bool LuminosityHandler::Initialise()
100           exit(-1);
101        }
102          
103 +      m_logger << INFO << "Set directory to \"" << grl_dir << "\"." << SLogger::endmsg;
104 +
105        m_logger << INFO << "Using LumiFile \"" << m_lumiFileName
106                 << "\", luminosity calculation with Trigger \"" << m_triggerName  << "\"!" << SLogger::endmsg;
107  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines