Project
Loading...
Searching...
No Matches
GeneratorTParticle.h
Go to the documentation of this file.
1// Copyright 2023-2099 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
13#ifndef ALICEO2_GENERATORTPARTICLE_H_
14#define ALICEO2_GENERATORTPARTICLE_H_
15#include <FairGenerator.h>
19
20// Forward decls
21class TChain;
22class TParticle;
23class TClonesArray;
24
25namespace o2
26{
27namespace conf
28{
29class SimConfig;
30}
31namespace eventgen
32{
57{
58 public:
62 GeneratorTParticle(const std::string& name)
63 : Generator(name.c_str(), "ALICEo2 TParticle Generator")
64 {
65 }
67 virtual ~GeneratorTParticle();
68
74 Bool_t Init() override;
75
80 void setup(const GeneratorFileOrCmdParam& param0,
82 const conf::SimConfig& config);
85 Bool_t generateEvent() override;
86
88 Bool_t importParticles() override;
89
92 void setTreeName(const std::string& val) { mTreeName = val; }
95 void setBranchName(const std::string& val) { mBranchName = val; }
96
97 protected:
99 std::string mTreeName = "T";
101 std::string mBranchName = "Particles";
103 unsigned int mEntry = 0;
105 TChain* mChain = 0;
107 TClonesArray* mTParticles;
108
110};
111} // namespace eventgen
112} // namespace o2
113#endif
114// Local Variables:
115// mode: C++
116// End:
117//
118// EOF
119//
GeneratorTParticle(const std::string &name)
void setup(const GeneratorFileOrCmdParam &param0, const GeneratorTParticleParam &param, const conf::SimConfig &config)
ClassDefOverride(GeneratorTParticle, 1)
void setBranchName(const std::string &val)
void setTreeName(const std::string &val)
GLuint const GLchar * name
Definition glcorearb.h:781
GLuint GLfloat * val
Definition glcorearb.h:1582
GLenum GLfloat param
Definition glcorearb.h:271
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...