CbmRoot
CbmVectorFinder.cxx
Go to the documentation of this file.
1 
5 #include "CbmVectorFinder.h"
6 #include "CbmDefs.h"
7 #include "CbmMuchFindVectors.h"
9 #include "CbmMuchMergeVectors.h"
10 #include "CbmMuchToTrdVectors.h"
11 #include "CbmSetup.h"
12 #include "CbmTrdFindVectors.h"
13 #include "CbmTrdToTofVector.h"
14 //#include "CbmMuchToTofVectors.h"
15 
16 #include <iostream>
17 
18 using std::cout;
19 using std::endl;
20 //using std::map;
21 
22 // ----- Default constructor -------------------------------------------
23 CbmVectorFinder::CbmVectorFinder() : FairTask("VectorFinder") {}
24 // -------------------------------------------------------------------------
25 
26 // ----- Destructor ----------------------------------------------------
28 // -------------------------------------------------------------------------
29 
30 // ----- Public method Init (abstract in base class) --------------------
31 InitStatus CbmVectorFinder::Init() {
32  //cout << " !!!!!!!!! AZ " << CbmSetup::Instance()->IsActive(kTrd) << endl;
33  //cout << " !!!!!!!!! AZ " << CbmSetup::Instance()->IsActive(kRich) << endl;
34  if (CbmSetup::Instance()->IsActive(kTrd)) {
35  FairTask* trdVecf = new CbmTrdFindVectors();
36  Add(trdVecf);
37  if (CbmSetup::Instance()->IsActive(kTof)) {
38  FairTask* trd2tof = new CbmTrdToTofVector();
39  Add(trd2tof);
40  }
41  }
42 
43  if (CbmSetup::Instance()->IsActive(kMuch)) {
44  FairTask* muchVecf = new CbmMuchFindVectors();
45  Add(muchVecf);
46  FairTask* muchVecGem = new CbmMuchFindVectorsGem();
47  Add(muchVecGem);
48  FairTask* muchMerge = new CbmMuchMergeVectors();
49  Add(muchMerge);
50  if (CbmSetup::Instance()->IsActive(kTrd)) {
51  // MUCH-to-TRD merging
52  FairTask* muchTrd = new CbmMuchToTrdVectors();
53  Add(muchTrd);
54  }
55  /*
56  if (CbmSetup::Instance()->IsActive(kTof)) {
57  // MUCH-to-TOF merging
58  FairTask *muchTof = new CbmMuchToTofVectors();
59  Add(muchTof);
60  }
61  */
62  }
63 }
64 // -------------------------------------------------------------------------
65 
66 // ----- SetParContainers -------------------------------------------------
68 // -------------------------------------------------------------------------
69 
70 // ----- Public method Exec --------------------------------------------
71 void CbmVectorFinder::Exec(Option_t* opt) {}
72 // -------------------------------------------------------------------------
73 
74 // ----- Public method Finish ------------------------------------------
76 // -------------------------------------------------------------------------
77 
CbmMuchMergeVectors.h
CbmMuchToTrdVectors
Definition: CbmMuchToTrdVectors.h:24
CbmTrdFindVectors.h
Add
bool Add(const std::vector< litfloat > &a, const std::vector< litfloat > &b, std::vector< litfloat > &c)
Definition: CbmLitMatrixMath.cxx:380
CbmMuchFindVectors.h
CbmVectorFinder::Exec
virtual void Exec(Option_t *opt)
Definition: CbmVectorFinder.cxx:71
ECbmModuleId::kTof
@ kTof
Time-of-flight Detector.
ClassImp
ClassImp(CbmVectorFinder)
CbmMuchToTrdVectors.h
CbmVectorFinder::~CbmVectorFinder
virtual ~CbmVectorFinder()
Definition: CbmVectorFinder.cxx:27
CbmSetup.h
CbmMuchMergeVectors
Definition: CbmMuchMergeVectors.h:23
CbmSetup::Instance
static CbmSetup * Instance()
Definition: CbmSetup.cxx:115
ECbmModuleId::kTrd
@ kTrd
Transition Radiation Detector.
CbmVectorFinder::Init
virtual InitStatus Init()
Definition: CbmVectorFinder.cxx:31
CbmMuchFindVectorsGem.h
CbmVectorFinder::CbmVectorFinder
CbmVectorFinder()
Definition: CbmVectorFinder.cxx:23
CbmVectorFinder::Finish
virtual void Finish()
Definition: CbmVectorFinder.cxx:75
CbmMuchFindVectors
Definition: CbmMuchFindVectors.h:25
CbmVectorFinder
Definition: CbmVectorFinder.h:26
ECbmModuleId::kMuch
@ kMuch
Muon detection system.
CbmTrdToTofVector.h
CbmTrdFindVectors
Definition: CbmTrdFindVectors.h:29
CbmVectorFinder::SetParContainers
virtual void SetParContainers()
Definition: CbmVectorFinder.cxx:67
CbmTrdToTofVector
Definition: CbmTrdToTofVector.h:24
CbmVectorFinder.h
CbmMuchFindVectorsGem
Definition: CbmMuchFindVectorsGem.h:27
CbmDefs.h