Changeset 295 in svn for trunk/src/STDHEPConverter.cc
- Timestamp:
- Mar 9, 2009, 12:35:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STDHEPConverter.cc
r270 r295 58 58 void STDHEPConverter::AnalyseParticles(ExRootTreeBranch *branch) 59 59 { 60 int Nmax = -1; // useless for the moment -- should be changed in order 61 if(Nmax>0) Nmax = min(Nmax,myhepevt.nhep); // to use Nevt in DataConverter 62 else Nmax = myhepevt.nhep; 63 60 64 GenParticle *element; 61 65 … … 64 68 Int_t number; 65 69 66 for(number = 0; number < myhepevt.nhep; ++number)70 for(number = 0; number < Nmax; ++number) 67 71 { 68 72 element = static_cast<GenParticle*>(branch->NewEntry()); … … 104 108 //------------------------------------------------------------------------------ 105 109 106 STDHEPConverter::STDHEPConverter(const string& inputFileList, const string& outputFileName) 107 { 108 110 STDHEPConverter::STDHEPConverter(const string& inputFileList, const string& outputFileName, const int& Nevents) : DataConverter(Nevents) 111 { 109 112 int ierr, entryType; 110 113 int istr = 0;
Note:
See TracChangeset
for help on using the changeset viewer.