public abstract class MergeUtil extends Object
Constructor and Description |
---|
MergeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addMCParticleContributions(ISimCalorimeterHit targetHit,
SimCalorimeterHit hit,
float dt)
Add MCParticle contributions from an overlay hit to a target hit.
|
static ISimCalorimeterHit |
findMatching(LCCollection coll,
SimCalorimeterHit hit)
Find a SimCalorimeterHit in coll with matching cellId0, cellId1.
|
static int |
getCollectionIdx(String[] collnames,
String name)
Find the given name in collnames.
|
static void |
mergeCollection(LCCollection targetColl,
LCCollection overlayColl,
float dt)
overlayCollection overlays the overlayColl onto the targetColl applying
the delta time, dt.
|
static void |
mergeDefaultCollection(LCCollection targetColl,
LCCollection overlayColl)
Merge overlayColl into targetColl without applying a delta time.
|
static int |
mergeEvents(LCEvent targetEvent,
LCReader overlayEvents,
int ntoread,
boolean setEventHeader,
float startt,
float dt)
Merge ntoread events from a reader into a single target event, applying time
delta dt with starting time of startt.
|
static int |
mergeFiles(File outfile,
List mergeFiles)
Merge nEventsToRead events from each File in mergeFiles into a single event in outfile,
until records in mergeFiles are exhausted.
|
static int |
mergeFiles(File outfile,
List mergeFiles,
int maxEvents)
Merge events from mergeFiles into a single event in outfile,
until all the files in mergeFiles are exhausted, or maxevents
are created.
|
static void |
mergeMCParticleCollection(LCCollection targetColl,
LCCollection overlayColl,
float dt)
Merge MCParticle collection overlayColl into targetColl.
|
static void |
mergeSimCalorimeterHitCollection(LCCollection targetColl,
LCCollection overlayColl,
float dt)
Merge SimCalorimeterHit collection overlayColl into targetColl.
|
static void |
mergeSimTrackerHitCollection(LCCollection targetColl,
LCCollection overlayColl,
float dt)
Merge SimTrackerHit collection overlayColl into targetColl.
|
static void |
mergeSingleEvent(ILCEvent targetEvent,
LCEvent overlayEvent,
float dt)
Overlay the overlay event onto target event, applying time delta.
|
public static int mergeFiles(File outfile, List mergeFiles, int maxEvents) throws IOException
outfile
- Target file that will contain the merged events.A
- list of @see MergeFileOptions objects.maxEvents
- Set the maximum number of merged events.IOException
public static int mergeFiles(File outfile, List mergeFiles) throws IOException
outfile
- Output Target file containing the merged events.A
- list of @see MergeFileOptions objects.IOException
public static int mergeEvents(LCEvent targetEvent, LCReader overlayEvents, int ntoread, boolean setEventHeader, float startt, float dt) throws IOException
targetEvent
- target LCEvent to merge events intooverlayEvents
- LCReader with overlay events to readntoread
- number of events to overlay from overlayEventsdt
- delta time to be applied to the sim typesIOException
public static void mergeSingleEvent(ILCEvent targetEvent, LCEvent overlayEvent, float dt)
targetEvent
- The event that will be overlayed onto from overlayEvent.overlayEvent
- An event to be overlayed onto targetEvent.dt
- A delta time to apply to sim types.public static void mergeCollection(LCCollection targetColl, LCCollection overlayColl, float dt)
targetColl
- The target collection to be modified.overlayColl
- The overlay collection containing objects to merge into targetColl.dt
- A delta time parameter applied to sim types of overlayColl before merge-in.public static void mergeDefaultCollection(LCCollection targetColl, LCCollection overlayColl)
targetColl
- The target collection to be modified.overlayColl
- The overlay collection containing objects to merge into targetColl.public static void mergeMCParticleCollection(LCCollection targetColl, LCCollection overlayColl, float dt)
targetColl
- The target collection to be modified.overlayColl
- The overlay collection containing objects to merge into targetColl.dt
- A delta time parameter added to the particle's production time.public static void mergeSimCalorimeterHitCollection(LCCollection targetColl, LCCollection overlayColl, float dt)
targetColl
- The target collection to be modified.overlayColl
- The overlay collection containing objects to merge into targetColl.dt
- A delta time parameter added to MCParticle contributions from overlayColl's hits.public static void mergeSimTrackerHitCollection(LCCollection targetColl, LCCollection overlayColl, float dt)
targetColl
- The target collection to be modified.overlayColl
- The overlay collection containing objects to merge into targetColl.dt
- A delta time parameter added to the time of hits from overlayColl.public static ISimCalorimeterHit findMatching(LCCollection coll, SimCalorimeterHit hit)
Collection
- of type SIMCALORIMETERHIT.hit
- Matching hit to be searched for in coll.public static int getCollectionIdx(String[] collnames, String name)
collnames
- A list of collection names.name
- A collection name to find in collnames.public static void addMCParticleContributions(ISimCalorimeterHit targetHit, SimCalorimeterHit hit, float dt)
target
- Hit that receives MCParticle contributions.hit
- Hit containing MCParticle contributions to be copied.dt
- Delta time to apply to contributions.Jas4pp 1.5 © Java Analysis Studio for Particle Physics