Jpp
Public Member Functions | List of all members
JSUPPORT::JMonteCarloFileReader< Evt, JFileReader_t > Class Template Reference

Template specialisation of JMonteCarloFileReader for Event. More...

#include <JMonteCarloFileSupportkit.hh>

Inheritance diagram for JSUPPORT::JMonteCarloFileReader< Evt, JFileReader_t >:

Public Member Functions

virtual void open (const char *file_name)
 Open file. More...
 

Detailed Description

template<template< class > class JFileReader_t>
class JSUPPORT::JMonteCarloFileReader< Evt, JFileReader_t >

Template specialisation of JMonteCarloFileReader for Event.

This class re-implements the method open of the JLANG::JAccessible interface so that the Head is skipped for each file.

Definition at line 180 of file JMonteCarloFileSupportkit.hh.

Member Function Documentation

◆ open()

template<template< class > class JFileReader_t>
virtual void JSUPPORT::JMonteCarloFileReader< Evt, JFileReader_t >::open ( const char *  file_name)
inlinevirtual

Open file.

Parameters
file_namefile name

Definition at line 189 of file JMonteCarloFileSupportkit.hh.

190  {
191  using namespace std;
192 
193  JFileReader_t<Evt>::open(file_name);
194 
195  if (this->is_open()) {
196 
197  Head buffer;
198 
199  static_cast<istream&>(*this) >> buffer;
200  }
201  }

The documentation for this class was generated from the following file:
JEEP::open
T * open(const std::string &file_name)
Open file.
Definition: JeepToolkit.hh:302
std
Definition: jaanetDictionary.h:36