Project
Loading...
Searching...
No Matches
FairGenericStack.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// -------------------------------------------------------------------------
9// ----- FairGenericStack header file -----
10// ----- Created 10/08/04 by D. Bertini -----
11// -------------------------------------------------------------------------
12
18#ifndef FAIRGENERICSTACK_H
19#define FAIRGENERICSTACK_H
20
21#include <Rtypes.h> // for Double_t, Int_t, etc
22#include <TClonesArray.h>
23#include <TMCProcess.h> // for TMCProcess
24#include <TVirtualMCStack.h> // for TVirtualMCStack
25#include <map>
26#include <tuple>
27
28class FairLogger;
29class TParticle;
30class TRefArray;
31class TIterator;
32
34{
35 public:
38
41
43 virtual ~FairGenericStack();
44
62 virtual void PushTrack(Int_t toBeDone,
63 Int_t parentID,
64 Int_t pdgCode,
65 Double_t px,
66 Double_t py,
67 Double_t pz,
68 Double_t e,
69 Double_t vx,
70 Double_t vy,
71 Double_t vz,
72 Double_t time,
73 Double_t polx,
74 Double_t poly,
75 Double_t polz,
76 TMCProcess proc,
77 Int_t& ntr,
78 Double_t weight,
79 Int_t is,
80 Int_t secondparentID) = 0;
81
83 virtual void FillTrackArray() {}
84
86 virtual void UpdateTrackIndex(TRefArray* /* detArray=0 */) {}
87
89 void SetDetArrayList(TRefArray* detArray);
90
92 virtual void FinishPrimary() {}
93
95 virtual void Reset() {}
96
98 virtual void Register() {}
99
100 virtual TClonesArray* GetListOfParticles() { return 0; }
101 virtual void SetParticleArray(__attribute__((unused)) TClonesArray* partArray) {}
102 virtual void SetParticleArray(__attribute__((unused)) TClonesArray* partArray,
103 __attribute__((unused)) Int_t partFrom,
104 __attribute__((unused)) Int_t partTo)
105 {}
106
108 virtual FairGenericStack* CloneStack() const;
109
119 virtual void FastSimMoveParticleTo(Double_t xx,
120 Double_t yy,
121 Double_t zz,
122 Double_t tt,
123 Double_t px,
124 Double_t py,
125 Double_t pz,
126 Double_t en);
128 virtual void FastSimStopParticle();
135 virtual void FastSimPushSecondary(Int_t parentID,
136 Int_t pdgCode,
137 Double_t xx,
138 Double_t yy,
139 Double_t zz,
140 Double_t tt,
141 Double_t px,
142 Double_t py,
143 Double_t pz,
144 Double_t en,
145 Double_t polx,
146 Double_t poly,
147 Double_t polz,
148 TMCProcess proc,
149 Double_t weight,
150 Int_t is);
152 virtual std::tuple<Int_t, Int_t, Int_t> FastSimGetMovedIndex()
153 {
154 return std::make_tuple(fFSMovedIndex, fFSFirstSecondary, fFSNofSecondaries);
155 }
157 {
158 fFSMovedIndex = -2;
161 }
162
163 template<typename T>
164 void FastSimUpdateTrackIndex(T* point, Int_t& iTrack);
165
166 protected:
171
174
176 TRefArray* fDetList;
177
179 TIterator* fDetIter;
180
182 Int_t fVerbose;
183
185 std::map<Int_t, Int_t> fFSTrackMap;
186 std::map<Int_t, Int_t>::iterator fFSTrackIter;
190
192};
193
194template<typename T>
195void FairGenericStack::FastSimUpdateTrackIndex(T* point, Int_t& iTrack)
196{
197 fFSTrackIter = fFSTrackMap.find(iTrack); // check if point created by FastSimulation
198 if (fFSTrackIter != fFSTrackMap.end()) { // indeed the point has been created by the FastSimulation mechanism
199 iTrack = fFSTrackIter->second;
200 point->SetTrackID(iTrack); // set proper TrackID
201 }
202}
203
204#endif
int16_t time
Definition RawEventData.h:4
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
std::map< Int_t, Int_t > fFSTrackMap
ClassDef(FairGenericStack, 1)
virtual void FastSimMoveParticleTo(Double_t xx, Double_t yy, Double_t zz, Double_t tt, Double_t px, Double_t py, Double_t pz, Double_t en)
virtual void Register()
virtual void FastSimPushSecondary(Int_t parentID, Int_t pdgCode, Double_t xx, Double_t yy, Double_t zz, Double_t tt, Double_t px, Double_t py, Double_t pz, Double_t en, Double_t polx, Double_t poly, Double_t polz, TMCProcess proc, Double_t weight, Int_t is)
virtual void FinishPrimary()
virtual void UpdateTrackIndex(TRefArray *)
virtual void SetParticleArray(__attribute__((unused)) TClonesArray *partArray, __attribute__((unused)) Int_t partFrom, __attribute__((unused)) Int_t partTo)
virtual void FillTrackArray()
virtual std::tuple< Int_t, Int_t, Int_t > FastSimGetMovedIndex()
virtual void FastSimStopParticle()
virtual void Reset()
std::map< Int_t, Int_t >::iterator fFSTrackIter
virtual void FastSimClearMovedIndex()
FairGenericStack & operator=(const FairGenericStack &)
virtual void SetParticleArray(__attribute__((unused)) TClonesArray *partArray)
void FastSimUpdateTrackIndex(T *point, Int_t &iTrack)
void SetDetArrayList(TRefArray *detArray)
virtual TClonesArray * GetListOfParticles()
virtual void PushTrack(Int_t toBeDone, Int_t parentID, Int_t pdgCode, Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy, Double_t vz, Double_t time, Double_t polx, Double_t poly, Double_t polz, TMCProcess proc, Int_t &ntr, Double_t weight, Int_t is, Int_t secondparentID)=0
virtual FairGenericStack * CloneStack() const
GLsizeiptr size
Definition glcorearb.h:659
GLuint GLuint GLfloat weight
Definition glcorearb.h:5477