FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairVolumeList.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIR_VOLUMELIST_H
9 #define FAIR_VOLUMELIST_H
10 
11 #include "FairVolume.h"
12 
13 #include <Rtypes.h> // for Int_t, etc
14 #include <TObjArray.h> // for TObjArray
15 #include <TObject.h> // for TObject
16 #include <TString.h> // for TString
17 
18 // class FairVolume;
19 
27 class FairVolumeList : public TObject
28 {
29  private:
30  TObjArray* fData;
32  FairVolumeList& operator=(const FairVolumeList&);
33 
34  public:
36  virtual ~FairVolumeList();
37 
38  FairVolume* getVolume(TString* name);
39  Int_t getVolumeId(TString* name);
40 
41  FairVolume* findObject(TString name);
42  void addVolume(FairVolume* elem);
43 
44  Int_t getEntries() { return fData->GetEntries(); }
45  FairVolume* At(Int_t pos) { return (dynamic_cast<FairVolume*>(fData->At(pos))); }
46 
48 };
49 
50 #endif // FAIR_VOLUMELIST_H
Int_t getVolumeId(TString *name)
void addVolume(FairVolume *elem)
FairVolume * getVolume(TString *name)
ClassDef(FairVolumeList, 1)
virtual ~FairVolumeList()
Int_t getEntries()
FairVolume * At(Int_t pos)
FairVolume * findObject(TString name)