Ana01Data.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace ana
6 {
7  std::vector<std::string> MakeUnblindList()
8  {
9  std::cout << "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl;
10  std::cout << " WARNING: YOU ARE USING UNBLIND DATA." << std::endl;
11  std::cout << " Be very cautious about what distributions you are making," << std::endl;
12  std::cout << " where the results are going, and who will see them." << std::endl;
13  std::cout << "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl;
14 
15  std::vector<std::string> fname1 = Wildcard(
16  diskdirFD + "by_period/prod_restricteddecaf_S16-05-20_fd_numi_fhc_period1_nus_contain_v1_goodruns_prod2-snapshot/"
17  + "prod_restricteddecaf_S16-05-20_fd_numi_fhc_period1_nus_contain_v1_goodruns_prod2-snapshot*.root"
18  );
19  std::vector<std::string> fname2 = Wildcard(
20  diskdirFD + "by_period/prod_restricteddecaf_S16-05-20_fd_numi_fhc_period2_nus_contain_v1_goodruns_prod2-snapshot/"
21  + "prod_restricteddecaf_S16-05-20_fd_numi_fhc_period2_nus_contain_v1_goodruns_prod2-snapshot*.root"
22  );
23  std::vector<std::string> fname3b = Wildcard(
24  diskdirFD + "by_period/prod_restricteddecaf_S16-05-20_fd_numi_fhc_epoch3*_nus_contain_v1_goodruns_prod2-snapshot.root"
25  );
26  std::vector<std::string> fname3c = Wildcard(
27  diskdirFD + "by_period/prod_restricteddecaf_S16-05-20_fd_numi_fhc_epoch3c_nus_contain_v1_goodruns_prod2-snapshot/"
28  + "prod_restricteddecaf_S16-05-20_fd_numi_fhc_epoch3c_nus_contain_v1_goodruns_prod2-snapshot*.root"
29  );
30  std::vector<std::string> fname3d = Wildcard(
31  diskdirFD + "by_period/prod_restricteddecaf_S16-05-20_fd_numi_fhc_epoch3d_nus_contain_v1_goodruns_prod2-snapshot/"
32  + "prod_restricteddecaf_S16-05-20_fd_numi_fhc_epoch3d_nus_contain_v1_goodruns_prod2-snapshot*.root"
33  );
34  std::vector<std::string> ret;
35  for(const auto& file : fname1) { ret.push_back(file); }
36  for(const auto& file : fname2) { ret.push_back(file); }
37  for(const auto& file : fname3b) { ret.push_back(file); }
38  for(const auto& file : fname3c) { ret.push_back(file); }
39  for(const auto& file : fname3d) { ret.push_back(file); }
40  return ret;
41  }
42 
43  const std::vector<std::string> fnamefardata_unblind(MakeUnblindList());
44 }
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
std::vector< std::string > MakeUnblindList()
Definition: Ana01Data.h:7
std::vector< std::string > Wildcard(const std::string &wildcardString)
Find files matching a UNIX glob, plus expand environment variables.
Definition: UtilsExt.cxx:268
const std::string diskdirFD
OStream cout
Definition: OStream.cxx:6
TFile * file
Definition: cellShifts.C:17
const std::vector< std::string > fnamefardata_unblind(MakeUnblindList())