Changes in classes/DelphesLHEFReader.cc [77e9ae1:1d9c62a] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesLHEFReader.cc
r77e9ae1 r1d9c62a 17 17 */ 18 18 19 19 20 /** \class DelphesLHEFReader 20 21 * … … 27 28 #include "classes/DelphesLHEFReader.h" 28 29 30 #include <stdexcept> 29 31 #include <iostream> 30 32 #include <sstream> 31 #include <stdexcept>32 33 33 34 #include <stdio.h> 34 35 36 #include "TObjArray.h" 37 #include "TStopwatch.h" 35 38 #include "TDatabasePDG.h" 39 #include "TParticlePDG.h" 36 40 #include "TLorentzVector.h" 37 #include "TObjArray.h"38 #include "TParticlePDG.h"39 #include "TStopwatch.h"40 41 41 42 #include "classes/DelphesClasses.h" … … 53 54 DelphesLHEFReader::DelphesLHEFReader() : 54 55 fInputFile(0), fBuffer(0), fPDG(0), 55 fEventReady(kFALSE), fEventCounter(-1), fParticleCounter(-1), fCrossSection(1)56 fEventReady(kFALSE), fEventCounter(-1), fParticleCounter(-1), fCrossSection(1) 56 57 57 58 { … … 123 124 if(!rc) 124 125 { 125 cerr << "** ERROR: " 126 << "invalid event format" << endl; 126 cerr << "** ERROR: " << "invalid event format" << endl; 127 127 return kFALSE; 128 128 } … … 148 148 if(!rc) 149 149 { 150 cerr << "** ERROR: " 151 << "invalid particle format" << endl; 150 cerr << "** ERROR: " << "invalid particle format" << endl; 152 151 return kFALSE; 153 152 } … … 163 162 if(!pch) 164 163 { 165 cerr << "** ERROR: " 166 << "invalid weight format" << endl; 164 cerr << "** ERROR: " << "invalid weight format" << endl; 167 165 return kFALSE; 168 166 } … … 174 172 if(!pch) 175 173 { 176 cerr << "** ERROR: " 177 << "invalid weight format" << endl; 174 cerr << "** ERROR: " << "invalid weight format" << endl; 178 175 return kFALSE; 179 176 } … … 184 181 if(!rc) 185 182 { 186 cerr << "** ERROR: " 187 << "invalid weight format" << endl; 183 cerr << "** ERROR: " << "invalid weight format" << endl; 188 184 return kFALSE; 189 185 } … … 196 192 if(!pch) 197 193 { 198 cerr << "** ERROR: " 199 << "invalid cross section format" << endl; 194 cerr << "** ERROR: " << "invalid cross section format" << endl; 200 195 return kFALSE; 201 196 } … … 204 199 if(!pch) 205 200 { 206 cerr << "** ERROR: " 207 << "invalid cross section format" << endl; 201 cerr << "** ERROR: " << "invalid cross section format" << endl; 208 202 return kFALSE; 209 203 } … … 214 208 if(!rc) 215 209 { 216 cerr << "** ERROR: " 217 << "invalid cross section format" << endl; 210 cerr << "** ERROR: " << "invalid cross section format" << endl; 218 211 return kFALSE; 219 212 } … … 256 249 { 257 250 LHEFWeight *element; 258 vector< pair<int, double> >::const_iterator itWeightList;251 vector< pair< int, double > >::const_iterator itWeightList; 259 252 260 253 for(itWeightList = fWeightList.begin(); itWeightList != fWeightList.end(); ++itWeightList) … … 286 279 287 280 pdgParticle = fPDG->GetParticle(fPID); 288 candidate->Charge = pdgParticle ? int(pdgParticle->Charge() /3.0) : -999;281 candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999; 289 282 candidate->Mass = fMass; 290 283
Note:
See TracChangeset
for help on using the changeset viewer.