public class CopyClusterCollectionDriver
extends org.lcsim.util.Driver
Cluster
collection to a new collection via the BaseCluster
class's copy constructor.Modifier and Type | Field and Description |
---|---|
private String |
inputCollectionName
The input collection name.
|
private String |
outputCollectionName
The output collection name.
|
private boolean |
storeHits
Set to
true to store hits in the output clusters. |
Constructor and Description |
---|
CopyClusterCollectionDriver()
Basic no argument constructor.
|
Modifier and Type | Method and Description |
---|---|
List<org.lcsim.event.Cluster> |
copyClusters(List<org.lcsim.event.Cluster> clusters)
Copy clusters to a new collection (list).
|
void |
process(org.lcsim.event.EventHeader event)
Process an event, copying the input collection to the output collection.
|
void |
setInputCollectionName(String inputCollectionName)
Set the input collection name (source).
|
void |
setOutputCollectionName(String outputCollectionName)
Set the output collection name (target).
|
void |
setStoreHits(boolean storeHits)
Set to
true to store hits in the output clusters. |
void |
startOfData()
Start of data hook which will make sure required arguments are set properly.
|
private String inputCollectionName
private String outputCollectionName
private boolean storeHits
true
to store hits in the output clusters.public CopyClusterCollectionDriver()
public List<org.lcsim.event.Cluster> copyClusters(List<org.lcsim.event.Cluster> clusters)
clusters
- the input cluster listpublic void process(org.lcsim.event.EventHeader event)
process
in class org.lcsim.util.Driver
event
- the LCSim eventpublic void setInputCollectionName(String inputCollectionName)
inputCollectionName
- the input collection namepublic void setOutputCollectionName(String outputCollectionName)
outputCollectionName
- the output collection namepublic void setStoreHits(boolean storeHits)
true
to store hits in the output clusters.storeHits
- true
to store hits; false
to not store hitspublic void startOfData()
startOfData
in class org.lcsim.util.Driver
Copyright © 2019. All rights reserved.