9#include "FairRootManager.h"
13 fStsMatches =
new Hal::TrackClones(
"CbmTrackMatchNew",
"StsTrackMatch",
"STS");
14 fTofMatches =
new Hal::TrackClones(
"CbmTrackMatchNew",
"TofHitMatch",
"TOF");
15 fMCTracks =
new Hal::TrackClones(
"CbmMCTrack",
"MCTrack",
"MC");
20 FairRootManager* mngr = FairRootManager::Instance();
24 if (
fTofMatches->GetArray() ==
nullptr)
return kFATAL;
25 if (
fStsMatches->GetArray() ==
nullptr)
return kFATAL;
27 if (
fMCTracks->GetArray() ==
nullptr)
return kFATAL;
29 mngr->Register(
"MCTrack",
"MC",
fMCTracks->GetArray(), kTRUE);
30 fStsLinks =
new TClonesArray(
"CbmTrackMatchNew");
31 fTofLinks =
new TClonesArray(
"CbmTrackMatchNew");
32 mngr->Register(
"StsTrackMatch",
"STS",
fStsLinks, kTRUE);
33 mngr->Register(
"TofHitMatch",
"TOF",
fTofLinks, kTRUE);
34 mngr->Register(
"PrimaryVertex.",
"PV", (
CbmVertex*) mngr->GetObject(
"PrimaryVertex."), kTRUE);
35 TClonesArray* sts_tracks = (TClonesArray*) mngr->GetObject(
"StsTrack");
36 TClonesArray* tof_tracks = (TClonesArray*) mngr->GetObject(
"TofHit");
37 TClonesArray* glob_tracks = (TClonesArray*) mngr->GetObject(
"GlobalTrack");
39 mngr->Register(
"StsTrack",
"STS", sts_tracks, kTRUE);
40 mngr->Register(
"TofHit",
"TOF", tof_tracks, kTRUE);
41 mngr->Register(
"GlobalTrack",
"STS", glob_tracks, kTRUE);
54 for (
int i = 0; i <
fMCTracks->GetEntriesFast(); i++) {
68 for (
int i = 0; i <
fStsMatches->GetEntriesFast(); i++) {
75 for (
int i = 0; i <
fTofMatches->GetEntriesFast(); i++) {
83 for (
int i = 0; i <
fMCTracks->GetEntriesFast(); i++) {
93 for (
int i = 0; i <
fMCTracks->GetEntriesFast(); i++) {
102 for (
int iTrack = 0; iTrack <
fStsMatches->GetEntriesFast(); iTrack++) {
114 for (
int iTrack = 0; iTrack <
fTofMatches->GetEntriesFast(); iTrack++) {
130 for (
int i = 0; i <
fStsMatches->GetEntriesFast(); i++) {
139 for (
int i = 0; i <
fTofMatches->GetEntriesFast(); i++) {
149 for (
int i = 0; i <
fMCTracks->GetEntriesFast(); i++) {
159 for (
int i = 0; i <
fMCTracks->GetEntriesFast(); i++) {
168 for (
int iTrack = 0; iTrack <
fStsMatches->GetEntriesFast(); iTrack++) {
172 for (
int iLink = 0; iLink < match->
GetNofLinks(); iLink++) {
181 for (
int iTrack = 0; iTrack <
fTofMatches->GetEntriesFast(); iTrack++) {
185 for (
int iLink = 0; iLink < match->
GetNofLinks(); iLink++) {
void SetIndex(int32_t index)
void SetWeight(float weight)
int32_t GetMotherId() const
void SetMotherId(int32_t id)
const CbmLink & GetLink(int32_t i) const
int32_t GetNofLinks() const
void AddLink(const CbmLink &newLink)
const CbmLink & GetMatchedLink() const
Hal::TrackClones * fTofMatches
Hal::Array_1< Int_t > fMapIndex
Hal::TrackClones * fStsMatches
Hal::TrackClones * fMCTracks
virtual ~HalCbmCompressionTask()
Hal::Array_1< Int_t > fMapUse