21 #include "Utilities/AssociationUtil.h" 22 #include "Utilities/func/MathUtil.h" 61 produces< std::vector<rb::Track> >();
63 produces< art::Assns<rb::Track, rb::Cluster> >();
102 std::unique_ptr< std::vector<rb::Track> > trackcol(
new std::vector<rb::Track>);
110 std::vector< art::Ptr<rb::Cluster> > slices;
115 const int sliceMax = slices.size();
117 for(
int sliceIdx = 0; sliceIdx < sliceMax; ++sliceIdx){
120 if(slices[sliceIdx]->IsNoise() )
continue;
122 LOG_DEBUG(
"CosmicTrack") <<
"On slice " << sliceIdx <<
" of " << sliceMax;
126 for(
auto track : tracks){
127 if (
track.NCell() == 0 )
continue;
128 trackcol->push_back(
track);
134 evt.
put(std::move(trackcol));
135 evt.
put(std::move(assns));
#define LOG_DEBUG(stream)
An algorithm to perform cosmic ray track fitting.
static bool CreateAssn(art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
Create a 1 to 1 association between a new product and one already in the event.
std::string fClusterInput
Input folder from cluster reco.
void produce(art::Event &evt)
DEFINE_ART_MODULE(TestTMapFile)
Track finder for cosmic rays.
An algorithm to perform cosmic ray track fitting.
ProductID put(std::unique_ptr< PROD > &&product)
Track finder for cosmic rays.
T get(std::string const &key) const
void reconfigure(const fhicl::ParameterSet &p)
An algorithm to perform cosmic ray track fitting.
trk::TrackAlg * fTrkAlg
Algorithm to carry out track fitting.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
CosmicTrack(fhicl::ParameterSet const &pset)
virtual std::vector< rb::Track > MakeTrack(const rb::Cluster *slice)=0
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
Track finder for cosmic rays.