CbmRoot
Loading...
Searching...
No Matches
CbmRichDigiMapManager Class Reference

#include <CbmRichDigiMapManager.h>

Collaboration diagram for CbmRichDigiMapManager:
[legend]

Public Member Functions

Int_t GetPixelAddressByPath (const std::string &path)
 Return digi address by path to node.
 
CbmRichPixelDataGetPixelDataByAddress (Int_t address)
 Return CbmRichDataPixel by digi address.
 
Int_t GetRandomPixelAddress ()
 Return random address. Needed for noise digi.
 
std::vector< Int_t > GetPixelAddresses ()
 Return addresses of all pixels.
 
std::vector< Int_t > GetPmtIds ()
 Return ids for all pmts.
 
CbmRichPmtDataGetPmtDataById (Int_t id)
 Return CbmRichDataPmt by id.
 
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.
 
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 > GetDiagonalNeighbourPixels (Int_t address)
 Return the addresses of the diagonal neighbour pixels.
 
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 grid. Addresses are limited to the same MAPMT as the input address. Needed for noise digis caused by charged particles.
 
virtual ~CbmRichDigiMapManager ()
 

Static Public Member Functions

static CbmRichDigiMapManagerGetInstance ()
 Return Instance of CbmRichGeoManager.
 

Private Member Functions

 CbmRichDigiMapManager ()
 
int getDetectorSetup (TString const nodePath)
 
void Init ()
 Initialize maps.
 
 CbmRichDigiMapManager (const CbmRichDigiMapManager &)
 Copy constructor.
 
CbmRichDigiMapManageroperator= (const CbmRichDigiMapManager &)
 Assignment operator.
 

Private Attributes

std::map< std::string, Int_t > fPixelPathToAddressMap
 
std::map< Int_t, CbmRichPixelData * > fPixelAddressToDataMap
 
std::vector< Int_t > fPixelAddresses
 
std::map< std::string, Int_t > fPmtPathToIdMap
 
std::map< Int_t, CbmRichPmtData * > fPmtIdToDataMap
 
std::vector< Int_t > fPmtIds
 

Detailed Description

Definition at line 25 of file CbmRichDigiMapManager.h.

Constructor & Destructor Documentation

◆ CbmRichDigiMapManager() [1/2]

CbmRichDigiMapManager::CbmRichDigiMapManager ( )
private

Definition at line 32 of file CbmRichDigiMapManager.cxx.

References Init().

◆ ~CbmRichDigiMapManager()

CbmRichDigiMapManager::~CbmRichDigiMapManager ( )
virtual

Definition at line 43 of file CbmRichDigiMapManager.cxx.

◆ CbmRichDigiMapManager() [2/2]

CbmRichDigiMapManager::CbmRichDigiMapManager ( const CbmRichDigiMapManager & )
private

Copy constructor.

Member Function Documentation

◆ getDetectorSetup()

int CbmRichDigiMapManager::getDetectorSetup ( TString const nodePath)
private

Definition at line 363 of file CbmRichDigiMapManager.cxx.

Referenced by Init().

◆ GetDiagonalNeighbourPixels()

std::vector< Int_t > CbmRichDigiMapManager::GetDiagonalNeighbourPixels ( Int_t address)
inline

Return the addresses of the diagonal neighbour pixels.

Parameters
addressPixel address

Definition at line 93 of file CbmRichDigiMapManager.h.

References GetNeighbourPixels().

Referenced by CbmRichDigitizer::AddCrossTalk().

◆ GetDirectNeighbourPixels()

std::vector< Int_t > CbmRichDigiMapManager::GetDirectNeighbourPixels ( Int_t address,
Bool_t horizontal = true,
Bool_t vertical = true )
inline

Return the addresses of the direct neighbour pixels.

Parameters
addressPixel address

Definition at line 84 of file CbmRichDigiMapManager.h.

References GetNeighbourPixels().

Referenced by CbmRichDigitizer::AddCrossTalk().

◆ GetInstance()

◆ GetNeighbourPixels()

vector< Int_t > CbmRichDigiMapManager::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.

Parameters
addressPixel address
nSize of the grid (2n+1)*(2n+1)
horizontalreturn horizontal neighbours
verticalreturn vertical neighbours
diagonalreturn diagonal neighbours

