PandaRoot
PndSensorNameIdMap.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndSensorNameIdMap
3 // -----
4 // ----- Created 25/03/2019 by B. Salisbury <salisbury@hiskp.uni-bonn.de>
5 // -------------------------------------------------------------------------
6 #ifndef PNDSENSORNAMEIDMAP_HH
7 #define PNDSENSORNAMEIDMAP_HH
8 #include "TString.h"
9 #include "TObject.h"
18 class PndSensorNameIdMap : public TObject {
19  public:
21  virtual ~PndSensorNameIdMap();
22 
23  Int_t GetId(TString &sensName) const;
24 
25  private:
26  virtual Int_t CreateId(TString &sensName) const = 0;
27 
28  ClassDef(PndSensorNameIdMap, 1);
29 };
30 
31 #endif /*PNDSENSORNAMEIDMAP_HH*/
Int_t GetId(TString &sensName) const
Base class for NameIdMaps used by the EmcGeoHandling singleton to retrieve a detector id from a name ...
virtual ~PndSensorNameIdMap()