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

Comparing UserCode/HbbAnalysis/src/HistosElecsBase.cc (file contents):
Revision 1.4 by amagnan, Fri Mar 26 15:26:10 2010 UTC vs.
Revision 1.5 by amagnan, Fri Mar 26 17:03:58 2010 UTC

# Line 14 | Line 14 | namespace HbbAnalysis {//namespace
14      CreateHistos(aName,aDir);
15  
16      p_pTVeryLoose =  aDir.make<TH1F>("p_pTVeryLoose",";p_{T}^{VeryLoose};N_{entries}",200,0,200);
17 <    p_etaVeryLoose =  aDir.make<TH1F>("p_etaVeryLoose",";#eta^{VeryLoose};N_{entries}",80,-4,4);
17 >    p_etaVeryLoose =  aDir.make<TH1F>("p_etaVeryLoose",";|#eta^{VeryLoose}|;N_{entries}",80,0,4);
18      p_pTLoose =  aDir.make<TH1F>("p_pTLoose",";p_{T}^{Loose};N_{entries}",200,0,200);
19 <    p_etaLoose =  aDir.make<TH1F>("p_etaLoose",";#eta^{Loose};N_{entries}",80,-4,4);
19 >    p_etaLoose =  aDir.make<TH1F>("p_etaLoose",";|#eta^{Loose}|;N_{entries}",80,0,4);
20      p_pTMedium =  aDir.make<TH1F>("p_pTMedium",";p_{T}^{Medium};N_{entries}",200,0,200);
21 <    p_etaMedium =  aDir.make<TH1F>("p_etaMedium",";#eta^{Medium};N_{entries}",80,-4,4);
21 >    p_etaMedium =  aDir.make<TH1F>("p_etaMedium",";|#eta^{Medium}|;N_{entries}",80,0,4);
22      p_pTTight =  aDir.make<TH1F>("p_pTTight",";p_{T}^{Tight};N_{entries}",200,0,200);
23 <    p_etaTight =  aDir.make<TH1F>("p_etaTight",";#eta^{Tight};N_{entries}",80,-4,4);
23 >    p_etaTight =  aDir.make<TH1F>("p_etaTight",";|#eta^{Tight}|;N_{entries}",80,0,4);
24      p_pTSuperTight =  aDir.make<TH1F>("p_pTSuperTight",";p_{T}^{SuperTight};N_{entries}",200,0,200);
25 <    p_etaSuperTight =  aDir.make<TH1F>("p_etaSuperTight",";#eta^{SuperTight};N_{entries}",80,-4,4);
25 >    p_etaSuperTight =  aDir.make<TH1F>("p_etaSuperTight",";|#eta^{SuperTight}|;N_{entries}",80,0,4);
26  
27 +    p_abseta =  aDir.make<TH1F>("p_abseta",";|#eta|;N_{entries}",80,0,4);
28 +
29      p_deltaRJet[0] = aDir.make<TH1F>("p_deltaRJetFlav0",";#Delta R;N_{entries}",100,0,5);
30      p_deltaRJet[1] = aDir.make<TH1F>("p_deltaRJetFlav1",";#Delta R;N_{entries}",100,0,5);
31      p_deltaRJet[2] = aDir.make<TH1F>("p_deltaRJetFlav2",";#Delta R;N_{entries}",100,0,5);
# Line 190 | Line 192 | namespace HbbAnalysis {//namespace
192  
193            if (iId==0 && lVal>0.5) {
194              p_pTLoose->Fill(aElec.recoVars().pT);
195 <            p_etaLoose->Fill(aElec.recoVars().eta);
195 >            p_etaLoose->Fill(fabs(aElec.recoVars().eta));
196            }
197            if (iId==1 && lVal>0.5) {
198              p_pTSuperTight->Fill(aElec.recoVars().pT);
199 <            p_etaSuperTight->Fill(aElec.recoVars().eta);
199 >            p_etaSuperTight->Fill(fabs(aElec.recoVars().eta));
200            }
201            if (iId==2 && lVal>0.5) {
202              p_pTVeryLoose->Fill(aElec.recoVars().pT);
203 <            p_etaVeryLoose->Fill(aElec.recoVars().eta);
203 >            p_etaVeryLoose->Fill(fabs(aElec.recoVars().eta));
204            }
205            if (iId==3 && lVal>0.5) {
206              p_pTMedium->Fill(aElec.recoVars().pT);
207 <            p_etaMedium->Fill(aElec.recoVars().eta);
207 >            p_etaMedium->Fill(fabs(aElec.recoVars().eta));
208            }
209            if (iId==4 && lVal>0.5) {
210              p_pTTight->Fill(aElec.recoVars().pT);
211 <            p_etaTight->Fill(aElec.recoVars().eta);
211 >            p_etaTight->Fill(fabs(aElec.recoVars().eta));
212            }
213  
214  
215          }
216      
217 +        p_abseta->Fill(fabs(aElec.recoVars().eta));
218 +
219          p_scSigmaEtaEta->Fill(aElec.scVars().sigmaEtaEta);
220          p_scSigmaIEtaIEta->Fill(aElec.scVars().sigmaIEtaIEta);
221          p_scE1x5->Fill(aElec.scVars().e1x5);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines