1 #ifndef BSEMCNEIGHBOURINGRELATIONPAR_HH 2 #define BSEMCNEIGHBOURINGRELATIONPAR_HH 10 #include "RtypesCore.h" 11 #include "TObjArray.h" 14 #include "FairParGenericSet.h" 15 #include "FairParamList.h" 21 class TMemberInspector;
35 const char *t_context =
"TestDefaultContext");
49 return std::find(ids.begin(), ids.end(), t_b) != ids.end();
60 Bool_t
IsSet() {
return fRelations->GetEntriesFast() != 0; }
61 const std::map<Int_t, std::vector<Int_t>> &
GetRelationMap()
const {
return fRelationMap; }
64 std::unique_ptr<TObjArray> fRelations{
nullptr};
65 std::map<Int_t, std::vector<Int_t>> fRelationMap{};
66 Bool_t fFilledMap{kFALSE};
const TObjArray * GetRelations() const
BSEmcGeoNeighbouringRelationPar(const char *t_name="EmcGeoNeighbouringRelationPar", const char *t_title="Neighbouring relation of Emc crystals", const char *t_context="TestDefaultContext")
Bool_t AreNeighbours(Int_t t_a, Int_t t_b) const
void AddNeighbourToId(Int_t t_neighbourid, Int_t t_id)
~BSEmcGeoNeighbouringRelationPar(void)
Bool_t getParams(FairParamList *)
void RegisterIdAndNeighbours(Int_t t_id, std::vector< Int_t > &t_neighbours)
void UpdateRelationArray()
static std::string fgParameterName
void InitFromTextFile(const TString &t_filename)
Neigbouring Relations based on a list of detectorIds.
const std::vector< Int_t > & GetNeighbourIds(Int_t t_detectorid) const
void putParams(FairParamList *)
BSEmcGeoNeighbouringRelationPar & operator=(const BSEmcGeoNeighbouringRelationPar &t_l)
const std::map< Int_t, std::vector< Int_t > > & GetRelationMap() const