39 m_variation_type =
type;
49 m_nominal_plist =
"QGSP_BERT";
50 m_nominal_current =
"200kA";
58 m_disk =
"/lbne/data/";
77 m_nominal_version = v;
97 m_scale_factor = scale_factor;
101 m_macro_suffix = macro_suffix;
105 m_variation_names.push_back(variation);
138 if(fastmc) fmc=
"_fastmc";
142 the_file +=
"/"+m_nominal_plist+
"/Nominal/"+temp_current+
"/flux/";
143 the_file +=
"histos_g4lbne_"+m_nominal_version+
"_"+m_nominal_plist+
"_Nominal_"+temp_current+
"_"+
loc+fmc+
".root";
145 std::cout<<
"Nominal file: "<<the_file<<
std::endl;
152 if(fastmc) fmc=
"_fastmc";
154 std::vector<std::string> the_files;
156 std::cout<<
"Looking up flux histograms for variation "<<m_quantity_varied<<
" which has type "<<m_variation_type<<
std::endl;
158 if(m_variation_type==
"shift") {
166 the_file +=
"/"+m_nominal_plist+
"/"+m_quantity_varied+m_units+m_macro_suffix+
"/"+temp_current+
"/flux/";
167 the_file +=
"histos_g4lbne_"+m_version+
"_"+m_nominal_plist+
"_"+m_quantity_varied+m_units+m_macro_suffix+
"_"+temp_current+
"_"+
loc+fmc+
".root";
168 the_files.push_back(the_file);
171 for(
unsigned int i = 0;
i<m_variation_names.size();
i++) {
173 if(m_variation_type==
"current")
178 if(m_variation_type==
"macro") {
182 the_file +=
"/"+m_nominal_plist+
"/"+variation+
"/"+temp_current+
"/flux/";
183 the_file +=
"histos_g4lbne_"+m_version+
"_"+m_nominal_plist+
"_"+variation+
"_"+temp_current+
"_"+
loc+fmc+
".root";
185 else if(m_variation_type==
"current") {
187 if(beam_mode==
"antinu") current_sign =
"-";
189 the_file +=
"/"+m_nominal_plist+
"/Nominal/"+current_sign+variation+
"/flux/";
190 the_file +=
"histos_g4lbne_"+m_nominal_version+
"_"+m_nominal_plist+
"_Nominal_"+current_sign+variation+
"_"+
loc+fmc+
".root";
192 else if(m_variation_type==
"location") {
196 std::cout<<
" i "<<
i<<
" m_variation_names[i] "<<m_variation_names[
i]<<
std::endl;
197 std::cout<<
"m_quantity_varied "<<m_quantity_varied<<
" loc "<<
loc<<
std::endl;
199 if(m_quantity_varied.find(
loc)==0) {
200 temploc = m_quantity_varied+m_variation_names[
i];
201 std::cout<<
"temploc "<<temploc<<
std::endl;
203 the_file +=
"/"+m_nominal_plist+
"/Nominal/"+temp_current+
"/flux/";
204 the_file +=
"histos_g4lbne_"+m_nominal_version+
"_"+m_nominal_plist+
"_Nominal_"+temp_current+
"_"+temploc+fmc+
".root";
207 std::cout<<
"Variation type"<<m_variation_type<<
" not yet supported"<<
std::endl;
210 the_files.push_back(the_file);
211 std::cout<<
"varied file "<<the_file<<
std::endl;
std::string GetNominalHistoFile(std::string beam_mode="nu", std::string loc="LBNEFD", bool fastmc=false)
void SetScaleFactor(double scale_factor)
std::string m_variation_type
void SetUnits(std::string units)
void SetUser(std::string u)
std::string m_macro_suffix
void AddVariation(std::string variation)
std::string GetVariedQuantity()
void SetNominalUser(std::string u)
std::string getenv(std::string const &name)
std::string m_nominal_version
std::vector< std::string > m_variation_names
std::string GetMacroSuffix()
std::string GetTolerance()
void SetNominalVersion(std::string v)
void SetTolerance(std::string tolerance)
void SetDisk(std::string disk)
std::vector< std::string > GetVariedHistoFiles(std::string beam_mode="nu", std::string loc="LBNEFD", bool fastmc=false)
AlignmentVariation(std::string quantity, std::string type, std::string version)
void SetCV(std::string cv)
std::string m_nominal_current
void SetLabel(std::string label)
void SetMacroSuffix(std::string macro_suffix)
std::string m_nominal_user
std::string GetVariationType()
std::string m_nominal_plist
QTextStream & endl(QTextStream &s)
std::vector< std::string > GetVariationNames()
std::string m_quantity_varied