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