- void GtoL(const Int_t index,const Double_t *g,Double_t *l){
- Double_t dg[3],dl[3];Int_t i;for(i=0;i<3;i++) dg[i] = g[i];
- GetGeomMatrix(index)->GtoLPosition(dg,dl);
- for(i=0;i<3;i++) l[i] =dl[i];}
-//
- // Transforms from the ALICE Global coordinate system
- // to the detector local coordinate system (used for ITS tracking)
- // for the detector module index number. The global and local
- // coordinate are given in two Double point arrays g[3], and l[3].
- void GtoLtracking(const Int_t index,const Double_t *g,Double_t *l){
- if(IsGeantToTracking()) GtoL(index,g,l);
- else GetGeomMatrix(index)->GtoLPositionTracking(g,l);}
- // Transforms from the ALICE Global coordinate system
- // to the detector local coordinate system (used for ITS tracking)
- // for the detector id[3]. The global and local
- // coordinate are given in two Double point arrays g[3], and l[3].
- void GtoLtracking(const Int_t *id,const Double_t *g,Double_t *l){
- GtoLtracking(GetModuleIndex(id),g,l);}
- // Transforms from the ALICE Global coordinate system
- // to the detector local coordinate system (used for ITS tracking)
- // for the detector layer ladder and detector numbers. The global
- // and local coordinate are given in two Double point arrays g[3],
- // and l[3].
- void GtoLtracking(const Int_t lay,const Int_t lad,const Int_t det,
- const Double_t *g,Double_t *l){
- GtoLtracking(GetModuleIndex(lay,lad,det),g,l);}
-//
- // Transforms of momentum types of quantities from the ALICE
- // Global coordinate system to the detector local coordinate system
- // for the detector layer ladder and detector numbers. The global
- // and local coordinate are given in two float point arrays g[3],
- // and l[3].
- void GtoLMomentum(const Int_t lay,const Int_t lad,const Int_t det,
- const Float_t *g,Float_t *l){
- GtoLMomentum(GetModuleIndex(lay,lad,det),g,l);}
- // Transforms of momentum types of quantities from the ALICE
- // Global coordinate system to the detector local coordinate system
- // for the detector module index number. The global and local
- // coordinate are given in two float point arrays g[3], and l[3].
- void GtoLMomentum(const Int_t index,const Float_t *g,Float_t *l){
- Double_t dg[3],dl[3];Int_t i;for(i=0;i<3;i++) dg[i] = g[i];
- GetGeomMatrix(index)->GtoLMomentum(dg,dl);
- for(i=0;i<3;i++) l[i] =dl[i];}
- // Transforms of momentum types of quantities from the ALICE
- // Global coordinate system to the detector local coordinate system
- // for the detector layer ladder and detector numbers. The global
- // and local coordinate are given in two Double point arrays g[3],
- // and l[3].
- void GtoLMomentum(const Int_t lay,const Int_t lad,const Int_t det,
- const Double_t *g,Double_t *l){
- GtoLMomentum(GetModuleIndex(lay,lad,det),g,l);}
- // Transforms of momentum types of quantities from the ALICE
- // Global coordinate system to the detector local coordinate system
- // for the detector module index number. The global and local
- // coordinate are given in two Double point arrays g[3], and l[3].
- void GtoLMomentum(const Int_t index,const Double_t *g,Double_t *l){
- Double_t dg[3],dl[3];Int_t i;for(i=0;i<3;i++) dg[i] = g[i];
- GetGeomMatrix(index)->GtoLMomentum(dg,dl);
- for(i=0;i<3;i++) l[i] =dl[i];}
-//
- // Transforms of momentum types of quantities from the ALICE
- // Global coordinate system to the detector local coordinate system
- // (used for ITS tracking) for the detector module index number.
- // The global and local coordinate are given in two Double point
- // arrays g[3], and l[3].
- void GtoLMomentumTracking(const Int_t index,const Double_t *g,Double_t *l){
- if(IsGeantToTracking()) GtoLMomentum(index,g,l);
- else GetGeomMatrix(index)->GtoLMomentumTracking(g,l);}
- // Transforms of momentum types of quantities from the ALICE
- // Global coordinate system to the detector local coordinate system
- // (used for ITS tracking) for the detector id[3].
- // The global and local coordinate are given in two Double point
- // arrays g[3], and l[3].
- void GtoLMomentumTracking(const Int_t *id,const Double_t *g,Double_t *l){
- GtoLMomentumTracking(GetModuleIndex(id),g,l);}
- // Transforms of momentum types of quantities from the ALICE
- // Global coordinate system to the detector local coordinate system
- // (used for ITS tracking) for the detector layer ladder and detector
- // numbers. The global and local coordinate are given in two Double point
- // arrays g[3], and l[3].
- void GtoLMomentumTracking(const Int_t lay,const Int_t lad,const Int_t det,
- const Double_t *g,Double_t *l){
- GtoLMomentumTracking(GetModuleIndex(lay,lad,det),g,l);}
-//
- // Transforms from the detector local coordinate system
- // to the ALICE Global coordinate system for the detector
- // defined by the layer, ladder, and detector numbers. The
- // global and local coordinate are given in two floating point
- // arrays g[3], and l[3].
- void LtoG(const Int_t lay,const Int_t lad,const Int_t det,
- const Float_t *l,Float_t *g){
- LtoG(GetModuleIndex(lay,lad,det),l,g);}
- // Transforms from the detector local coordinate system
- // to the ALICE Global coordinate system for the detector
- // defined by the id[0], id[1], and id[2] numbers. The
- // global and local coordinate are given in two floating point
- // arrays g[3], and l[3].
- void LtoG(const Int_t *id,const Float_t *l,Float_t *g){
- LtoG(GetModuleIndex(id),l,g);}
- // Transforms from the detector local coordinate system
- // to the ALICE Global coordinate system for the detector
- // module index number. The global and local coordinate are
- // given in two floating point arrays g[3], and l[3].
- void LtoG(const Int_t index,const Float_t *l,Float_t *g){
- Double_t dg[3],dl[3];Int_t i;for(i=0;i<3;i++) dl[i] = l[i];
- GetGeomMatrix(index)->LtoGPosition(dl,dg);
- for(i=0;i<3;i++) g[i] =dg[i];}
- // Transforms from the detector local coordinate system
- // to the ALICE Global coordinate system for the detector
- // defined by the layer, ladder, and detector numbers. The
- // global and local coordinate are given in two Double point
- // arrays g[3], and l[3].
- void LtoG(const Int_t lay,const Int_t lad,const Int_t det,
- const Double_t *l,Double_t *g){
- LtoG(GetModuleIndex(lay,lad,det),l,g);}
- // Transforms from the detector local coordinate system
- // to the ALICE Global coordinate system for the detector
- // defined by the id[0], id[1], and id[2] numbers. The
- // global and local coordinate are given in two Double point
- // arrays g[3], and l[3].
- void LtoG(const Int_t *id,const Double_t *l,Double_t *g){
- LtoG(GetModuleIndex(id),l,g);}
- // Transforms from the detector local coordinate system
- // to the ALICE Global coordinate system for the detector
- // module index number. The global and local coordinate are
- // given in two Double point arrays g[3], and l[3].
- void LtoG(const Int_t index,const Double_t *l,Double_t *g){
- Double_t dg[3],dl[3];Int_t i;for(i=0;i<3;i++) dl[i] = l[i];
- GetGeomMatrix(index)->LtoGPosition(dl,dg);
- for(i=0;i<3;i++) g[i] =dg[i];}
-//
- // Transforms from the detector local coordinate system (used
- // for ITS tracking) to the ALICE Global coordinate system
- // for the detector module index number. The global and local
- // coordinate are given in two Double point arrays g[3], and l[3].
- void LtoGtracking(const Int_t index,const Double_t *l,Double_t *g){
- if(IsGeantToTracking()) LtoG(index,l,g);
- else GetGeomMatrix(index)->LtoGPositionTracking(l,g);}
- // Transforms from the detector local coordinate system (used
- // for ITS tracking) to the ALICE Global coordinate system
- // for the detector id[3]. The global and local
- // coordinate are given in two Double point arrays g[3], and l[3].
- void LtoGtracking(const Int_t *id,const Double_t *l,Double_t *g){
- LtoGtracking(GetModuleIndex(id),l,g);}
- // Transforms from the detector local coordinate system (used
- // for ITS tracking) to the detector local coordinate system
- // for the detector layer ladder and detector numbers. The global
- // and local coordinate are given in two Double point arrays g[3],
- // and l[3].
- void LtoGtracking(const Int_t lay,const Int_t lad,const Int_t det,
- const Double_t *l,Double_t *g){
- LtoGtracking(GetModuleIndex(lay,lad,det),l,g);}
-//
- // Transforms of momentum types of quantities from the detector
- // local coordinate system to the ALICE Global coordinate system
- // for the detector layer ladder and detector numbers. The global
- // and local coordinate are given in two float point arrays g[3],
- // and l[3].
- void LtoGMomentum(const Int_t lay,const Int_t lad,const Int_t det,
- const Float_t *l,Float_t *g){
- LtoGMomentum(GetModuleIndex(lay,lad,det),l,g);}
- // Transforms of momentum types of quantities from the detector
- // local coordinate system to the ALICE Global coordinate system
- // for the detector module index number. The global and local
- // coordinate are given in two float point arrays g[3], and l[3].
- void LtoGMomentum(const Int_t index,const Float_t *l,Float_t *g){
- Double_t dg[3],dl[3];Int_t i;for(i=0;i<3;i++) dl[i] = l[i];
- GetGeomMatrix(index)->LtoGMomentum(dl,dg);
- for(i=0;i<3;i++) g[i] =dg[i];}
- // Transforms of momentum types of quantities from the detector
- // local coordinate system to the ALICE Global coordinate system
- // for the detector layer ladder and detector numbers. The global
- // and local coordinate are given in two Double point arrays g[3],
- // and l[3].
- void LtoGMomentum(const Int_t lay,const Int_t lad,const Int_t det,
- const Double_t *l,Double_t *g){
- LtoGMomentum(GetModuleIndex(lay,lad,det),l,g);}
- // Transforms of momentum types of quantities from the detector
- // local coordinate system to the ALICE Global coordinate system
- // for the detector module index number. The global and local
- // coordinate are given in two Double point arrays g[3], and l[3].
- void LtoGMomentum(const Int_t index,const Double_t *l,Double_t *g){
- GetGeomMatrix(index)->LtoGMomentum(l,g);}
-//
- // Transforms of momentum types of quantities from the detector
- // local coordinate system (used for ITS tracking) to the detector
- // system ALICE Global for the detector module index number.
- // The global and local coordinate are given in two Double point
- // arrays g[3], and l[3].
- void LtoGMomentumTracking(const Int_t index,const Double_t *l,Double_t *g){
- if(IsGeantToTracking()) LtoGMomentum(index,l,g);
- else GetGeomMatrix(index)->LtoGMomentumTracking(l,g);}
- // Transforms of momentum types of quantities from the detector
- // local coordinate system (used for ITS tracking) to the ALICE
- // Global coordinate system for the detector id[3].
- // The global and local coordinate are given in two Double point
- // arrays g[3], and l[3].
- void LtoGMomentumTracking(const Int_t *id,const Double_t *l,Double_t *g){
- LtoGMomentumTracking(GetModuleIndex(id),l,g);}
- // Transforms of momentum types of quantities from the detector
- // local coordinate system (used for ITS tracking) to the ALICE
- // Global coordinate system for the detector layer ladder and detector
- // numbers. The global and local coordinate are given in two Double point
- // arrays g[3], and l[3].
- void LtoGMomentumTracking(const Int_t lay,const Int_t lad,const Int_t det,
- const Double_t *l,Double_t *g){
- LtoGMomentumTracking(GetModuleIndex(lay,lad,det),l,g);}
-//
- // Transforms from one detector local coordinate system
- // to another detector local coordinate system for the detector
- // module index1 number to the detector module index2 number. The
- // local coordinates are given in two Double point arrays l1[3],
- // and l2[3].
- void LtoL(const Int_t index1,const Int_t index2,Double_t *l1,Double_t *l2){
- Double_t g[3]; LtoG(index1,l1,g);GtoL(index2,g,l2);}
- // Transforms from one detector local coordinate system
- // to another detector local coordinate system for the detector
- // id1[3] to the detector id2[3]. The local coordinates are given
- // in two Double point arrays l1[3], and l2[3].
- void LtoL(const Int_t *id1,const Int_t *id2,Double_t *l1,Double_t *l2){
- LtoL(GetModuleIndex(id1[0],id1[1],id1[2]),
- GetModuleIndex(id2[0],id2[1],id2[2]),l1,l2);}
-//
- // Transforms from one detector local coordinate system (used for
- // ITS tracking) to another detector local coordinate system (used
- // for ITS tracking) for the detector module index1 number to the
- // detector module index2 number. The local coordinates are given
- // in two Double point arrays l1[3], and l2[3].
- void LtoLtracking(const Int_t index1,const Int_t index2,
- Double_t *l1,Double_t *l2){
- Double_t g[3]; LtoGtracking(index1,l1,g);GtoLtracking(index2,g,l2);}
- // Transforms from one detector local coordinate system (used for
- // ITS tracking) to another detector local coordinate system (used
- // for ITS tracking) for the detector id1[3] to the detector id2[3].
- // The local coordinates are given in two Double point arrays l1[3],
- // and l2[3].
- void LtoLtracking(const Int_t *id1,const Int_t *id2,
- Double_t *l1,Double_t *l2){
- LtoLtracking(GetModuleIndex(id1[0],id1[1],id1[2]),
- GetModuleIndex(id2[0],id2[1],id2[2]),l1,l2);}
-//
- // Transforms of momentum types of quantities from one detector
- // local coordinate system to another detector local coordinate
- // system for the detector module index1 number to the detector
- // module index2 number. The local coordinates are given in two
- // Double point arrays l1[3], and l2[3].
- void LtoLMomentum(const Int_t index1,const Int_t index2,
- const Double_t *l1,Double_t *l2){
- Double_t g[3]; LtoGMomentum(index1,l1,g);GtoLMomentum(index2,g,l2);}
- // Transforms of momentum types of quantities from one detector
- // local coordinate system to another detector local coordinate
- // system for the detector id1[3] to the detector id2[3]. The local
- // coordinates are given in two Double point arrays l1[3], and l2[3].
- void LtoLMomentum(const Int_t *id1,const Int_t *id2,
- const Double_t *l1,Double_t *l2){
- LtoLMomentum(GetModuleIndex(id1[0],id1[1],id1[2]),
- GetModuleIndex(id2[0],id2[1],id2[2]),l1,l2);}
-//
- // Transforms of momentum types of quantities from one detector
- // local coordinate system (used by ITS tracking) to another detector
- // local coordinate system (used by ITS tracking) for the detector
- // module index1 number to the detector module index2 number. The
- // local coordinates are given in two Double point arrays l1[3],
- // and l2[3].
- void LtoLMomentumTracking(const Int_t index1,const Int_t index2,
- Double_t *l1,Double_t *l2){
- Double_t g[3]; LtoGMomentumTracking(index1,l1,g);
- GtoLMomentumTracking(index2,g,l2);}
- // Transforms of momentum types of quantities from one detector
- // local coordinate system (used by ITS tracking) to another detector
- // local coordinate system (used by ITS tracking) for the detector
- // id1[3] to the detector id2[3]. The local coordinates are given in
- // two Double point arrays l1[3], and l2[3].
- void LtoLMomentumTracking(const Int_t *id1,const Int_t *id2,
- Double_t *l1,Double_t *l2){
- LtoLMomentumTracking(GetModuleIndex(id1[0],id1[1],id1[2]),
- GetModuleIndex(id2[0],id2[1],id2[2]),l1,l2);}
-//
- // Transforms a matrix, like an Uncertainty or Error matrix from
- // the ALICE Global coordinate system to a detector local coordinate
- // system. The specific detector is determined by the module index
- // number.
- void GtoLErrorMatrix(const Int_t index,const Double_t **g,Double_t **l){
- GetGeomMatrix(index)->GtoLPositionError((Double_t (*)[3])g,(Double_t (*)[3])l);}
-//
- // Transforms a matrix, like an Uncertainty or Error matrix from
- // the ALICE Global coordinate system to a detector local coordinate
- // system (used by ITS tracking). The specific detector is determined
- // by the module index number.
- void GtoLErrorMatrixTracking(const Int_t index,const Double_t **g,
- Double_t **l){
- if(IsGeantToTracking()) GetGeomMatrix(index)->GtoLPositionError((
- Double_t (*)[3])g,(Double_t (*)[3])l);
- else GetGeomMatrix(index)->GtoLPositionErrorTracking(
- (Double_t (*)[3])g,(Double_t (*)[3])l);}
-//
- // Transforms a matrix, like an Uncertainty or Error matrix from
- // the detector local coordinate system to a ALICE Global coordinate
- // system. The specific detector is determined by the module index
- // number.
- void LtoGErrorMatrix(const Int_t index,const Double_t **l,Double_t **g){
- GetGeomMatrix(index)->LtoGPositionError((Double_t (*)[3])l,(Double_t (*)[3])g);}
-//
- // Transforms a matrix, like an Uncertainty or Error matrix from
- // the detector local coordinate system (used by ITS tracking) to a
- // ALICE Global coordinate system. The specific detector is determined
- // by the module index number.
- void LtoGErrorMatrixTracking(const Int_t index,const Double_t **l,
- Double_t **g){
- if(IsGeantToTracking()) GetGeomMatrix(index)->LtoGPositionError((
- Double_t (*)[3])g,(Double_t (*)[3])l);
- else GetGeomMatrix(index)->LtoGPositionErrorTracking((Double_t (*)[3])l,
- (Double_t (*)[3])g);}
-//
- // Transforms a matrix, like an Uncertainty or Error matrix from
- // one detector local coordinate system to another detector local
- // coordinate system. The specific detector is determined by the
- // two module index number index1 and index2.
- void LtoLErrorMatrix(const Int_t index1,const Int_t index2,
- const Double_t **l1,Double_t **l2){
- Double_t g[3][3];
- LtoGErrorMatrix(index1,l1,(Double_t **)g);
- GtoLErrorMatrix(index2,(const Double_t **)g,l2);}
-//
- // Transforms a matrix, like an Uncertainty or Error matrix from
- // one detector local coordinate system (used by ITS tracking) to
- // another detector local coordinate system (used by ITS tracking).
- // The specific detector is determined by the two module index number
- // index1 and index2.
- void LtoLErrorMatrixTraking(const Int_t index1,const Int_t index2,
- const Double_t **l1,Double_t **l2){Double_t g[3][3];
- LtoGErrorMatrixTracking(index1,l1,(Double_t **)g);
- GtoLErrorMatrixTracking(index2,(const Double_t **)g,l2);}
-// Find Specific Modules
- Int_t GetNearest(const Double_t g[3],const Int_t lay=0);
- void GetNearest27(const Double_t g[3],Int_t n[27],const Int_t lay=0);