sphenix-tracking-l AT lists.bnl.gov
Subject: sPHENIX tracking discussion
List archive
Re: [Sphenix-tracking-l] How to access G4CELL_SVTX ?
- From: Christof E Roland <cer AT mit.edu>
- To: "Frawley, Anthony" <afrawley AT fsu.edu>
- Cc: "sphenix-tracking-l AT lists.bnl.gov" <sphenix-tracking-l AT lists.bnl.gov>
- Subject: Re: [Sphenix-tracking-l] How to access G4CELL_SVTX ?
- Date: Thu, 30 Mar 2017 07:37:51 +0000
Hi Everybody,
thanks a lot for the fix.
Everything works again.
Cheers
Christof
On 29.03.2017, at 20:09, Frawley, Anthony <afrawley AT fsu.edu> wrote:
Hi Christof,
This is fixed in the latest build (new.4) that was completed at around 1:30 pm today.
CheersTony
From: sPHENIX-tracking-l <sphenix-tracking-l-bounces AT lists.bnl.gov> on behalf of Christof E Roland <cer AT mit.edu>
Sent: Wednesday, March 29, 2017 12:46 AM
To: sphenix-tracking-l AT lists.bnl.gov
Subject: [Sphenix-tracking-l] How to access G4CELL_SVTX ?Hi Everybody,
I just updated to the latest master version of coresoftware and the
PHG4TrackKalmanFitter is broken. It exits with the following error:
PHG4TrackKalmanFitter.C:783: ERROR: Can't find node G4CELL_SVTX
I assume this is related to the recent retooling of the PHG4CylinderCell
classes. In the KalmanFitter and the Combinatorial Track finding
the CylinderCellMaps were used to access the sensor positions
and angles for a given hit. See code snippet below.
Could someone remind me what the replacement code with the
new PHG4Cell model is supposed to look like?
Thanks a lot
Christof
code that needs to be replaced:
PHG4CylinderCell_MAPS* cell =
(PHG4CylinderCell_MAPS*) cells_maps->findCylinderCell(
hit->get_cellid());
int stave_index = cell->get_stave_index();
int half_stave_index = cell->get_half_stave_index();
int module_index = cell->get_module_index();
int chip_index = cell->get_chip_index();
double ladder_location[3] = { 0.0, 0.0, 0.0 };
PHG4CylinderGeom_MAPS *geom =
(PHG4CylinderGeom_MAPS*) geom_container_maps->GetLayerGeom(
layer);
// returns the center of the sensor in world coordinates - used to get the ladder phi location
geom->find_sensor_center(stave_index, half_stave_index,
module_index, chip_index, ladder_location);
//n.Print();
n.SetXYZ(ladder_location[0], ladder_location[1], 0);
n.RotateZ(phi_tilt[layer]);
_______________________________________________
sPHENIX-tracking-l mailing list
sPHENIX-tracking-l AT lists.bnl.gov
https://lists.bnl.gov/mailman/listinfo/sphenix-tracking-l
To see the collection of prior postings to the list, visit the sPHENIX-tracking-l Archives. Using sPHENIX-tracking-l: To post a message to all the ...
-
[Sphenix-tracking-l] How to access G4CELL_SVTX ?,
Christof E Roland, 03/29/2017
-
Re: [Sphenix-tracking-l] How to access G4CELL_SVTX ?,
Frawley, Anthony, 03/29/2017
- Re: [Sphenix-tracking-l] How to access G4CELL_SVTX ?, Christof E Roland, 03/30/2017
-
Re: [Sphenix-tracking-l] How to access G4CELL_SVTX ?,
Frawley, Anthony, 03/29/2017
Archive powered by MHonArc 2.6.24.