CbmRoot
Loading...
Searching...
No Matches
HalCbmV0Builder.h
Go to the documentation of this file.
1/* Copyright (C) 2025-2025 Warsaw University of Technology, Warsaw
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Daniel Wielanek [committer] */
4#ifndef CBMROOT_V0_ANALYSIS_PWGC2F_FEMTOSCOPY_HAL_HELPERS_HALCBMV0BUILDER_H_
5#define CBMROOT_V0_ANALYSIS_PWGC2F_FEMTOSCOPY_HAL_HELPERS_HALCBMV0BUILDER_H_
6
8
9#include <Hal/Task.h>
10
12class TClonesArray;
13
14namespace AnalysisTree
15{
16 class Particle;
17}
18
19
20class HalCbmV0Builder : public Hal::Task {
21 struct v0rawInfo {
25 float distance, l, l_dl;
26 float mass, px, py, pz;
27 float x, y, z;
29 int mcid;
30#ifdef DEBUG_EXTR
31 int dau1px, dau1py, dau1pz, dau1x, dau1y, dau1z;
32 int dau2px, dau2py, dau2pz, dau2x, dau2y, dau2z;
33#endif
34 };
38 Bool_t fBeFriendly = {kFALSE};
39 Double_t fMass = {0};
44 TClonesArray* fV0Temp = {nullptr};
45 Bool_t fOwner = {kFALSE};
46 v0rawInfo Convert(const AnalysisTree::Particle& p);
47
48 public:
49 HalCbmV0Builder(Int_t motherPid = 3321, Int_t posdau = 2212, Int_t negdau = -211);
50 virtual EInitFlag Init();
51 void BeFriendly() { fBeFriendly = kTRUE; }
52 virtual void Exec(Option_t* option = "");
53 virtual ~HalCbmV0Builder();
54 ClassDef(HalCbmV0Builder, 1)
55};
56
57#endif /* CBMROOT_V0_ANALYSIS_PWGC2F_FEMTOSCOPY_HAL_HELPERS_HALCBMV0BUILDER_H_ */
int Int_t
bool Bool_t
CbmAnaTreeV0Container * fV0Container
AnaTreeV0Ids fFields
virtual void Exec(Option_t *option="")
virtual EInitFlag Init()
HalCbmV0Builder(Int_t motherPid=3321, Int_t posdau=2212, Int_t negdau=-211)
TClonesArray * fV0Temp
CbmAnaTreeMcContainer * fSimContainer
CbmAnaTreeRecoContainer * fRecoContainer
v0rawInfo Convert(const AnalysisTree::Particle &p)