HighLAND
VersioningUtils.cxx
1 #include "VersioningUtils.hxx"
2 
3 namespace versionUtils{
4 
5  bool prod6_POT =false;
6  bool prod6_bunching =false;
7  bool prod6_corrections=false;
8  bool prod6_systematics=false;
9 }
10 
11 //***************************************************
12 void versionUtils::DumpProductions(){
13 //***************************************************
14 
15  if (versionUtils::prod6_POT)
16  std::cout << "Using Prod6 for POT" << std::endl;
17  else
18  std::cout << "Using Prod5 for POT" << std::endl;
19 
20  if (versionUtils::prod6_bunching)
21  std::cout << "Using Prod6 for bunching" << std::endl;
22  else
23  std::cout << "Using Prod5 for bunching" << std::endl;
24 
25  if (versionUtils::prod6_corrections)
26  std::cout << "Using Prod6 for corrections" << std::endl;
27  else
28  std::cout << "Using Prod5 for corrections" << std::endl;
29 
30  if (versionUtils::prod6_systematics)
31  std::cout << "Using Prod6 for systematics" << std::endl;
32  else
33  std::cout << "Using Prod5 for systematics" << std::endl;
34 
35 }
36 
37 //**************************************************
38 std::string versionUtils::Extension(bool useProdExt){
39 //**************************************************
40 
41 
42  // Extension base of the production
43  std::string prodExt="";
44  if (useProdExt){
45  if (versionUtils::prod6_systematics)
46  prodExt="_p6B";
47  else
48  prodExt="_p5F";
49  }
50 
51  return prodExt;
52 }
53