ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/dasu/UltraFastSim/Analysis.cc
(Generate patch)

Comparing UserCode/dasu/UltraFastSim/Analysis.cc (file contents):
Revision 1.2 by dasu, Wed Feb 16 00:33:49 2011 UTC vs.
Revision 1.3 by dasu, Fri Feb 25 15:37:18 2011 UTC

# Line 86 | Line 86 | bool Analysis::run() {
86    _np=0;
87    _npc=0;
88  
89 <  vector<fastjet::PseudoJet> sortedbJets; //create a pseudojet
90 <  sortedbJets = sorted_by_pt(ufs->bJetList()); //psuedojet is filled with bjets that are sorted by pt
91 <  
89 >  vector<TLorentzVector> sortedbJets = ufs->bJetList();
90    // below is to work out what taulist and gentaulist is
91    int countertau_fin(0), countertau_nf(0), countermu_fin(0), countermu_nf(0);
92    for (int i = 0; i < pythia->event.size(); ++i){
# Line 193 | Line 191 | bool Analysis::run() {
191  
192        //checks the number of bjets with pt over cut
193        for(unsigned int bi =0; bi<ufs->bJetList().size(); bi++){
194 <        if(abs(sortedbJets[bi].perp())>bjet_ptcut) bjet_counter25++; //this counts the bjets that pass cutt
195 <        bjet_pt->Fill(abs(sortedbJets[bi].perp()));
194 >        if(abs(sortedbJets[bi].Et())>bjet_ptcut) bjet_counter25++; //this counts the bjets that pass cutt
195 >        bjet_pt->Fill(abs(sortedbJets[bi].Et()));
196        }
197  
198        //implement the cut on event of btagging

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines