PandaRoot
PndSensorNameIdMap.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndSensorNameIdMap
15 // -----
16 // ----- Created 25/03/2019 by B. Salisbury <salisbury@hiskp.uni-bonn.de>
17 // -------------------------------------------------------------------------
18 #ifndef PNDSENSORNAMEIDMAP_HH
19 #define PNDSENSORNAMEIDMAP_HH
20 #include "TString.h"
21 #include "TObject.h"
30 class PndSensorNameIdMap : public TObject {
31  public:
33  virtual ~PndSensorNameIdMap();
34 
35  Int_t GetId(TString &sensName) const;
36 
37  private:
38  virtual Int_t CreateId(TString &sensName) const = 0;
39 
40  ClassDef(PndSensorNameIdMap, 1);
41 };
42 
43 #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()