Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 213 of file JMonteCarloFileSupportkit.hh.

Member Function Documentation

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 222 of file JMonteCarloFileSupportkit.hh.

223  {
224  using namespace std;
225 
226  JFileReader_t<Evt>::open(file_name);
227 
228  if (this->is_open()) {
229 
230  Head buffer;
231 
232  static_cast<istream&>(*this) >> buffer;
233  }
234  }
T * open(const std::string &file_name)
Open file.
Definition: JeepToolkit.hh:306
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
Definition: Head.hh:66

The documentation for this class was generated from the following file: