EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairVolumeList.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairVolumeList.h
1 #ifndef FAIR_VOLUMELIST_H
2 #define FAIR_VOLUMELIST_H
3 
4 //#include "FairVolume.h"
5 
6 #include "TObject.h"
7 #include "TObjArray.h"
8 #include "TString.h"
9 
10 #include <iostream>
11 
12 class FairVolume;
13 //class TObjArray;
14 
22 class FairVolumeList : public TObject
23 {
24  private:
25  TObjArray* fData;
28 
29  public:
31  virtual ~FairVolumeList();
32 
33  FairVolume* getVolume( TString* name );
34  Int_t getVolumeId( TString* name );
35 
36  FairVolume* findObject( TString name );
37  void addVolume( FairVolume* elem);
38 
39  Int_t getEntries () { return fData->GetEntries();}
40  FairVolume* At(Int_t pos ) { return ( (FairVolume*) fData->At(pos)); }
41 
42  ClassDef(FairVolumeList,1) // Volume List
43 };
44 
45 #endif //FAIR_VOLUMELIST_H
46 
47