-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaylist_methods.h
41 lines (36 loc) · 1.6 KB
/
playlist_methods.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef playlist_methods_h
#define playlist_methods_h
#include <algorithm> // transform
#include <string>
#include "TString.h" // Form
// RDF// This is eventually going to point to p4 MAD tuples and can be shared
// b/w RDF// me and Ben/Ever
std::string GetPlaylistFile(std::string plist, bool is_mc,
bool use_xrootd = true) {
// const std::string processing_date = "20200713"; // new short tracking
// branches
const std::string processing_date =
"production_p3"; // new recoil energy branches
// const std::string processing_date = "test"; // For test with small MAD
// tuplas
const std::string is_mc_str = is_mc ? "mc" : "data";
std::transform(plist.begin(), plist.end(), plist.begin(), ::toupper);
std::string topdir =
is_mc ? "/minerva/data/users/granados/MAD_ana_plists/"
: "/minerva/data/users/granados/MAD_ana_plists/"; // correct
// merging method
topdir += processing_date;
std::string playlist_file =
use_xrootd ? Form("%s/%s_%s_xrootd_plist.txt", topdir.c_str(),
is_mc_str.c_str(), plist.c_str())
: Form("%s/%s_%s_plist.txt", topdir.c_str(), is_mc_str.c_str(),
plist.c_str());
return playlist_file;
}
std::string GetTestPlaylist(bool is_mc) {
return is_mc ? "/minerva/app/users/finer/MATAna/LowNuHighNu/cache/"
"ME1A_mc_test_playlist.txt"
: "/minerva/app/users/finer/MATAna/LowNuHighNu/cache/"
"ME1A_data_test_playlist.txt";
}
#endif // playlist_methods_h