Difference between revisions of "GlueX Data Classes"

From GlueXWiki
Jump to: navigation, search
(Reconstructed Event STorage (REST))
(Reconstructed Event STorage (REST))
Line 34: Line 34:
  
 
<syntaxhighlight>
 
<syntaxhighlight>
 +
//e.g., in your plugin's ::evnt() method:
 
vector<const DEventWriterREST*> locEventWriterRESTVector;
 
vector<const DEventWriterREST*> locEventWriterRESTVector;
 
locEventLoop->Get(locEventWriterRESTVector);
 
locEventLoop->Get(locEventWriterRESTVector);
Line 41: Line 42:
 
* Can write (skim) to many different files in the same plugin, even during multi-threaded execution.  
 
* Can write (skim) to many different files in the same plugin, even during multi-threaded execution.  
 
<syntaxhighlight>
 
<syntaxhighlight>
 +
//e.g., in your plugin's ::evnt() method:
 
if((locNumPositiveTracks >= 2) && (locNumNegativeTracks >= 2))
 
if((locNumPositiveTracks >= 2) && (locNumNegativeTracks >= 2))
 
   locEventWriterRESTVector[0]->Write_RESTEvent(locEventLoop, "2+_2-");
 
   locEventWriterRESTVector[0]->Write_RESTEvent(locEventLoop, "2+_2-");

Revision as of 23:12, 16 February 2013

Generated Data

  • NOTE: These definitions are spread throughout sim-recon/src/libraries/
  • DMCThrown: The generated particles for the event.
  • DBeamPhoton: The generated beam photon for the event.
  • DMCReaction: The generated reaction.
  • DMCTrigger: The generated trigger signal

Reconstructed Detector Data

  • NOTE: These definitions are spread throughout sim-recon/src/libraries/
  • DTaggerHit: These are currently unused by the analysis framework.
  • DSCHit: The raw detected SC hit.
  • DBCALShower: The reconstructed showers in the barrel calorimeter.
  • DFCALShower: The reconstructed showers in the forward calorimeter.
  • DTOFPoint: The reconstructed hit in the time-of-flight scintillators.
  • DTrackTimeBased: The particles reconstructed from time-based tracking. One DTrackTimeBased object is created per PID hypothesis (defaults are π+, K+, and p for positively charged tracks, and π-, K- for negatively charged tracks).

Reconstructed Particles

  • NOTE: These are located in sim-recon/src/libraries/PID/
  • DEventRFBunch_factory: The RF bunch corresponding to the event. More details on RF bunch selection are located at: RF Beam Bunch Selection & PID Details
    • NOTE: RF bunch selection is currently disabled. For now the DEventRFBunch always corresponds to t=0.
  • DChargedTrackHypothesis: Kinematic data for each DTrackTimeBased object (one per PID hypothesis, can be more than one per particle). When creating the DChargedTrackHypothesis objects, the tracks are matched to hits in the SC, BCAL, FCAL, and TOF, and the PID FOM is calculated. More details on Particle ID are located at: RF Beam Bunch Selection & PID Details
  • DChargedTrack: One for each reconstructed charged particle. Contains all of the DChargedTrackHypothesis objects for this particle.
  • DNeutralShower: One for each DBCALShower and DFCALShower object that is not matched to any of the DChargedTrackHypothesis objects.
  • DNeutralParticleHypothesis: Kinematic data for each DNeutralShower, one per PID: a photon and neutron. The particle vertex is assumed to be the center of the target.
  • DNeutralParticle: One for each reconstructed neutral shower. Contains all of the DNeutralParticleHypothesis objects for this particle.

Reconstructed Event STorage (REST)

  • REST files can be used to store the generated and reconstructed detector classes.

DEventWriterREST

  • Persistent object created by the DEventWriterREST factory.
  • DEventWriterREST::Write_RESTEvent(string) saves the event into the REST file specified by the string.
//e.g., in your plugin's ::evnt() method:
vector<const DEventWriterREST*> locEventWriterRESTVector;
locEventLoop->Get(locEventWriterRESTVector);
locEventWriterRESTVector[0]->Write_RESTEvent(locEventLoop, "b1pi"); //dana_rest_b1pi.hddm
  • Can write (skim) to many different files in the same plugin, even during multi-threaded execution.
//e.g., in your plugin's ::evnt() method:
if((locNumPositiveTracks >= 2) && (locNumNegativeTracks >= 2))
  locEventWriterRESTVector[0]->Write_RESTEvent(locEventLoop, "2+_2-");
 
if((locNumPositiveTracks >= 3) && (locNumNegativeTracks >= 2))
  locEventWriterRESTVector[0]->Write_RESTEvent(locEventLoop, "3+_2-");

danarest Plugin

  • sim-recon/src/programs/Utilities/plugins/danarest
  • Produces dana_rest.hddm, containing the generated and reconstructed detector data for every event.
hd_root hdgeant_smeared.hddm -PPLUGINS=danarest