Skip to Content.
Sympa Menu

star-fwd-software-l - [Star-fwd-software-l] StFwdTracks in StEvent

star-fwd-software-l AT lists.bnl.gov

Subject: FWD Software

List archive

Chronological Thread  
  • From: "Brandenburg, James" <jbrandenburg AT bnl.gov>
  • To: "star-fwd-software-l AT lists.bnl.gov" <star-fwd-software-l AT lists.bnl.gov>
  • Subject: [Star-fwd-software-l] StFwdTracks in StEvent
  • Date: Fri, 6 May 2022 01:07:54 +0000

Hi Akio, all,

The version of the tracking code at 
https://github.com/jdbrice/star-sw-1/tree/fwd-tracking

Now writes fwd tracks into the StEvent structure as we discussed. 
You can see everything you need at this point from the `processFwdTracks` function:

void StFwdTrackMaker::ProcessFwdTracks( ){

StEvent *stEvent = static_cast<StEvent *>(GetInputDS("StEvent"));
StFwdTrackCollection * ftc = stEvent->fwdTrackCollection();
for ( auto fwdTrack : ftc->tracks() ){
auto atEPD = fwdTrack->mProjections[0];
auto atECAL = fwdTrack->mProjections[1];
auto atHCAL = fwdTrack->mProjections[2];

LOG_INFO << "Track crosses EPD @ " << TString::Format( "(%0.2f+/-%0.2f, %0.2f+/-%0.2f, %0.2f+/-%0.2f)", atEPD.XYZ.x(), atEPD.dx(), atEPD.XYZ.y(), atEPD.dy(), atEPD.XYZ.z(), atEPD.dz() ) << endm;
}
}


If you would like to use the genfit track directly then please look at the documentation that I hosted here:
https://www.star.bnl.gov/protected/lfsupc/jdb/GenFitDocs/

and specifically for the Track:
https://www.star.bnl.gov/protected/lfsupc/jdb/GenFitDocs/classgenfit_1_1_track.html

Once you have a match maker class working please feel free to push to this branch that way I can make use of it as well.

Thanks for your patience,
Daniel




  • [Star-fwd-software-l] StFwdTracks in StEvent, Brandenburg, James, 05/05/2022

Archive powered by MHonArc 2.6.24.

Top of Page