Add detector field to dg_cell
The purpose is to describe which part of the ECAL: barrel: 2, endcap_A: 1, endcap_B: 3
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Matteo Tenti assigned to @tenti
assigned to @tenti
- Matteo Tenti marked this issue as related to #19 (closed)
marked this issue as related to #19 (closed)
- Author Owner
The member
int det
was added to structdg_cell
.struct dg_cell { int id; double z; double y; double x; double l; int mod; int lay; int cel; int det; std::vector<dg_ps> ps1; std::vector<dg_ps> ps2; };
Consequently, the functions:
- from src/utils.h
void BarrelModuleAndLayer(TString& str, TString& str2, int& detID, int& modID, int& planeID); void EndCapModuleAndLayer(TString& str, TString& str2, int& detID, int& modID, int& planeID); void CellPosition(TGeoManager* geo, int det, int mod, int lay, int cel, double& x, double& y, double& z); int EncodeID(int det, int mod, int lay, int cel); void DecodeID(int id, int& det, int& mod, int& lay, int& cel);
- from src/digitization.cpp
bool ProcessHit(TGeoManager* g, const TG4HitSegment& hit, int& detID, int& modID, int& planeID, int& cellID, double& d1, double& d2, double& t, double& de) bool ProcessHitFluka(const TG4HitSegment& hit, int& detID, int& modID, int& planeID, int& cellID, double& d1, double& d2, double& t, double& de)
Below the x position of the cell as function of the cell detector value.
- Matteo Tenti created branch
18-add-detector-field-to-dg_cell-2
to address this issuecreated branch
18-add-detector-field-to-dg_cell-2
to address this issue - Matteo Tenti mentioned in merge request !26 (closed)
mentioned in merge request !26 (closed)
- Matteo Tenti created branch
18-add-detector-field-to-dg_cell-3
to address this issuecreated branch
18-add-detector-field-to-dg_cell-3
to address this issue - Matteo Tenti mentioned in merge request !27 (closed)
mentioned in merge request !27 (closed)
- Matteo Tenti mentioned in merge request !28 (merged)
mentioned in merge request !28 (merged)
- Matteo Tenti mentioned in commit f75759b0
mentioned in commit f75759b0
- Matteo Tenti closed with merge request !28 (merged)
closed with merge request !28 (merged)
Please register or sign in to reply