...
This page documents the framework for developing PFA algorithms, explains the conventions used, and gives example implementations.
Conventions
In order to make the PFA components as interchangeable as possible, we have adopted some conventions. These were discussed at the January 2005 Boulder simulation workshop. They will probably evolve slowly over time.
...
No Format |
---|
public class TrivialPFA extends Driver { public TrivialPFA() { // CalHitMapDriver is a driver that produces hitmaps in the format // needed by DigiSim: add(new org.lcsim.recon.cluster.util.CalHitMapDriver()); // Run DigiSim, producing raw hit collections: org.lcsim.digisim.DigiSimDriver digi = new org.lcsim.digisim.DigiSimDriver(); add(digi); // Convert the output to SimCalorimeterHit format for use in analysis: add( new org.lcsim.digisim.SimCalorimeterHitsDriver() ); // Now we can add some more drivers to analyze the output. For example: // Set up a hitmap for the digisim output hits HitMapDriver digiHitMap = new HitMapDriver(); digiHitMap.addInputList("EcalBarrDigiHits"); digiHitMap.addInputList("EcalEndcapDigiHits"); digiHitMap.addInputList("HcalBarrDigiHits"); digiHitMap.addInputList("HcalEndcapDigiHits"); digiHitMap.setOutput("digi hitmap"); add(digiHitMap); // Set up the MC list CreateFinalStateMCParticleList mcListMaker = new CreateFinalStateMCParticleList("Gen"); add(mcListMaker); // Cluster the hits (perfect pattern recognition) PerfectClusterer clusterer = new PerfectClusterer(); clusterer.setInputHitMap("digi hitmap"); clusterer.setOutputHitMap("leftover hits"); clusterer.setOutputClusterList("perfect clusters"); clusterer.setMCParticleList("GenFinalStateParticles"); add(clusterer); } } |
Reading in and writing out hitmaps
...
If you are writing your own drivers to use in a PFA, you will probably need to read in hitmaps, and maybe also write out a modified hitmap. Here is a snippet showing how to do this.
...