Commit 4c25105e authored by Riccardo Longo's avatar Riccardo Longo
Browse files

Some comment + some small addition for future improvements

parent 7ad2ecd8
...@@ -11,9 +11,16 @@ ...@@ -11,9 +11,16 @@
#ifndef DATAREADER_H #ifndef DATAREADER_H
#define DATAREADER_H #define DATAREADER_H
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <string> #include <string>
#include <vector> #include <vector>
#include <TChain.h>
class TFile; class TFile;
class Analysis; class Analysis;
...@@ -27,6 +34,8 @@ class DataReader{ ...@@ -27,6 +34,8 @@ class DataReader{
const std::string& = "", const unsigned int = 0 ); const std::string& = "", const unsigned int = 0 );
virtual ~DataReader(); virtual ~DataReader();
void ReadListOfFiles(std::string listname);
void Initialize ( ); void Initialize ( );
void ProcessEvents( ); void ProcessEvents( );
void Finalize ( ); void Finalize ( );
...@@ -41,13 +50,19 @@ class DataReader{ ...@@ -41,13 +50,19 @@ class DataReader{
//Input file name //Input file name
std::string m_fNameIn; std::string m_fNameIn;
//Input list of files
std::string m_fListOfFiles;
//Run number //Run number
unsigned int m_runNumber; unsigned int m_runNumber;
//Boolean switch to enable the reading of a list of files //Boolean switch to enable the reading of a list of files
bool m_readListOfFiles; bool m_readListOfFiles;
//Input file (in case of a single processing)
TFile* m_fIn; TFile* m_fIn;
//TChain to accomodate many files (in case of a list of files)
TChain* m_fileChain;
}; };
#endif #endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment