CbmRoot
CbmBinnedTrackerConfigurator.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 October 10, 2017, 5:07 PM
12  */
13 
14 #ifndef CBMBINNEDTRACKERCONFIGURATOR_H
15 #define CBMBINNEDTRACKERCONFIGURATOR_H
16 
17 #include "CbmPixelHit.h"
18 #include "FairTask.h"
19 #include "Settings.h"
20 #include "TClonesArray.h"
21 #include "Tracker.h"
22 
23 class CbmBinnedTrackerConfigurator : public FairTask {
24 public:
25  explicit CbmBinnedTrackerConfigurator(bool useAllDetectors);
30 
31  InitStatus Init(); // Overridden from FairTask
32  void Exec(Option_t* opt); // Overridden from FairTask
33  void Finish(); // Overridden from FairTask
34  void SetParContainers();
35  void SetUse(Int_t m, bool v) { fUseModules[m] = v; }
36 
38  fPrimaryParticleIds.clear();
39  fPrimaryParticleIds.push_back(v);
40  }
41 
43  fPrimaryParticleIds.push_back(v);
44  }
45 
46 private:
51  std::list<EPrimaryParticleId> fPrimaryParticleIds;
52 
53  TClonesArray* fMCTracks;
54  TClonesArray* fStsPoints;
55  TClonesArray* fMuchPoints;
56  TClonesArray* fTrdPoints;
57  TClonesArray* fTofPoints;
58  ClassDef(CbmBinnedTrackerConfigurator, 1)
59 };
60 
61 #endif /* CBMBINNEDTRACKERCONFIGURATOR_H */
Settings.h
CbmBinnedTrackerConfigurator::Exec
void Exec(Option_t *opt)
Definition: CbmBinnedTrackerConfigurator.cxx:89
CbmBinnedTrackerConfigurator::SetPrimaryParticle
void SetPrimaryParticle(EPrimaryParticleId v)
Definition: CbmBinnedTrackerConfigurator.h:37
CbmBinnedTrackerConfigurator::fMuchPoints
TClonesArray * fMuchPoints
Definition: CbmBinnedTrackerConfigurator.h:55
CbmBinnedTrackerConfigurator::fPrimaryParticleIds
std::list< EPrimaryParticleId > fPrimaryParticleIds
Definition: CbmBinnedTrackerConfigurator.h:51
CbmBinnedTrackerConfigurator::SetParContainers
void SetParContainers()
Definition: CbmBinnedTrackerConfigurator.cxx:98
CbmBinnedTrackerConfigurator::fUseModules
bool fUseModules[ToIntegralType(ECbmModuleId::kLastModule)]
Definition: CbmBinnedTrackerConfigurator.h:48
CbmBinnedTrackerConfigurator::fMCTracks
TClonesArray * fMCTracks
Definition: CbmBinnedTrackerConfigurator.h:53
CbmBinnedTrackerConfigurator::operator=
CbmBinnedTrackerConfigurator & operator=(const CbmBinnedTrackerConfigurator &)=delete
CbmBinnedTrackerConfigurator::fTofPoints
TClonesArray * fTofPoints
Definition: CbmBinnedTrackerConfigurator.h:57
CbmBinnedTrackerConfigurator::fSettings
CbmBinnedSettings * fSettings
Definition: CbmBinnedTrackerConfigurator.h:50
CbmBinnedTrackerConfigurator::SetUse
void SetUse(Int_t m, bool v)
Definition: CbmBinnedTrackerConfigurator.h:35
CbmBinnedTrackerConfigurator::CbmBinnedTrackerConfigurator
CbmBinnedTrackerConfigurator(const CbmBinnedTrackerConfigurator &)=delete
Tracker.h
CbmPixelHit.h
CbmBinnedTrackerConfigurator
Definition: CbmBinnedTrackerConfigurator.h:23
CbmBinnedTracker
Definition: Tracker.h:29
CbmBinnedTrackerConfigurator::CbmBinnedTrackerConfigurator
CbmBinnedTrackerConfigurator(bool useAllDetectors)
Definition: CbmBinnedTrackerConfigurator.cxx:15
ECbmModuleId::kLastModule
@ kLastModule
For loops over all modules.
CbmBinnedTrackerConfigurator::fTrdPoints
TClonesArray * fTrdPoints
Definition: CbmBinnedTrackerConfigurator.h:56
CbmBinnedTrackerConfigurator::fUseAllDetectors
bool fUseAllDetectors
Definition: CbmBinnedTrackerConfigurator.h:47
v
__m128 v
Definition: L1/vectors/P4_F32vec4.h:1
CbmBinnedTrackerConfigurator::Init
InitStatus Init()
Definition: CbmBinnedTrackerConfigurator.cxx:35
CbmBinnedTrackerConfigurator::fTracker
CbmBinnedTracker * fTracker
Definition: CbmBinnedTrackerConfigurator.h:49
ToIntegralType
constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
Definition: CbmDefs.h:24
m
__m128 m
Definition: L1/vectors/P4_F32vec4.h:26
CbmBinnedSettings
Definition: Settings.h:27
EPrimaryParticleId
EPrimaryParticleId
Definition: Settings.h:25
CbmBinnedTrackerConfigurator::fStsPoints
TClonesArray * fStsPoints
Definition: CbmBinnedTrackerConfigurator.h:54
CbmBinnedTrackerConfigurator::Finish
void Finish()
Definition: CbmBinnedTrackerConfigurator.cxx:94
CbmBinnedTrackerConfigurator::AddPrimaryParticle
void AddPrimaryParticle(EPrimaryParticleId v)
Definition: CbmBinnedTrackerConfigurator.h:42
CbmBinnedTrackerConfigurator::~CbmBinnedTrackerConfigurator
~CbmBinnedTrackerConfigurator()
Definition: CbmBinnedTrackerConfigurator.cxx:31