Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:21:58

0001 // $Id: $
0002 
0003 /*!
0004  * \file PHG4HitEval.cc
0005  * \brief
0006  * \author Jin Huang <jhuang@bnl.gov>
0007  * \version $Revision:   $
0008  * \date $Date: $
0009  */
0010 
0011 #include "PHG4HitEval.h"
0012 
0013 #include "PHG4Hit.h"  // for PHG4Hit
0014 
0015 #include <phool/PHObject.h>  // for PHObject
0016 
0017 #include <cassert>
0018 
0019 PHG4HitEval::PHG4HitEval(const PHG4Hit *g4hit)
0020 {
0021   CopyFrom(g4hit);
0022 }
0023 
0024 void PHG4HitEval::CopyFrom(const PHObject *phobj)
0025 {
0026   const PHG4Hit *g4hit = dynamic_cast<const PHG4Hit *>(phobj);
0027   assert(g4hit);
0028 
0029   PHG4Hit::CopyFrom(phobj);
0030 
0031   // fill the branched variables from the property arrays
0032 
0033   eion = g4hit->get_eion();
0034   scint_id = g4hit->get_scint_id();
0035   light_yield = g4hit->get_light_yield();
0036   path_length = g4hit->get_path_length();
0037 }