Go to the documentation of this file.
14 #ifndef CBM_BINNED_SETTINGS_H
15 #define CBM_BINNED_SETTINGS_H
19 #include "FairParGenericSet.h"
20 #include "FairParamList.h"
39 : FairParGenericSet(
"CbmBinnedSettings",
40 "Binned tracker reconstruction parameters",
74 l->add(
"UseModules", detFlags);
101 l->add(
"StationXScats", stationXScatArray);
102 l->add(
"StationYScats", stationYScatArray);
106 if (0 == l)
return kFALSE;
110 if (!l->fill(
"OnlyPrimary", &op))
return kFALSE;
116 if (!l->fill(
"UseModules", &detFlags))
return kFALSE;
127 if (!l->fill(
"NofStations", &
fNofStations))
return kFALSE;
145 if (!l->fill(
"StationXScats", &stationXScats))
return kFALSE;
149 if (!l->fill(
"StationYScats", &stationYScats))
return kFALSE;
172 std::copy(useModules,
197 return stationNumber <
fXScats.size() ?
fXScats[stationNumber] : 0;
200 return stationNumber <
fYScats.size() ?
fYScats[stationNumber] : 0;
void SetPrimaryParticles(const std::list< EPrimaryParticleId > v)
std::list< EPrimaryParticleId > fPrimaryParticleIds
void SetPrimaryParticle(EPrimaryParticleId v)
Int_t GetNofStsStations() const
CbmBinnedSettings & operator=(const CbmBinnedSettings &)=delete
void SetNofTrdStations(Int_t v)
bool Use(ECbmModuleId m) const
Bool_t IsActive(ECbmModuleId moduleId)
void putParams(FairParamList *l)
void SetNofStsStations(Int_t v)
Double_t GetYScat(size_t stationNumber) const
void SetConfiguring(bool v)
bool fUseModules[ToIntegralType(ECbmModuleId::kLastModule)]
std::vector< Double_t > fYScats
const std::list< EPrimaryParticleId > GetPrimaryParticles() const
void AddPrimaryParticle(EPrimaryParticleId v)
Int_t GetNofMuchStations() const
bool IsOnlyPrimary() const
void AddStationScats(Double_t x, Double_t y)
static CbmSetup * Instance()
Int_t GetNofTrdStations() const
static CbmBinnedSettings * Instance()
bool IsConfiguring() const
void SetOnlyPrimary(bool v)
CbmBinnedSettings(const CbmBinnedSettings &)=delete
void SetNofStations(Int_t v)
void SetUse(bool useModules[ToIntegralType(ECbmModuleId::kLastModule)])
void SetUse(Int_t m, bool v)
Double_t GetXScat(size_t stationNumber) const
@ kLastModule
For loops over all modules.
constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
void AddPrimaryParticles(const std::list< EPrimaryParticleId > v)
Int_t GetNofStations() const
Bool_t getParams(FairParamList *l)
void SetNofMuchStations(Int_t v)
std::vector< Double_t > fXScats