test_nueloaders.C
Go to the documentation of this file.
1 // Recommend running with cafe -bq (-ss) -l1
2 // Check definition = true will query the dataset
3 // If the snaphot/definition doesn;t exist, aborts
4 // Check definition = false will only print the names
5 
7 using namespace ana;
8 
9 #include <iostream>
10 
12 {
14 
17 
20  }
21 
23 }
24 
26 {
28 
31 
34  }
35 
37 }
38 
39 
40 
41 
42 void test_nueloaders(bool checkDefinition = true, std::string period = "full", std::string ndperiod = "full", bool fhc = true)
43 {
45  if(t!=kDecaf) continue;
46 
48 
49  Prod3NomLoaders n(t, period, ndperiod, flx);
50 
51  Prod3AbsCalibLoaders acn(t, -1, period, ndperiod);
52  Prod3AbsCalibLoaders acp(t, +1, period, ndperiod);
53 
54  Prod3LightLevelLoaders lln(t, -1, period, ndperiod);
55  Prod3LightLevelLoaders llp(t, +1, period, ndperiod);
56 
57  Prod3CherenkovLoaders c(t, period, ndperiod);
58  Prod3CalibShapeLoaders s(t, period, ndperiod);
59 
60  //if the defintion/snapshot doesn't exist, aborts
61  if(checkDefinition){
62  ReifyLoaders(n);
63  if(!fhc) continue;
64  ReifyLoaders(acn);
65  ReifyLoaders(acp);
66  ReifyLoaders(lln);
67  ReifyLoaders(llp);
68  ReifyLoaders(c);
69  ReifyLoaders(s);
70  }
71  else{
72  //only print names
74  if(!fhc) continue;
75  PrintLoaderPaths(acn);
76  PrintLoaderPaths(acp);
77  PrintLoaderPaths(lln);
78  PrintLoaderPaths(llp);
81  }
82  }
83 }
void ReifyLoaders(Loaders &l)
Near Detector underground.
Definition: SREnums.h:10
For nominal spectra and reweighting systs (xsec/flux)
Definition: Prod3Loaders.h:40
Far Detector at Ash River.
Definition: SREnums.h:11
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
Collection of SpectrumLoaders for many configurations.
Definition: Loaders.h:23
void test_nueloaders(bool checkDefinition=true, std::string period="full", std::string ndperiod="full", bool fhc=true)
std::string GetLoaderPath(caf::Det_t det, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap) const
Definition: Loaders.cxx:89
const XML_Char * s
Definition: expat.h:262
SpectrumLoaderBase & GetLoader(caf::Det_t det, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap)
Retrieve a specific loader.
Definition: Loaders.cxx:129
OStream cout
Definition: OStream.cxx:6
void PrintLoaderPaths(Loaders &l)
ECAFType
Definition: Loaders.h:19
enum BeamMode string