Belle II Software  release-08-01-10
OpenFile.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #pragma once
9 
10 #include <boost/iostreams/filtering_stream.hpp>
11 
12 #include <string>
13 #include <fstream>
14 
15 namespace Belle2 {
20  namespace CDC {
21  //TODO: merge the following two functions and rename to openFile
27  void openFileA(std::ifstream& ifs, const std::string& fileName0);
28 
34  void openFileB(boost::iostreams::filtering_istream& ifs, const std::string& fileName0);
35 
36  } // end of namespace CDC
38 } // end of namespace Belle2
void openFileB(boost::iostreams::filtering_istream &ifs, const std::string &fileName0)
Open a file using boost (to be able to read a gzipped file)
Definition: OpenFile.cc:45
void openFileA(std::ifstream &ifs, const std::string &fileName0)
Open a file.
Definition: OpenFile.cc:26
Abstract base class for different kinds of events.