Fork me on GitHub

Changeset 295 in svn for trunk/src/STDHEPConverter.cc


Ignore:
Timestamp:
Mar 9, 2009, 12:35:36 AM (16 years ago)
Author:
Xavier Rouby
Message:

vers un Nevnt implemente correctement. Pas fini

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STDHEPConverter.cc

    r270 r295  
    5858void STDHEPConverter::AnalyseParticles(ExRootTreeBranch *branch)
    5959{
     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
    6064  GenParticle *element;
    6165
     
    6468  Int_t number;
    6569
    66   for(number = 0; number < myhepevt.nhep; ++number)
     70  for(number = 0; number < Nmax; ++number)
    6771  {
    6872    element = static_cast<GenParticle*>(branch->NewEntry());
     
    104108//------------------------------------------------------------------------------
    105109
    106 STDHEPConverter::STDHEPConverter(const string& inputFileList, const string& outputFileName)
    107 {
    108 
     110STDHEPConverter::STDHEPConverter(const string& inputFileList, const string& outputFileName, const int& Nevents) : DataConverter(Nevents)
     111{
    109112  int ierr, entryType;
    110113  int istr = 0;
Note: See TracChangeset for help on using the changeset viewer.