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

Comparing UserCode/L1RpcTriggerAnalysis/src/AnaEmu.cc (file contents):
Revision 1.2 by konec, Fri Dec 2 10:01:53 2011 UTC vs.
Revision 1.4 by konec, Tue Oct 2 13:21:27 2012 UTC

# Line 15 | Line 15 | namespace {
15    TH1D  *hEmu_Muon, *hEmu_Wide, *hEmu_L1Rpc;
16   }
17  
18 < AnaEmu::AnaEmu(TObjArray& histos)
19 <  : debug(false)
18 > void AnaEmu::init(TObjArray& histos)
19   {
20   hEmu_Muon= new TH1D( "hEmu_Muon", "hEmu_Muon", 64, -1.6, 1.6);  histos.Add( hEmu_Muon);
21   hEmu_Wide= new TH1D( "hEmu_Wide", "hEmu_Wide", 64, -1.6, 1.6);  histos.Add( hEmu_Wide);
# Line 43 | Line 42 | void AnaEmu::run( const EventObj* event,
42    if (l1Rpcs.size() > 0) hEmu_L1Rpc->Fill(muon->eta());
43    if (l1RpcsEmu.size() > 0) hEmu_Wide->Fill(muon->eta());
44    if (l1Rpcs.size() > 0 && l1RpcsEmu.size()==0) {
45 <     std::cout <<"has no Emu but Rpc, run="<<event->run<<" lumi="<<event->lumi<<std::endl;
45 > //     std::cout <<"has no Emu but Rpc, run="<<event->run<<" lumi="<<event->lumi<<std::endl;
46   //     debug = true;
47    }
48    if (debug) std::cout <<"MUON: pt="<<muon->pt()<<" eta="<<muon->eta()<<std::endl;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines