CbmRoot
CbmBinnedTrackerTask.h
Go to the documentation of this file.
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 
7 /*
8  * File: CbmBinnedTrackerTask.h
9  * Author: tablyaz
10  *
11  * Created on August 3, 2017, 4:33 PM
12  */
13 
14 #ifndef CBMBINNEDTRACKERTASK_H
15 #define CBMBINNEDTRACKERTASK_H
16 
17 #include "CbmPixelHit.h"
18 #include "FairTask.h"
19 #include "Tracker.h"
20 
21 class CbmBinnedTrackerTask : public FairTask {
22 public:
23  static CbmBinnedTrackerTask* Instance() { return fInstance; }
24 
25 public:
26  CbmBinnedTrackerTask(bool useAllDetectors,
27  Double_t beamWidthX,
28  Double_t beamWidthY);
32 
33  InitStatus Init(); // Overridden from FairTask
34  void Exec(Option_t* opt); // Overridden from FairTask
35  void Finish(); // Overridden from FairTask
36  void SetParContainers();
37 
38  bool IsOnlyPrimary() const { return fIsOnlyPrimary; }
39  void SetOnlyPrimary(bool v) { fIsOnlyPrimary = v; }
40  Double_t GetBeamDx() const { return fBeamDx; }
41  Double_t GetBeamDy() const { return fBeamDy; }
43  void SetChiSqCut(Double_t v) { fChiSqCut = v; }
44  void SetCanSkipHits(Int_t v) { fCanSkipHits = v; }
45 
46 private:
48 
49 private:
53  Double_t fChiSqCut;
54  Int_t fCanSkipHits;
56  Double_t fBeamDx;
57  Double_t fBeamDy;
59  TClonesArray* fGlobalTracks;
60  TClonesArray* fStsTracks;
61  TClonesArray* fMuchTracks;
62  TClonesArray* fTrdTracks;
63  ClassDef(CbmBinnedTrackerTask, 1)
64 };
65 
66 #endif /* CBMBINNEDTRACKERTASK_H */
CbmBinnedTrackerTask::SetUse
void SetUse(ECbmModuleId m, bool v)
Definition: CbmBinnedTrackerTask.h:42
CbmBinnedTrackerTask::fBeamDy
Double_t fBeamDy
Definition: CbmBinnedTrackerTask.h:57
CbmBinnedTrackerTask::Exec
void Exec(Option_t *opt)
Definition: CbmBinnedTrackerTask.cxx:141
CbmBinnedTrackerTask::GetBeamDx
Double_t GetBeamDx() const
Definition: CbmBinnedTrackerTask.h:40
CbmBinnedTrackerTask::GetBeamDy
Double_t GetBeamDy() const
Definition: CbmBinnedTrackerTask.h:41
CbmBinnedTrackerTask::fTracker
CbmBinnedTracker * fTracker
Definition: CbmBinnedTrackerTask.h:58
CbmBinnedTrackerTask::fTrdTracks
TClonesArray * fTrdTracks
Definition: CbmBinnedTrackerTask.h:62
CbmBinnedTrackerTask::fMuchTracks
TClonesArray * fMuchTracks
Definition: CbmBinnedTrackerTask.h:61
CbmBinnedTrackerTask::SetParContainers
void SetParContainers()
Definition: CbmBinnedTrackerTask.cxx:422
ECbmModuleId
ECbmModuleId
Definition: CbmDefs.h:33
CbmBinnedTrackerTask::fIsOnlyPrimary
bool fIsOnlyPrimary
Definition: CbmBinnedTrackerTask.h:51
CbmBinnedTrackerTask::fSettings
CbmBinnedSettings * fSettings
Definition: CbmBinnedTrackerTask.h:55
CbmBinnedTrackerTask::SetOnlyPrimary
void SetOnlyPrimary(bool v)
Definition: CbmBinnedTrackerTask.h:39
CbmBinnedTrackerTask::fUseModules
bool fUseModules[ToIntegralType(ECbmModuleId::kLastModule)]
Definition: CbmBinnedTrackerTask.h:52
CbmBinnedTrackerTask::Init
InitStatus Init()
Definition: CbmBinnedTrackerTask.cxx:70
CbmBinnedTrackerTask::fCanSkipHits
Int_t fCanSkipHits
Definition: CbmBinnedTrackerTask.h:54
CbmBinnedTrackerTask::fUseAllDetectors
bool fUseAllDetectors
Definition: CbmBinnedTrackerTask.h:50
CbmBinnedTrackerTask::CbmBinnedTrackerTask
CbmBinnedTrackerTask(bool useAllDetectors, Double_t beamWidthX, Double_t beamWidthY)
Definition: CbmBinnedTrackerTask.cxx:48
CbmBinnedTrackerTask::~CbmBinnedTrackerTask
~CbmBinnedTrackerTask()
Definition: CbmBinnedTrackerTask.cxx:68
CbmBinnedTrackerTask::SetCanSkipHits
void SetCanSkipHits(Int_t v)
Definition: CbmBinnedTrackerTask.h:44
Tracker.h
CbmBinnedTrackerTask::Finish
void Finish()
Definition: CbmBinnedTrackerTask.cxx:406
CbmBinnedTrackerTask::fChiSqCut
Double_t fChiSqCut
Definition: CbmBinnedTrackerTask.h:53
CbmPixelHit.h
CbmBinnedTrackerTask::CbmBinnedTrackerTask
CbmBinnedTrackerTask(const CbmBinnedTrackerTask &)=delete
CbmBinnedTrackerTask::SetChiSqCut
void SetChiSqCut(Double_t v)
Definition: CbmBinnedTrackerTask.h:43
CbmBinnedTracker
Definition: Tracker.h:29
ECbmModuleId::kLastModule
@ kLastModule
For loops over all modules.
v
__m128 v
Definition: L1/vectors/P4_F32vec4.h:1
ToIntegralType
constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
Definition: CbmDefs.h:24
CbmBinnedTrackerTask::fGlobalTracks
TClonesArray * fGlobalTracks
Definition: CbmBinnedTrackerTask.h:59
CbmBinnedTrackerTask::fBeamDx
Double_t fBeamDx
Definition: CbmBinnedTrackerTask.h:56
m
__m128 m
Definition: L1/vectors/P4_F32vec4.h:26
CbmBinnedTrackerTask
Definition: CbmBinnedTrackerTask.h:21
CbmBinnedTrackerTask::fStsTracks
TClonesArray * fStsTracks
Definition: CbmBinnedTrackerTask.h:60
CbmBinnedSettings
Definition: Settings.h:27
CbmBinnedTrackerTask::Instance
static CbmBinnedTrackerTask * Instance()
Definition: CbmBinnedTrackerTask.h:23
CbmBinnedTrackerTask::fInstance
static CbmBinnedTrackerTask * fInstance
Definition: CbmBinnedTrackerTask.h:47
CbmBinnedTrackerTask::operator=
CbmBinnedTrackerTask & operator=(const CbmBinnedTrackerTask &)=delete
CbmBinnedTrackerTask::IsOnlyPrimary
bool IsOnlyPrimary() const
Definition: CbmBinnedTrackerTask.h:38