Project
Loading...
Searching...
No Matches
FairPrimaryGenerator.h
Go to the documentation of this file.
1/********************************************************************************
2 * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3 * *
4 * This software is distributed under the terms of the *
5 * GNU Lesser General Public Licence (LGPL) version 3, *
6 * copied verbatim in the file "LICENSE" *
7 ********************************************************************************/
8
23#ifndef FAIRPRIMARYGENERATOR_H
24#define FAIRPRIMARYGENERATOR_H
25
26#include "FairGenerator.h" // for FairGenerator
27
28#include <Rtypes.h> // for Double_t, Bool_t, Int_t, etc
29#include <TMCProcess.h>
30#include <TNamed.h> // for TNamed
31#include <TObjArray.h> // for TObjArray
32#include <TVector3.h> // for TVector3
33#include <iostream> // for cout
34
37class TIterator;
38
39class FairPrimaryGenerator : public TNamed
40{
41
42 public:
45
47 FairPrimaryGenerator(const char *name, const char *title = "FAIR Generator");
48
50 virtual ~FairPrimaryGenerator();
51
53 virtual Bool_t Init();
54
56 void AddGenerator(FairGenerator *generator)
57 {
58 if (!fGenList) {
59 std::cout << "Empty fGenList pointer ! " << std::endl;
60 return;
61 }
62 fGenList->Add(generator);
63 }
64
65 void SetEventNr(Int_t evtNr) { fEventNr = evtNr; }
66
74 virtual Bool_t GenerateEvent(FairGenericStack *pStack);
75
83 virtual void AddTrack(Int_t pdgid,
84 Double_t px,
85 Double_t py,
86 Double_t pz,
87 Double_t vx,
88 Double_t vy,
89 Double_t vz,
90 Int_t parent = -1,
91 Bool_t wanttracking = true,
92 Double_t e = -9e9,
93 Double_t tof = 0.,
94 Double_t weight = 0.,
95 TMCProcess proc = kPPrimary);
96
99
106 void SetBeam(Double_t beamX0, Double_t beamY0, Double_t beamSigmaX, Double_t beamSigmaY);
107
114 void SetBeamAngle(Double_t beamAngleX0, Double_t beamAngleY0, Double_t beamAngleSigmaX, Double_t beamAngleSigmaY);
115
122 void SetEventPlane(Double_t phiMin, Double_t phiMax);
123
128 void SetTarget(Double_t targetZ, Double_t targetDz);
129
136 void SetMultTarget(Int_t nroftargets, Double_t *targetZ, Double_t targetDz);
137
139 void SmearVertexZ(Bool_t flag);
140 void SmearGausVertexZ(Bool_t flag);
141 void SmearVertexXY(Bool_t flag);
142 void SmearGausVertexXY(Bool_t flag);
143
144 TObjArray *GetListOfGenerators() { return fGenList; }
145
148
151
154 void DoTracking(Bool_t doTracking = kTRUE) { fdoTracking = doTracking; }
155
156 Int_t GetTotPrimary() { return fTotPrim; }
157
158 protected:
163
165 Double_t fBeamX0;
167 Double_t fBeamY0;
169 Double_t fBeamSigmaX;
171 Double_t fBeamSigmaY;
172
174 Double_t fBeamAngleX0;
176 Double_t fBeamAngleY0;
178 Double_t fBeamAngleX;
180 Double_t fBeamAngleY;
187
189 Double_t fPhiMin;
191 Double_t fPhiMax;
193 Double_t fPhi;
194
196 Double_t *fTargetZ;
200 Double_t fTargetDz;
201
203 TVector3 fVertex;
204
206 Int_t fNTracks;
207
220
224 TObjArray *fGenList;
226 TIterator *fListIter;
230 Bool_t fdoTracking;
235 static Int_t fTotPrim;
239 Int_t fEventNr;
240
250 virtual void MakeVertex();
251
259 virtual void MakeBeamAngle();
260
268 void MakeEventPlane();
269
271};
272
273#endif
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone proc
virtual void AddTrack(Int_t pdgid, Double_t px, Double_t py, Double_t pz, Double_t vx, Double_t vy, Double_t vz, Int_t parent=-1, Bool_t wanttracking=true, Double_t e=-9e9, Double_t tof=0., Double_t weight=0., TMCProcess proc=kPPrimary)
void SmearGausVertexXY(Bool_t flag)
FairGenericStack * fStack
void SetBeam(Double_t beamX0, Double_t beamY0, Double_t beamSigmaX, Double_t beamSigmaY)
FairMCEventHeader * fEvent
void AddGenerator(FairGenerator *generator)
void SmearGausVertexZ(Bool_t flag)
void SetEvent(FairMCEventHeader *event)
FairPrimaryGenerator & operator=(const FairPrimaryGenerator &)
void SetBeamAngle(Double_t beamAngleX0, Double_t beamAngleY0, Double_t beamAngleSigmaX, Double_t beamAngleSigmaY)
virtual FairPrimaryGenerator * ClonePrimaryGenerator() const
void SetEventPlane(Double_t phiMin, Double_t phiMax)
void SetMultTarget(Int_t nroftargets, Double_t *targetZ, Double_t targetDz)
virtual Bool_t GenerateEvent(FairGenericStack *pStack)
void SmearVertexXY(Bool_t flag)
FairMCEventHeader * GetEvent()
void SetEventNr(Int_t evtNr)
void DoTracking(Bool_t doTracking=kTRUE)
void SetTarget(Double_t targetZ, Double_t targetDz)
ClassDef(FairPrimaryGenerator, 5)
struct _cl_event * event
Definition glcorearb.h:2982
GLuint const GLchar * name
Definition glcorearb.h:781
GLuint GLuint GLfloat weight
Definition glcorearb.h:5477