Changeset 288 in svn
- Timestamp:
- Mar 3, 2009, 12:45:22 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/LHCOConverter.h
r275 r288 35 35 /// \file LHCOConverter 36 36 /// \brief Converter from ExRootAnalysis to LHCO files 37 37 #include <sstream> 38 38 #include <string> 39 39 using namespace std; … … 53 53 54 54 private: 55 void BranchReader(const TClonesArray*, unsigned int&, unsigned short int ) const; // put it as a operator<< 55 //ostringstream BranchReader(const TClonesArray*, unsigned int&, unsigned short int ) const; // put it as a operator<< 56 void BranchReader(const TClonesArray*, unsigned int&, unsigned short int ) const; 56 57 const string inputfilename_; 57 58 string inputlogname_; -
trunk/src/LHCOConverter.cc
r284 r288 179 179 pmu.SetPtEtaPhiE(particle->PT, particle->Eta, particle->Phi, particle->E); 180 180 jmass = pmu.M(); 181 unsigned int ntrk = 0; 181 float ntrk = 0.0; 182 if(lhcoID == lhcoElectronID) { TRootElectron elec(*((TRootElectron*) branch->At(i))); ntrk = elec.Charge; } 183 else if (lhcoID == lhcoMuonID) { TRootMuon muon(*((TRootMuon*) branch->At(i))); ntrk = muon.Charge; } 184 else if (lhcoID == lhcoTauJetID) { TRootTauJet taujet(*((TRootTauJet*) branch->At(i))); ntrk = taujet.Charge; } 182 185 float btag =0; 183 186 double ratioE = 0;
Note:
See TracChangeset
for help on using the changeset viewer.