-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathccpion_common.h
49 lines (43 loc) · 2.13 KB
/
ccpion_common.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
42
43
44
45
46
47
48
49
#ifndef ccpion_common_h
#define ccpion_common_h
#include <algorithm> // transform
#include <string>
#include "TString.h" // Form
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_p4"; // new recoil energy branches
// const std::string processing_date = "InPrepTop4v2"; // 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/bmesserl/MATAna/cc-ch-pip-ana/cache/mc_ME1A_p3.txt" :
"/minerva/app/users/bmesserl/MATAna/cc-ch-pip-ana/cache/data_ME1A_p3.txt";
}
std::string GetPlaylistFileCCPi(std::string plist, bool is_mc,
bool use_xrootd = true) {
const std::string processing_date = "20210307";
const std::string is_mc_str = is_mc ? "mc" : "data";
std::transform(plist.begin(), plist.end(), plist.begin(), ::toupper);
std::string topdir =
"/minerva/data/users/bmesserl/MECCCHpip_ana_plists/" + 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;
}
#endif // ccpion_common_h