#ifndef CBELSAREADER_HH
#define CBELSAREADER_HH

#include "Event/EventReader.hh"

#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <cstdlib>


class EventList;

class CBElsaReader : public EventReader
{
public:
  CBElsaReader();
  CBElsaReader(const std::vector<std::string>& files, int particles, int skip, bool useWeight=false);
  virtual ~CBElsaReader();

  virtual bool fillAll(EventList& evtList);
 
private:
  std::vector<std::string> fileNames;
  std::vector<std::string>::const_iterator currentFile;
  std::ifstream currentStream;
  int numParticles;
  int linesToSkip;
  bool _useWeight;
};

#endif
