14 #include "art_root_io/TFileService.h" 18 #include "canvas/Persistency/Common/FindManyP.h" 92 HnVtxes = tfs->make<TH1F>(
"Num Vertices",
"Num Vertices",8,-0.5,7.5);
93 HVtxSep = tfs->make<TH1F>(
"Vertices spacing",
"Vertices spacing",20,0.001,5.0);
94 HVtxRZ = tfs->make<TH2F>(
"Vtx in RZ",
"Vtx in RZ",20,-50.0,+50.0,20,0.0,50.0);
95 HnTrksVtx = tfs->make<TH1F>(
"Tracks per vtx",
"Tracks per vtx",8,-0.5,7.5);
105 for(
unsigned int ii = 0; ii < hitListHandle->size(); ++ii){
112 for(
unsigned int ii = 0; ii < epListHandle->size(); ++ii){
119 for(
unsigned int ii = 0; ii < trackListHandle->size(); ++ii){
126 for(
unsigned int ii = 0; ii < vertexListHandle->size(); ++ii){
138 std::vector< art::Ptr<recob::Track> > tvlist = fmt.at(v1);
142 if(tvlist.size() < 1)
continue;
144 std::vector< art::Ptr<recob::Hit> > hitvlist = fmh.at(v1);
153 std::vector< art::Ptr<recob::Hit> > hitvlist2 = fmh.at(v2);
155 std::vector< art::Ptr<recob::Hit> >
::const_iterator hitv2 = hitvlist2.begin();
158 while( hitv != hitvlist.end() ){
159 while( hitv2 != hitvlist2.end() ){
161 mf::LogInfo(
"AggregateVertexAna") <<
"AggregateVertexAna: dist is " << dist.Mag() <<
".";
std::string fTrack3DModuleLabel
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
art::PtrVector< recob::Track > ftracklist
std::string fHoughModuleLabel
art::PtrVector< recob::Hit > fhitlist
EDAnalyzer(fhicl::ParameterSet const &pset)
void analyze(const art::Event &evt)
std::string fVertexModuleLabel
std::string fHitModuleLabel
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
art::PtrVector< recob::EndPoint2D > feplist
typename data_t::const_iterator const_iterator
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
std::string fEndPointModuleLabel
Declaration of signal hit object.
constexpr double dist(const TReal *x, const TReal *y, const unsigned int dimension)
art::PtrVector< recob::Vertex > fVertexlist
Provides recob::Track data product.
auto const & get(AssnsNode< L, R, D > const &r)
std::string fDBScanModuleLabel
AggregateVertexAna(fhicl::ParameterSet const &pset)