Project
Loading...
Searching...
No Matches
SimTraits.h
Go to the documentation of this file.
1// Copyright 2019-2020 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
19
20#ifndef O2_BASE_SIMTRAITS_
21#define O2_BASE_SIMTRAITS_
22
24
25namespace o2
26{
27namespace detectors
28{
29
32{
33 using VS = std::vector<std::string>;
34
35 public:
36 // initialization fragile since depends on correct order. Can we do better?
37
38 // clang-format off
39 static inline const std::array<std::vector<std::string>, DetID::nDetectors> DETECTORBRANCHNAMES =
40 { /*ITS*/ VS{ "ITSHit" },
41 /*TPC*/ VS{ "TPCHitsShiftedSector0",
42 "TPCHitsShiftedSector1",
43 "TPCHitsShiftedSector2",
44 "TPCHitsShiftedSector3",
45 "TPCHitsShiftedSector4",
46 "TPCHitsShiftedSector5",
47 "TPCHitsShiftedSector6",
48 "TPCHitsShiftedSector7",
49 "TPCHitsShiftedSector8",
50 "TPCHitsShiftedSector9",
51 "TPCHitsShiftedSector10",
52 "TPCHitsShiftedSector11",
53 "TPCHitsShiftedSector12",
54 "TPCHitsShiftedSector13",
55 "TPCHitsShiftedSector14",
56 "TPCHitsShiftedSector15",
57 "TPCHitsShiftedSector16",
58 "TPCHitsShiftedSector17",
59 "TPCHitsShiftedSector18",
60 "TPCHitsShiftedSector19",
61 "TPCHitsShiftedSector20",
62 "TPCHitsShiftedSector21",
63 "TPCHitsShiftedSector22",
64 "TPCHitsShiftedSector23",
65 "TPCHitsShiftedSector24",
66 "TPCHitsShiftedSector25",
67 "TPCHitsShiftedSector26",
68 "TPCHitsShiftedSector27",
69 "TPCHitsShiftedSector28",
70 "TPCHitsShiftedSector29",
71 "TPCHitsShiftedSector30",
72 "TPCHitsShiftedSector31",
73 "TPCHitsShiftedSector32",
74 "TPCHitsShiftedSector33",
75 "TPCHitsShiftedSector34",
76 "TPCHitsShiftedSector35"},
77 /*TRD*/ VS{ "TRDHit" },
78 /*TOF*/ VS{ "TOFHit" },
79 /*PHS*/ VS{ "PHSHit" },
80 /*CPV*/ VS{ "CPVHit" },
81 /*EMC*/ VS{ "EMCHit" },
82 /*HMP*/ VS{ "HMPHit" },
83 /*MFT*/ VS{ "MFTHit" },
84 /*MCH*/ VS{ "MCHHit" },
85 /*MID*/ VS{ "MIDHit" },
86 /*ZDC*/ VS{ "ZDCHit" },
87 /*FT0*/ VS{ "FT0Hit" },
88 /*FV0*/ VS{ "FV0Hit" },
89 /*FDD*/ VS{ "FDDHit" },
90 /*TST*/ VS{ "TSTHit" }, // former ACO
91 /*CTP*/ VS{ "CTPHit" },
92 /*FOC*/ VS{ "FOCHit" }
93#ifdef ENABLE_UPGRADES
94 ,
95 /*IT3*/ VS{ "IT3Hit" },
96 /*TRK*/ VS{ "TRKHit" },
97 /*FT3*/ VS{ "FT3Hit" },
98 /*FCT*/ VS{ "FCTHit" },
99 /*TF3*/ VS{ "TF3Hit" },
100 /*RCH*/ VS{ "RCHHit" },
101 /*MI3*/ VS{ "MI3Hit" },
102 /*ECL*/ VS{ "ECLHit" },
103 /*FD3*/ VS{ "FD3Hit" }
104#endif
105 };
106 // clang-format on
107
108 // branches that are related to kinematics and general event information
109 static inline const std::vector<std::string> KINEMATICSBRANCHES =
110 {"MCTrack", "MCEventHeader", "TrackRefs"};
111
113};
114
115} // namespace detectors
116
117// some forward declarations
118// forward declares the HitTypes
119namespace trd
120{
121class Hit;
122}
123namespace itsmft
124{
125class Hit;
126}
127namespace trkft3
128{
129class Hit;
130}
131namespace tof
132{
133class HitType;
134}
135namespace emcal
136{
137class Hit;
138}
139namespace phos
140{
141class Hit;
142}
143namespace ft0
144{
145class HitType;
146}
147namespace hmpid
148{
149class HitType;
150}
151namespace fdd
152{
153class Hit;
154}
155namespace fv0
156{
157class Hit;
158}
159namespace mch
160{
161class Hit;
162}
163namespace mid
164{
165class Hit;
166}
167namespace zdc
168{
169class Hit;
170}
171namespace tpc
172{
173class HitGroup;
174}
175namespace focal
176{
177class Hit;
178}
179namespace fd3
180{
181class Hit;
182}
183namespace detectors
184{
185
186// mapping the DetID to hit types
187// traits for detectors
188template <int N>
190 using HitType = void;
191};
192
193// specialize for detectors
194template <>
195struct DetIDToHitTypes<o2::detectors::DetID::TRD> {
197};
198template <>
199struct DetIDToHitTypes<o2::detectors::DetID::ITS> {
201};
202template <>
203struct DetIDToHitTypes<o2::detectors::DetID::MFT> {
205};
206template <>
207struct DetIDToHitTypes<o2::detectors::DetID::TOF> {
209};
210template <>
211struct DetIDToHitTypes<o2::detectors::DetID::EMC> {
213};
214template <>
215struct DetIDToHitTypes<o2::detectors::DetID::PHS> {
217};
218template <>
219struct DetIDToHitTypes<o2::detectors::DetID::FT0> {
221};
222template <>
223struct DetIDToHitTypes<o2::detectors::DetID::FV0> {
225};
226template <>
227struct DetIDToHitTypes<o2::detectors::DetID::MCH> {
229};
230template <>
231struct DetIDToHitTypes<o2::detectors::DetID::MID> {
233};
234template <>
235struct DetIDToHitTypes<o2::detectors::DetID::ZDC> {
237};
238template <>
239struct DetIDToHitTypes<o2::detectors::DetID::HMP> {
241};
242template <>
243struct DetIDToHitTypes<o2::detectors::DetID::TPC> {
245};
246template <>
247struct DetIDToHitTypes<o2::detectors::DetID::FOC> {
249};
250#ifdef ENABLE_UPGRADES
251template <>
252struct DetIDToHitTypes<o2::detectors::DetID::IT3> {
253 using HitType = o2::itsmft::Hit;
254};
255template <>
256struct DetIDToHitTypes<o2::detectors::DetID::TRK> {
257 using HitType = o2::trkft3::Hit;
258};
259template <>
260struct DetIDToHitTypes<o2::detectors::DetID::FT3> {
261 using HitType = o2::trkft3::Hit;
262};
263template <>
264struct DetIDToHitTypes<o2::detectors::DetID::FCT> {
265 using HitType = o2::itsmft::Hit;
266};
267template <>
268struct DetIDToHitTypes<o2::detectors::DetID::FD3> {
269 using HitType = o2::fd3::Hit;
270};
271#endif
272
273} // namespace detectors
274
275} // namespace o2
276
277#endif
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 trd
Static class standardizing names / branches / other properties for simulation properties.
Definition SimTraits.h:32
static const std::vector< std::string > KINEMATICSBRANCHES
Definition SimTraits.h:109
ClassDefNV(SimTraits, 1)
static const std::array< std::vector< std::string >, DetID::nDetectors > DETECTORBRANCHNAMES
Definition SimTraits.h:39
EMCAL simulation hit information.
Definition Hit.h:28
Common FOCAL hit class for the detector simulation.
Definition Hit.h:28
PHOS simulation hit information.
Definition Hit.h:25
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
std::string detectors(const std::vector< std::string > &det, unsigned mask)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...