12#ifndef RICH_DETECTOR_CBMRICHDIGIMAPMANAGER_H_
13#define RICH_DETECTOR_CBMRICHDIGIMAPMANAGER_H_
15#include <RtypesCore.h>
77 std::vector<Int_t>
GetNeighbourPixels(Int_t address, Int_t N, Bool_t horizontal =
true, Bool_t vertical =
true,
78 Bool_t diagonal =
true);
CbmRichDigiMapManager & operator=(const CbmRichDigiMapManager &)
Assignment operator.
std::map< std::string, Int_t > fPmtPathToIdMap
std::vector< Int_t > fPmtIds
std::vector< Int_t > GetNeighbourPixels(Int_t address, Int_t N, Bool_t horizontal=true, Bool_t vertical=true, Bool_t diagonal=true)
Return the addresses of the neighbour pixels.
void Init()
Initialize maps.
static CbmRichDigiMapManager & GetInstance()
Return Instance of CbmRichGeoManager.
int getDetectorSetup(TString const nodePath)
std::vector< Int_t > GetPmtIds()
Return ids for all pmts.
virtual ~CbmRichDigiMapManager()
std::vector< Int_t > GetDirectNeighbourPixels(Int_t address, Bool_t horizontal=true, Bool_t vertical=true)
Return the addresses of the direct neighbour pixels.
std::vector< Int_t > fPixelAddresses
std::map< Int_t, CbmRichPixelData * > fPixelAddressToDataMap
std::vector< Int_t > GetNxNNeighbourPixels(Int_t address, Int_t n)
Return the addresses of pixels in a (2n+1)*(2n+1) grid, with the address pixel in the center of the g...
Int_t GetRandomPixelAddress()
Return random address. Needed for noise digi.
std::map< std::string, Int_t > fPixelPathToAddressMap
std::vector< Int_t > GetPixelAddresses()
Return addresses of all pixels.
CbmRichPixelData * GetPixelDataByAddress(Int_t address)
Return CbmRichDataPixel by digi address.
CbmRichDigiMapManager(const CbmRichDigiMapManager &)
Copy constructor.
std::vector< Int_t > GetDiagonalNeighbourPixels(Int_t address)
Return the addresses of the diagonal neighbour pixels.
CbmRichPmtData * GetPmtDataById(Int_t id)
Return CbmRichDataPmt by id.
std::map< Int_t, CbmRichPmtData * > fPmtIdToDataMap
Int_t GetPixelAddressByPath(const std::string &path)
Return digi address by path to node.