ATLAS Offline Software
Loading...
Searching...
No Matches
Args.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ISF_FASTCALOGPU_GPUARGS_H
6#define ISF_FASTCALOGPU_GPUARGS_H
7
8#include "FH_structs.h"
10
11#define MAXHITS 200000
12#define MAXBINS 1024
13#define MAXHITCT 2000
14
15struct GeoGpu;
16
17typedef struct Chain0_Args {
18
19 bool debug;
20
29
31 float E;
32
33 int pdgId;
34 double charge;
35 int cs;
37 float* rand;
38 int nhits;
39 void* rd4h;
40
41 FH1D* fh1d;//for energy reweigth
44 FH1D fh1d_h; // for energy reweight
45 FH2D fh2d_h; // host struct so we have info
46 FHs fhs_h; // host struct
47
49
50 bool is_first; // first event
51 bool is_last; // last event
52
53 int* hitcells_ct; // GPU pointer for number of uniq hit cells
54 unsigned long ncells;
55 unsigned int maxhitct;
56
57 float* cells_energy; // big, all cells, ~ 200K array
58 Cell_E* hitcells_E; // array with only hit cells (Mem maxhitct )
59 Cell_E* hitcells_E_h; // host array
60
61 unsigned int* hitcounts_b; // GPU pointer for interm blockwise result of hit counts
62
63 unsigned int ct; // cells got hit for the event
64
65 int reweight; // 1: use gaus log weight for pion, 0: no reweight
66
68
69#endif
bool is_last
Definition Args.h:51
FHs fhs_h
Definition Args.h:46
int cs
Definition Args.h:35
int pdgId
Definition Args.h:33
unsigned int maxhitct
Definition Args.h:55
double charge
Definition Args.h:34
bool is_phi_symmetric
Definition Args.h:36
double extrapol_z_ent
Definition Args.h:24
float E
Definition Args.h:31
double extrapol_eta_ext
Definition Args.h:25
float extrapWeight
Definition Args.h:30
void * rd4h
Definition Args.h:39
float * rand
Definition Args.h:37
double extrapol_r_ent
Definition Args.h:23
unsigned int * hitcounts_b
Definition Args.h:61
int * hitcells_ct
Definition Args.h:53
unsigned int ct
Definition Args.h:63
unsigned long ncells
Definition Args.h:54
FH1D fh1d_h
Definition Args.h:44
FH2D * fh2d
Definition Args.h:42
float * cells_energy
Definition Args.h:57
double extrapol_eta_ent
Definition Args.h:21
FH1D * fh1d
Definition Args.h:41
int nhits
Definition Args.h:38
double extrapol_phi_ext
Definition Args.h:26
double extrapol_z_ext
Definition Args.h:28
FH2D fh2d_h
Definition Args.h:45
FHs * fhs
Definition Args.h:43
int reweight
Definition Args.h:65
Cell_E * hitcells_E
Definition Args.h:58
GeoGpu * geo
Definition Args.h:48
bool debug
Definition Args.h:19
double extrapol_phi_ent
Definition Args.h:22
bool is_first
Definition Args.h:50
Cell_E * hitcells_E_h
Definition Args.h:59
double extrapol_r_ext
Definition Args.h:27