15#include "FairLogger.h"
16#include "TObjString.h"
21 : FairParGenericSet(name, title, context)
57 LOG(info) <<
"R3BNeulandMultiplicityCalorimetricPar: Neuland Neutron Cuts ...";
60 LOG(info) << nc.first;
69 for (
const auto& nc : cuts)
71 auto key =
new TObjString(TString::Itoa(nc.first, 10));
80 LOG(fatal) <<
"R3BNeulandMultiplicityCalorimetricPar: NeutronCuts not set!";
83 std::map<UInt_t, TCutG*>
map;
87 while ((key =
dynamic_cast<TObjString*
>(nextobj->Next())))
89 UInt_t nNeutrons = key->GetString().Atoi();
90 map[nNeutrons] =
dynamic_cast<TCutG*
>(
fNeutronCuts->GetValue(key)->Clone());
99 const Double_t nClusters)
const
104 LOG(fatal) <<
"R3BNeulandMultiplicityCalorimetricPar: NeutronCuts not set!";
114 while ((key =
dynamic_cast<TObjString*
>(nextobj->Next())))
117 if ((
dynamic_cast<TCutG*
>(
fNeutronCuts->GetValue(key)))->IsInside(energy, nClusters))
119 return (UInt_t)key->GetString().Atoi();
ClassImp(R3BNeulandMultiplicityCalorimetricPar)
NeuLAND number of clusters / energy - neutron multiplicity parameter storage.
~R3BNeulandMultiplicityCalorimetricPar() override
Bool_t getParams(FairParamList *) override
std::map< UInt_t, TCutG * > GetNeutronCuts() const
void SetNeutronCuts(const std::map< UInt_t, TCutG * > &cuts)
TCutG * GetNeutronCut(const Int_t n) const
UInt_t GetNeutronMultiplicity(const Double_t energy, const Double_t nClusters) const
void putParams(FairParamList *) override
void printParams() override
R3BNeulandMultiplicityCalorimetricPar(const char *name="R3BNeulandMultiplicityCalorimetricPar", const char *title="Neuland Neutron 2D Parameters", const char *context="TestDefaultContext")