Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
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) override
 Open file.
 

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 302 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)
inlineoverridevirtual

Open file.

Parameters
file_namefile name

Definition at line 311 of file JMonteCarloFileSupportkit.hh.

312 {
313 using namespace std;
314
315 JFileReader_t<Evt>::open(file_name);
316
317 if (this->is_open()) {
318
319 Head buffer;
320
321 static_cast<istream&>(*this) >> buffer;
322 }
323 }
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
Definition Head.hh:65

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