Fork me on GitHub

Changeset 307 in svn for trunk/src/LHCOConverter.cc


Ignore:
Timestamp:
Mar 9, 2009, 9:47:21 PM (16 years ago)
Author:
severine ovyn
Message:

LHCO advanced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/LHCOConverter.cc

    r288 r307  
    6666        }
    6767        else {
    68                 outputfilename_.replace(r_find,5,".lhco");
     68                outputfilename_.replace(r_find,5,"_events.lhco");
    6969                ofstream outfile( outputfilename_.c_str());
    7070                outfile.close();
     
    138138
    139139    outfile << setw(3) << line++  << setw(4) << " " << setw(7) << event << setw(7) << triginfo << endl;
    140     outfile.close();
    141140
    142141    // 0 photon data
    143     //outfile << BranchReader(branchPhoton,line,lhcoPhotonID);
    144142    BranchReader(branchPhoton,line,lhcoPhotonID);
    145143
     
    161159  } // event loop
    162160
     161  outfile.close();
    163162  delete triggerTree;
    164163  delete analysisTree;
     
    180179        jmass = pmu.M();
    181180        float ntrk = 0.0;
     181        float btag =0;
     182        double ratioE = 0;
     183
    182184        if(lhcoID == lhcoElectronID) { TRootElectron elec(*((TRootElectron*) branch->At(i))); ntrk = elec.Charge; }
    183185        else if (lhcoID == lhcoMuonID) { TRootMuon muon(*((TRootMuon*) branch->At(i))); ntrk = muon.Charge; }
    184186        else if (lhcoID == lhcoTauJetID) { TRootTauJet taujet(*((TRootTauJet*) branch->At(i))); ntrk = taujet.Charge; }
    185         float btag =0;
    186         double ratioE = 0;
     187        else if (lhcoID == lhcoJetID) { TRootJet jet(*((TRootJet*) branch->At(i))); ntrk = jet.NTracks; btag = jet.Btag;}
    187188        if(lhcoID != lhcoETmisID) {
    188189        outfile << fixed << setprecision(3)
Note: See TracChangeset for help on using the changeset viewer.