It refers to the type of vertexed particle it is (or unvertexed), and what constraint it has (unconstrained, target, or beamspot).

e.g. bsc_V0Candidate, uc_MollerCandidates, fs_particles (individual particles with no vertexing), or mc_particles.


The list of particle types found in a dst event can be seen in the source code:

/u/group/hps/hps_soft/hps-dst/src/hps_event/HpsEvent.cxx


An example of how to declare a particular type (as of the current dst-maker version) is:


const HpsParticle::ParticleType uc_moller = HpsParticle::UC_MOLLER_CANDIDATE;


then


int n_uc_mollers = ev1->getNumberOfParticles(uc_moller);

HpsParticle *Moller


loop over events {

for( int i = 0; i < n_uc_mollers; i++ )
        {
          Moller = ev1->getParticle(uc_moller, i);
          TRefArray *mollers = Moller->getParticles();
           moller1 = (HpsParticle*)mollers->At(0);

          ...then get stuff from moller1, or from the event, etc.

        }

}

      V0 particles work the same way. It's a little strange, because a "vertexed particle" (e.g. "Moller" above) is actually an array of two HpsParticles. So you get things like the mass and vertex from the "Moller", but almost everything else (momentum, etc.) from the two particles you extract from it.


      I hope this is what you were asking...


From: [log in to unmask] <[log in to unmask]> on behalf of Maurik Holtrop <[log in to unmask]>
Sent: Wednesday, June 29, 2016 9:58:58 PM
To: HPS Software
Subject: getType()?
 
Hello All,

Expect a lot of stupid questions from me in the next while :-)

Can anyone point me to what the detailed meaning is of the HPS particles type?
In the code I can only find that it is set to track.getType(), but I don’t seem to find anywhere what the types actually mean. Is there a table somewhere?

Thanks,
        Maurik

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1


Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1