StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StSvtClassLibrary
StSvtHybridCollection.hh
1
/***************************************************************************
2
*
3
* $Id: StSvtHybridCollection.hh,v 1.5 2001/10/04 02:56:26 caines Exp $
4
*
5
* Author: Marcelo Munhoz
6
***************************************************************************
7
*
8
* Description: SVT Hybrid Array BASE class
9
*
10
***************************************************************************
11
*
12
* $Log: StSvtHybridCollection.hh,v $
13
* Revision 1.5 2001/10/04 02:56:26 caines
14
* Fix some of the hybrid swapping indexing
15
*
16
* Revision 1.4 2001/08/16 21:02:03 munhoz
17
* changing StObjArray to StStrArray. StSvtConfig reestructured. New classes for geometry DB
18
*
19
* Revision 1.3 2000/11/30 20:39:12 caines
20
* Changed to allow us of database
21
*
22
**************************************************************************/
23
24
#ifndef STSVTHYBRIDCOLLECTION_HH
25
#define STSVTHYBRIDCOLLECTION_HH
26
27
#define MAX_NUMBER_OF_BARRELS 3
28
29
#include "StArray.h"
30
31
class
StSvtHybridObject
;
32
class
StSvtConfig
;
33
class
TString;
34
35
class
StSvtHybridCollection
:
public
StStrArray
36
{
37
public
:
38
StSvtHybridCollection
();
39
StSvtHybridCollection
(
StSvtConfig
* config);
40
StSvtHybridCollection
(
const
char
* config);
41
virtual
~
StSvtHybridCollection
();
42
43
int
getNumberOfBarrels();
44
int
getNumberOfLadders(
int
barrel);
45
int
getNumberOfWafers(
int
barrel);
46
int
getNumberOfHybrids();
47
int
getTotalNumberOfHybrids();
48
int
getHybridIndex(
int
barrel,
int
ladder,
int
wafer,
int
hybrid);
49
int
getProperHybridIndex(
int
barrel,
int
ladder,
int
wafer,
int
hybrid);
50
void
setConfiguration(
const
char
* config);
// Set the SVT configuration
51
void
setConfiguration(
StSvtConfig
* config);
// Set the SVT configuration
52
StSvtConfig
* getSvtConfig() {
return
mSvtConfig;}
// Returns the SVT configuration object
53
const
char
* getConfiguration();
// Returns the SVT configuration
54
55
//StSvtHybridObject* At(int index); // needed for backward compatibility
56
//void AddAt(StSvtHybridObject* object, int index); // needed for backward compatibility
57
58
StSvtHybridObject
* getObject(
int
barrel,
int
ladder,
int
wafer,
int
hybrid);
// Returns a object of the collection
59
60
protected
:
61
62
StSvtConfig
* mSvtConfig;
63
TString
mConfig
;
// SVT Configuration
64
65
ClassDef(
StSvtHybridCollection
,1)
66
};
67
68
#endif
StSvtHybridCollection
Definition:
StSvtHybridCollection.hh:35
StSvtHybridCollection::mConfig
TString mConfig
SVT Configuration.
Definition:
StSvtHybridCollection.hh:63
StSvtHybridObject
Definition:
StSvtHybridObject.hh:27
StStrArray
Definition:
StArray.h:135
StSvtConfig
Definition:
StSvtConfig.hh:35
Generated by
1.8.5