CbmRoot
CbmMediaList Class Reference

CbmMediaList. More...

#include <CbmMediaList.h>

Inheritance diagram for CbmMediaList:
[legend]
Collaboration diagram for CbmMediaList:
[legend]

Public Member Functions

 CbmMediaList ()=default
 
void AddEntry (TString, TString)
 add new pair of geometry path and media information More...
 
const std::vector< std::pair< TString, TString > > & GetVector ()
 Get the stored information. More...
 

Private Attributes

std::vector< std::pair< TString, TString > > fMatList
 

Detailed Description

CbmMediaList.

Author
Florian Uhlig f.uhl.nosp@m.ig@g.nosp@m.si.de
Since
12.03.2020
Date
12 March 2030

Class to allow to stream a vector of pairs needed by the check_media.C macro. The information is needed to check if there are changes in the media of TGeoNodes between the geometries of the detectors at creation of the ROOT geometry files and the final CbmRoot geometry.

Definition at line 22 of file CbmMediaList.h.

Constructor & Destructor Documentation

◆ CbmMediaList()

CbmMediaList::CbmMediaList ( )
default

Constructor

Member Function Documentation

◆ AddEntry()

void CbmMediaList::AddEntry ( TString  path,
TString  medium 
)

add new pair of geometry path and media information

Parameters
Fullgeometry path for the TGeoNode
Mediainformation of the TGeoNode

Definition at line 3 of file CbmMediaList.cxx.

References fMatList.

◆ GetVector()

const std::vector<std::pair<TString, TString> >& CbmMediaList::GetVector ( )
inline

Get the stored information.

Returns
Reference to the vector of pairs

Definition at line 37 of file CbmMediaList.h.

References fMatList.

Member Data Documentation

◆ fMatList

std::vector<std::pair<TString, TString> > CbmMediaList::fMatList
private

Definition at line 42 of file CbmMediaList.h.

Referenced by AddEntry(), and GetVector().


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