FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGeoCompositeVolume.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 FAIRGEOCOMPOSITEVOLUME_H
9 #define FAIRGEOCOMPOSITEVOLUME_H
10 
11 #include "FairGeoVolume.h" // for FairGeoVolume
12 
13 #include <Rtypes.h> // for Int_t, etc
14 
15 class TObjArray;
21 {
22  protected:
23  TObjArray* components; // array of components (type FairGeoVolume)
24 
25  public:
26  FairGeoCompositeVolume(Int_t nComp = 0);
28  Int_t getNumComponents();
29  FairGeoVolume* getComponent(const Int_t);
30  void createComponents(const Int_t);
31  void setComponent(FairGeoVolume*, const Int_t);
32  void clear();
33  void print();
35 
36  private:
39 };
40 
41 #endif /* !FAIRGEOCOMPOSITEVOLUME_H */
ClassDef(FairGeoCompositeVolume, 1)
void setComponent(FairGeoVolume *, const Int_t)
void createComponents(const Int_t)
FairGeoVolume * getComponent(const Int_t)