getPredictions.C
Go to the documentation of this file.
1 #pragma once
2 
5 
10 
11 using namespace ana;
12 
13 void getPredictions(unsigned int timestamp)
14 {
15 
16  //we will only have to make predictions once
17  //this should make us more economic and efficient
18  //only data spectra will be made every time
19 
20  //Approximate days in "Full" (P5 - 98/1484006400, P6 - 137/1499385600 , P7 -241/1530835200, P8 - 129/118 , P9 - 130 , P 10 - 143,
21  //provide the time you want to start from, and the number of days in the period you want the prediction for.
22 
23 
24  bool makePred = 0; // false because the predictions already exist
25  if(makePred){
26  //getPredictions(timestamp, 1, "Day");
27  //getPredictions(timestamp, 7, "Week");
28  //getPredictions(timestamp, 30, "Month");
29  getPredictions(timestamp, 98, "Full");
30  }
31 
32  bool makeData = 0; // change def to be of the one wanted
33  if(makeData){
34  //getData(timestamp, 1, "Day", "prod_caf_R19-11-18-prod5reco.r_fd_numi_period5_v1_goodruns");
35  //getData(timestamp, 7, "Week", "prod_caf_R19-11-18-prod5reco.r_fd_numi_period5_v1_goodruns");
36  //getData(timestamp, 30, "Month", "prod_caf_R19-11-18-prod5reco.r_fd_numi_period5_v1_goodruns");
37  getData(timestamp, 152, "Full", "prod_caf_R19-11-18-prod5reco.r_fd_numi_period10_v1_goodruns");
38 
39  }
40 
41 
42 }
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
void getData(int sampleCut=9, std::string period="full", std::string anaCut="3A", bool energy3a=true, bool optBin=true)
Definition: getData.C:33
void makePred(bool usesysts=true, bool useFakeNDData=false)
Definition: makePred.C:64
void getPredictions(std::string hornCurrStr, std::string outDir, bool splitNDByQuants=false)