Skip to content
Snippets Groups Projects

L1: mark the CbmL1 interface for the material budget files as obsolete

Merged Sergey Gorbunov requested to merge se.gorbunov/cbmroot:matbudgetCleanup1 into master
+ 37
33
@@ -201,36 +201,6 @@ public:
/// (use it only in case of a crash at the initialisation of material maps)
void SetSafeMaterialInitialization(bool val = true) { fDoSafeMaterialInitialization = val; }
/// Sets material budget file name for MVD
void SetMvdMaterialBudgetFileName(const TString& fileName)
{
if (fileName != "") fMatBudgetFileName[L1DetectorID::kMvd] = fileName;
}
/// Sets material budget file name for STS
void SetStsMaterialBudgetFileName(const TString& fileName)
{
if (fileName != "") fMatBudgetFileName[L1DetectorID::kSts] = fileName;
}
/// Sets material budget file name for MuCh
void SetMuchMaterialBudgetFileName(const TString& fileName)
{
if (fileName != "") fMatBudgetFileName[L1DetectorID::kMuch] = fileName;
}
/// Sets material budget file name for TRD
void SetTrdMaterialBudgetFileName(const TString& fileName)
{
if (fileName != "") fMatBudgetFileName[L1DetectorID::kTrd] = fileName;
}
/// Sets material budget file name for TOF
void SetTofMaterialBudgetFileName(const TString& fileName)
{
if (fileName != "") fMatBudgetFileName[L1DetectorID::kTof] = fileName;
}
/// Sets material budget binning
void SetMaterialBudgetNbins(int nBinsPerDimension) { fMatBudgetNbins = nBinsPerDimension; }
@@ -324,6 +294,43 @@ public:
static double boundedGaus(double sigma);
/// Obsolete setters to be removed
/// Sets material budget file name for MVD
void SetMvdMaterialBudgetFileName(const TString& fileName)
{
LOG(fatal) << "CbmL1::SetMvdMaterialBudgetFileName() is obsolete and will be deleted soon, don't call it\n"
<< " ! The material budget files are not used anymore !";
}
/// Sets material budget file name for STS
void SetStsMaterialBudgetFileName(const TString& fileName)
{
LOG(fatal) << "CbmL1::SetStsMaterialBudgetFileName() is obsolete and will be deleted soon, don't call it\n"
<< " ! The material budget files are not used anymore !";
}
/// Sets material budget file name for MuCh
void SetMuchMaterialBudgetFileName(const TString& fileName)
{
LOG(fatal) << "CbmL1::SetMuchMaterialBudgetFileName() is obsolete and will be deleted soon, don't call it\n"
<< " ! The material budget files are not used anymore !";
}
/// Sets material budget file name for TRD
void SetTrdMaterialBudgetFileName(const TString& fileName)
{
LOG(fatal) << "CbmL1::SetTrdMaterialBudgetFileName() is obsolete and will be deleted soon, don't call it\n"
<< " ! The material budget files are not used anymore !";
}
/// Sets material budget file name for TOF
void SetTofMaterialBudgetFileName(const TString& fileName)
{
LOG(fatal) << "CbmL1::SetTofMaterialBudgetFileName() is obsolete and will be deleted soon, don't call it\n"
<< " ! The material budget files are not used anymore !";
}
private:
struct TH1FParameters {
TString name, title;
@@ -655,9 +662,6 @@ private:
TTree* fpMcTripletsTree = nullptr; ///< Tree to save MC-triplets
std::string fsMcTripletsOutputFilename = ""; ///< Name of file to save MC-triplets tree
std::unordered_map<L1DetectorID, TString>
fMatBudgetFileName {}; ///< Map for material budget file names vs. detectorID
int fMatBudgetNbins {100}; ///< n bins in mat budget maps (fMatBudgetNbins x fMatBudgetNbins)
int fMatBudgetNrays {3}; ///< material budget n rays per dimansion in each bin
double fMatBudgetPitch {0.1}; ///< material budget minimal bin size in cm
Loading