Allow clusters and digits to *always* be cloned.
In the Stripping, most objects are cloned via their association to
Particle
objects, so it can make sense to conditionally clone objects in
the Particle
dependency tree based on properties of that Particle
(e.g.
its charge).
The CaloHypoCloner
and CaloClusterCloner
tools were updated in !142 (merged) such that the cloning of objects in the CaloHypo
and CaloCluster
dependency trees is dependent upon the parent cloner tool passing a pointer to a Particle
, whose charge is used to determine whether descendent CaloDigit
objects are cloned.
In Moore, we clone whole containers of objects, and so need to configure algorithms in a way that is unconditional on what parent cloner might be (indeed, there may not be a parent cloner).
This MR adds flags to the CaloHypoCloner
and CaloClusterCloner
tools that, when true
, ignore the Particle
pointer and always clone the descendent CaloDigit
objects.
/cc @jonrob (as author of !142 (merged)) @rmatev