66Settings::Settings (std::string fileName, int verbosityLevel)
77 : fVerbosityLevel(verbosityLevel) {
88 TEnv env;
9- env.ReadFile (fileName.c_str (),kEnvLocal );
9+ if (fileName.empty ()) {
10+ std::cout<<" Warning, no settings file provided, using default values!" <<std::endl;
11+ } else {
12+ env.ReadFile (fileName.c_str (),kEnvLocal );
13+ }
1014
1115 fNtupleName = env.GetValue (" NtupleName" ," /ntuple" );
1216
@@ -18,13 +22,15 @@ Settings::Settings(std::string fileName, int verbosityLevel)
1822
1923 fKValue = env.GetValue (" KValue" , 700 );
2024
21- fWriteGriffinAddbackVector = env.GetValue (" WriteGriffinAddbackVector " , false );
25+ fDontSmearEnergy = env.GetValue (" DontSmearEnergy " , false );
2226
23- fGriffinAddbackVectorLengthmm = env.GetValue (" GriffinAddbackVectorLengthmm " , 105.0 );
27+ fWriteGriffinAddbackVector = env.GetValue (" WriteGriffinAddbackVector " , false );
2428
25- fGriffinAddbackVectorDepthmm = env.GetValue (" GriffinAddbackVectorDepthmm " , 45 .0 );
29+ fGriffinAddbackVectorLengthmm = env.GetValue (" GriffinAddbackVectorLengthmm " , 105 .0 );
2630
27- fGriffinAddbackVectorCrystalFaceDistancemm = env.GetValue (" GriffinAddbackVectorCrystalFaceDistancemm" ,110.0 );
31+ fGriffinAddbackVectorDepthmm = env.GetValue (" GriffinAddbackVectorDepthmm" , 45.0 );
32+
33+ fGriffinAddbackVectorCrystalFaceDistancemm = env.GetValue (" GriffinAddbackVectorCrystalFaceDistancemm" , 110.0 );
2834
2935 // Griffin
3036 fResolution [1000 ].resize (16 );
0 commit comments