StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiSstDetectorGroup.cxx
1 #include "StiSsd/StiSstDetectorGroup.h"
2 #include "StiSsd/StiSstHitLoader.h"
3 #include "StiSsd/StiSstDetectorBuilder.h"
4 #include "StiSsd/StiSstDetectorBuilder1.h"
5 #include "StEvent/StEvent.h"
6 
7 
8 StiSstDetectorGroup::StiSstDetectorGroup(bool active, SstDetectorBuilderImpl sstImpl, bool buildIdealGeom)
9  : StiDetectorGroup<StEvent>("SST")
10 {
11  switch(sstImpl) {
12  case kFirstPro:
13  _detectorBuilder = new StiSstDetectorBuilder1(active, buildIdealGeom);
14  break;
15  case kDefault:
16  default:
17  _detectorBuilder = new StiSstDetectorBuilder(active, buildIdealGeom);
18  }
19 
20  _hitLoader = active ? new StiSstHitLoader() : 0;
21 
22  if (_hitLoader)
23  _hitLoader->setDetector(_detectorBuilder);
24 
25  initialize();
26 }
27 
28 
29 StiSstDetectorGroup::~StiSstDetectorGroup()
30 {}
StiSstDetectorBuilder(bool active, bool buildIdealGeom=true)