Definition at line 325 of file CbmRichDigiMapManager.cxx.

References CbmRichPmtData::fPixelAddresses, CbmRichPixelData::fPixelId, CbmRichPixelData::fPmtId, GetPixelDataByAddress(), and GetPmtDataById().

Referenced by GetDiagonalNeighbourPixels(), GetDirectNeighbourPixels(), and GetNxNNeighbourPixels().

◆ GetNxNNeighbourPixels()

std::vector< Int_t > CbmRichDigiMapManager::GetNxNNeighbourPixels ( Int_t address,
Int_t n )
inline

Return the addresses of pixels in a (2n+1)*(2n+1) grid, with the address pixel in the center of the grid. Addresses are limited to the same MAPMT as the input address. Needed for noise digis caused by charged particles.

Parameters
addressPixel address
nSize of the grid (2n+1)*(2n+1)

Definition at line 106 of file CbmRichDigiMapManager.h.

References GetNeighbourPixels().

Referenced by CbmRichDigitizer::AddChargedParticleCluster().

◆ GetPixelAddressByPath()

Int_t CbmRichDigiMapManager::GetPixelAddressByPath ( const std::string & path)

Return digi address by path to node.

Definition at line 287 of file CbmRichDigiMapManager.cxx.

References fPixelPathToAddressMap.

Referenced by CbmRich::ProcessHits().

◆ GetPixelAddresses()

vector< Int_t > CbmRichDigiMapManager::GetPixelAddresses ( )

◆ GetPixelDataByAddress()

◆ GetPmtDataById()

CbmRichPmtData * CbmRichDigiMapManager::GetPmtDataById ( Int_t id)

◆ GetPmtIds()

vector< Int_t > CbmRichDigiMapManager::GetPmtIds ( )

Return ids for all pmts.

Definition at line 314 of file CbmRichDigiMapManager.cxx.

References fPmtIds.

Referenced by CbmRichGeoTest::DrawPmts(), CbmRichUtil::GetPmtHistBins(), and CbmRichUrqmdTest::NofHitsAndPoints().

◆ GetRandomPixelAddress()

Int_t CbmRichDigiMapManager::GetRandomPixelAddress ( )

Return random address. Needed for noise digi.

Definition at line 304 of file CbmRichDigiMapManager.cxx.

References fPixelAddresses.

Referenced by CbmRichDigitizer::AddDarkRateNoise(), and CbmRichDigitizer::AddEventNoise().

◆ Init()

◆ operator=()

CbmRichDigiMapManager & CbmRichDigiMapManager::operator= ( const CbmRichDigiMapManager & )
private

Assignment operator.

Member Data Documentation

◆ fPixelAddresses

std::vector<Int_t> CbmRichDigiMapManager::fPixelAddresses
private

Definition at line 117 of file CbmRichDigiMapManager.h.

Referenced by GetPixelAddresses(), GetRandomPixelAddress(), and Init().

◆ fPixelAddressToDataMap

std::map<Int_t, CbmRichPixelData*> CbmRichDigiMapManager::fPixelAddressToDataMap
private

Definition at line 116 of file CbmRichDigiMapManager.h.

Referenced by GetPixelDataByAddress(), and Init().

◆ fPixelPathToAddressMap

std::map<std::string, Int_t> CbmRichDigiMapManager::fPixelPathToAddressMap
private

Definition at line 115 of file CbmRichDigiMapManager.h.

Referenced by GetPixelAddressByPath(), and Init().

◆ fPmtIds

std::vector<Int_t> CbmRichDigiMapManager::fPmtIds
private

Definition at line 121 of file CbmRichDigiMapManager.h.

Referenced by GetPmtIds(), and Init().

◆ fPmtIdToDataMap

std::map<Int_t, CbmRichPmtData*> CbmRichDigiMapManager::fPmtIdToDataMap
private

Definition at line 120 of file CbmRichDigiMapManager.h.

Referenced by GetPmtDataById(), and Init().

◆ fPmtPathToIdMap

std::map<std::string, Int_t> CbmRichDigiMapManager::fPmtPathToIdMap
private

Definition at line 119 of file CbmRichDigiMapManager.h.

Referenced by Init().


The documentation for this class was generated from the following files: