15 #include "art_root_io/TFileService.h" 84 HnVtxes = tfs->make<TH1F>(
"Num Vertices",
"Num Vertices", 8, -0.5, 7.5);
85 HVtxSep = tfs->make<TH1F>(
"Vertices spacing",
"Vertices spacing", 20, 0.001, 5.0);
86 HVtxRZ = tfs->make<TH2F>(
"Vtx in RZ",
"Vtx in RZ", 20, -50.0, +50.0, 20, 0.0, 50.0);
87 HnTrksVtx = tfs->make<TH1F>(
"Tracks per vtx",
"Tracks per vtx", 8, -0.5, 7.5);
97 for (
unsigned int ii = 0; ii < hitListHandle->size(); ++ii) {
104 for (
unsigned int ii = 0; ii < epListHandle->size(); ++ii) {
111 for (
unsigned int ii = 0; ii < trackListHandle->size(); ++ii) {
118 for (
unsigned int ii = 0; ii < vertexListHandle->size(); ++ii) {
130 std::vector<art::Ptr<recob::Track>> tvlist = fmt.at(v1);
134 if (tvlist.size() < 1)
continue;
136 std::vector<art::Ptr<recob::Hit>> hitvlist = fmh.at(v1);
145 std::vector<art::Ptr<recob::Hit>> hitvlist2 = fmh.at(v2);
147 std::vector<art::Ptr<recob::Hit>>
::const_iterator hitv2 = hitvlist2.begin();
150 while (hitv != hitvlist.end()) {
151 while (hitv2 != hitvlist2.end()) {
154 <<
"AggregateVertexAna: dist is " << dist.Mag() <<
".";
std::string fTrack3DModuleLabel
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
Declaration of signal hit object.
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
art::PtrVector< recob::EndPoint2D > feplist
typename data_t::const_iterator const_iterator
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
Provides recob::Track data product.
Detector simulation of raw signals on wires.
std::string fEndPointModuleLabel
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
constexpr double dist(const TReal *x, const TReal *y, const unsigned int dimension)
art::PtrVector< recob::Vertex > fVertexlist
std::string fDBScanModuleLabel
AggregateVertexAna(fhicl::ParameterSet const &pset)