SND@LHC Software
Loading...
Searching...
No Matches
sndTchainGetter.h
Go to the documentation of this file.
1#ifndef SND_TCHAIN_GETTER
2#define SND_TCHAIN_GETTER
3
4#include <string>
5#include <memory>
6
7#include "TChain.h"
8
9namespace snd {
10 namespace analysis_tools {
11 // With n_files == -1 all run partitions are added to the chain.
12 // With empty csv_file_path, it gets the official one from the sndsw installation
13 std::unique_ptr<TChain> GetTChain(int run_number, int n_files = -1, const std::string& csv_file_path = "");
14 std::unique_ptr<TChain> GetTChain(const std::string& file_name);
15 std::string GetDataBasePath(int run_number, std::string csv_file_path = "");
16 }
17}
18
19#endif
std::unique_ptr< TChain > GetTChain(int run_number, int n_files=-1, const std::string &csv_file_path="")
std::string GetDataBasePath(int run_number, std::string csv_file_path="")