#include <SEAviewer.h>
Public Member Functions | |
SEAviewer (std::string tag, geo::GeometryCore const *geom, detinfo::DetectorPropertiesData const &theDetector) | |
void | configure (const fhicl::ParameterSet &pset) |
int | loadVertex (double m_vertex_pos_x, double m_vertex_pos_y, double m_vertex_pos_z) |
int | addTrueVertex (double x, double y, double z) |
int | addHitsToConsider (std::vector< art::Ptr< recob::Hit >> &hits) |
int | addAllHits (std::vector< art::Ptr< recob::Hit >> &hits) |
int | filterConsideredHits (double dist_to_vertex) |
int | addPFParticleHits (std::vector< art::Ptr< recob::Hit >> &hits, std::string leg, double arg1=0.0, double arg2=0.0, double arg3=0.0) |
int | setBadChannelList (std::vector< std::pair< int, int >> &in) |
int | addShower (art::Ptr< recob::Shower > &shr) |
int | addTrack (art::Ptr< recob::Track > &trk) |
std::vector< int > | calcUnassociatedHits () |
int | setHitThreshold (double) |
int | Print (double plot_distance) |
int | runseaDBSCAN (double min_pts, double eps) |
double | calcWire (double Y, double Z, int plane, int fTPC, int fCryostat, geo::GeometryCore const &geo) |
double | calcTime (double X, int plane, int fTPC, int fCryostat, detinfo::DetectorPropertiesData const &detprop) |
std::vector< std::vector < double > > | to2D (std::vector< double > &threeD) |
double | dist_line_point (const std::vector< double > &X1, const std::vector< double > &X2, const std::vector< double > &point) |
double | dist_point_point (double w1, double t1, double w2, double t2) const |
void | BasicClusterCalorimetry (cluster &cl) |
std::vector< double > | analyzeTrackLikeClusters (double eps, const std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> &showerToPFParticleMap, const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > &pfParticleToHitsMap, std::vector< seaview::cluster > &vec_c) |
std::vector< double > | analyzeShowerLikeClusters (double eps, const std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> &showerToPFParticleMap, const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > &pfParticleToHitsMap, std::vector< seaview::cluster > &vec_c) |
void | TrackLikeClusterAnalyzer (cluster &cl, const std::vector< double > &shower_start_pt_2D, const std::vector< double > &shower_other_pt_2D) |
int | SeaviewCompareToShowers (int p, int cl, std::vector< art::Ptr< recob::Hit >> &hitz, double vertex_wire, double vertex_tick, std::vector< art::Ptr< recob::Shower >> &showers, const std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> &showerToPFParticleMap, const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > &pfParticleToHitsMap, double eps) |
cluster_score | SeaviewScoreCluster (int p, int cl, std::vector< art::Ptr< recob::Hit >> &hits, double vertex_wire, double vertex_tick, const art::Ptr< recob::Shower > &shower) |
TGraph * | SeaviewGetNearestNpts (int p, int cl, std::vector< art::Ptr< recob::Hit >> &hitz, double vertex_wire, double vertex_tick, int Npts) |
void | SetClusterLegend (int cluster, double energy, int is_matched, int matched_pdg, double overlay_fraction) |
Static Public Attributes | |
static constexpr double | wire_con = 0.3 |
static constexpr double | tick_con = 1.0/25.0 |
Protected Member Functions | |
void | format_legend (std::string &leg, double arg1=0.0, double arg2=0.0, double arg3=0.0) |
Protected Attributes | |
int | n_pfps |
int | n_showers |
int | n_tracks |
std::string | tag |
double | hit_threshold |
bool | has_been_clustered |
std::vector< std::vector < TGraph > > | vec_graphs |
std::vector< std::string > | vec_pfp_legend |
std::vector< std::vector < std::vector< double > > > | vec_ticks |
std::vector< std::vector < std::vector< double > > > | vec_chans |
geo::GeometryCore const * | geom |
detinfo::DetectorPropertiesData const & | theDetector |
double | tick_shift |
double | chan_shift |
double | tick_max |
double | tick_min |
std::vector< double > | chan_max |
std::vector< double > | chan_min |
std::vector< std::pair< int, int > > | m_bad_channel_list |
std::vector< double > | vertex_tick |
std::vector< double > | vertex_chan |
std::vector< TGraph > | vertex_graph |
bool | plot_true_vertex |
std::vector< double > | true_vertex_tick |
std::vector< double > | true_vertex_chan |
std::vector< TGraph > | true_vertex_graph |
std::map< art::Ptr< recob::Hit > , bool > | map_unassociated_hits |
std::map< art::Ptr< recob::Hit > , bool > | map_considered_hits |
std::vector< TGraph > | vec_unass_graphs |
std::vector< std::vector < double > > | vec_unass_ticks |
std::vector< std::vector < double > > | vec_unass_chans |
std::vector< std::vector < std::vector< double > > > | vec_unass_pts |
std::vector< std::vector < art::Ptr< recob::Hit > > > | vec_unass_hits |
std::vector< TGraph > | vec_all_graphs |
std::vector< std::vector < double > > | vec_all_ticks |
std::vector< std::vector < double > > | vec_all_chans |
std::vector< int > | num_clusters |
std::vector< std::vector< int > > | cluster_labels |
TRandom3 * | rangen |
std::vector< seaview::cluster > | vec_clusters |
std::vector< art::Ptr < recob::Shower > > | vec_showers |
std::vector< art::Ptr < recob::Track > > | vec_tracks |
Definition at line 268 of file SEAviewer.h.
seaview::SEAviewer::SEAviewer | ( | std::string | tag, |
geo::GeometryCore const * | geom, | ||
detinfo::DetectorPropertiesData const & | theDetector | ||
) |
Definition at line 129 of file SEAviewer.cxx.
int seaview::SEAviewer::addAllHits | ( | std::vector< art::Ptr< recob::Hit >> & | hits | ) |
Definition at line 200 of file SEAviewer.cxx.
int seaview::SEAviewer::addHitsToConsider | ( | std::vector< art::Ptr< recob::Hit >> & | hits | ) |
Definition at line 164 of file SEAviewer.cxx.
int seaview::SEAviewer::addPFParticleHits | ( | std::vector< art::Ptr< recob::Hit >> & | hits, |
std::string | leg, | ||
double | arg1 = 0.0 , |
||
double | arg2 = 0.0 , |
||
double | arg3 = 0.0 |
||
) |
Definition at line 279 of file SEAviewer.cxx.
int seaview::SEAviewer::addShower | ( | art::Ptr< recob::Shower > & | shr | ) |
Definition at line 312 of file SEAviewer.cxx.
int seaview::SEAviewer::addTrack | ( | art::Ptr< recob::Track > & | trk | ) |
Definition at line 320 of file SEAviewer.cxx.
int seaview::SEAviewer::addTrueVertex | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 377 of file SEAviewer.cxx.
std::vector< double > seaview::SEAviewer::analyzeShowerLikeClusters | ( | double | eps, |
const std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> & | showerToPFParticleMap, | ||
const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > & | pfParticleToHitsMap, | ||
std::vector< seaview::cluster > & | vec_c | ||
) |
Definition at line 783 of file SEAviewer.cxx.
std::vector< double > seaview::SEAviewer::analyzeTrackLikeClusters | ( | double | eps, |
const std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> & | showerToPFParticleMap, | ||
const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > & | pfParticleToHitsMap, | ||
std::vector< seaview::cluster > & | vec_c | ||
) |
Definition at line 737 of file SEAviewer.cxx.
void seaview::SEAviewer::BasicClusterCalorimetry | ( | cluster & | cl | ) |
Definition at line 1245 of file SEAviewer.cxx.
|
inline |
Definition at line 312 of file SEAviewer.h.
std::vector< int > seaview::SEAviewer::calcUnassociatedHits | ( | ) |
Definition at line 227 of file SEAviewer.cxx.
|
inline |
Definition at line 306 of file SEAviewer.h.
|
inline |
Definition at line 276 of file SEAviewer.h.
double seaview::SEAviewer::dist_line_point | ( | const std::vector< double > & | X1, |
const std::vector< double > & | X2, | ||
const std::vector< double > & | point | ||
) |
Definition at line 988 of file SEAviewer.cxx.
|
inline |
Definition at line 328 of file SEAviewer.h.
int seaview::SEAviewer::filterConsideredHits | ( | double | dist_to_vertex | ) |
Definition at line 172 of file SEAviewer.cxx.
|
protected |
Definition at line 1288 of file SEAviewer.cxx.
int seaview::SEAviewer::loadVertex | ( | double | m_vertex_pos_x, |
double | m_vertex_pos_y, | ||
double | m_vertex_pos_z | ||
) |
Definition at line 350 of file SEAviewer.cxx.
int seaview::SEAviewer::Print | ( | double | plot_distance | ) |
******************************** Plotting all PFP's *********************************8
Definition at line 405 of file SEAviewer.cxx.
int seaview::SEAviewer::runseaDBSCAN | ( | double | min_pts, |
double | eps | ||
) |
Definition at line 687 of file SEAviewer.cxx.
int seaview::SEAviewer::SeaviewCompareToShowers | ( | int | p, |
int | cl, | ||
std::vector< art::Ptr< recob::Hit >> & | hitz, | ||
double | vertex_wire, | ||
double | vertex_tick, | ||
std::vector< art::Ptr< recob::Shower >> & | showers, | ||
const std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> & | showerToPFParticleMap, | ||
const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > & | pfParticleToHitsMap, | ||
double | eps | ||
) |
Definition at line 1166 of file SEAviewer.cxx.
TGraph * seaview::SEAviewer::SeaviewGetNearestNpts | ( | int | p, |
int | cl, | ||
std::vector< art::Ptr< recob::Hit >> & | hitz, | ||
double | vertex_wire, | ||
double | vertex_tick, | ||
int | Npts | ||
) |
Definition at line 1210 of file SEAviewer.cxx.
cluster_score seaview::SEAviewer::SeaviewScoreCluster | ( | int | p, |
int | cl, | ||
std::vector< art::Ptr< recob::Hit >> & | hits, | ||
double | vertex_wire, | ||
double | vertex_tick, | ||
const art::Ptr< recob::Shower > & | shower | ||
) |
Definition at line 1014 of file SEAviewer.cxx.
int seaview::SEAviewer::setBadChannelList | ( | std::vector< std::pair< int, int >> & | in | ) |
Definition at line 159 of file SEAviewer.cxx.
void seaview::SEAviewer::SetClusterLegend | ( | int | cluster, |
double | energy, | ||
int | is_matched, | ||
int | matched_pdg, | ||
double | overlay_fraction | ||
) |
Definition at line 1262 of file SEAviewer.cxx.
int seaview::SEAviewer::setHitThreshold | ( | double | h | ) |
Definition at line 195 of file SEAviewer.cxx.
std::vector< std::vector< double > > seaview::SEAviewer::to2D | ( | std::vector< double > & | threeD | ) |
Definition at line 329 of file SEAviewer.cxx.
void seaview::SEAviewer::TrackLikeClusterAnalyzer | ( | cluster & | cl, |
const std::vector< double > & | shower_start_pt_2D, | ||
const std::vector< double > & | shower_other_pt_2D | ||
) |
Definition at line 26 of file SEAviewer.cxx.
|
protected |
Definition at line 396 of file SEAviewer.h.
|
protected |
Definition at line 397 of file SEAviewer.h.
|
protected |
Definition at line 392 of file SEAviewer.h.
|
protected |
Definition at line 431 of file SEAviewer.h.
|
protected |
Definition at line 388 of file SEAviewer.h.
|
protected |
Definition at line 379 of file SEAviewer.h.
|
protected |
Definition at line 378 of file SEAviewer.h.
|
protected |
Definition at line 399 of file SEAviewer.h.
|
protected |
Definition at line 415 of file SEAviewer.h.
|
protected |
Definition at line 414 of file SEAviewer.h.
|
protected |
Definition at line 373 of file SEAviewer.h.
|
protected |
Definition at line 374 of file SEAviewer.h.
|
protected |
Definition at line 375 of file SEAviewer.h.
|
protected |
Definition at line 430 of file SEAviewer.h.
|
protected |
Definition at line 406 of file SEAviewer.h.
|
protected |
Definition at line 432 of file SEAviewer.h.
|
protected |
Definition at line 377 of file SEAviewer.h.
|
protected |
Definition at line 389 of file SEAviewer.h.
|
static |
Definition at line 369 of file SEAviewer.h.
|
protected |
Definition at line 394 of file SEAviewer.h.
|
protected |
Definition at line 395 of file SEAviewer.h.
|
protected |
Definition at line 391 of file SEAviewer.h.
|
protected |
Definition at line 409 of file SEAviewer.h.
|
protected |
Definition at line 410 of file SEAviewer.h.
|
protected |
Definition at line 408 of file SEAviewer.h.
|
protected |
Definition at line 428 of file SEAviewer.h.
|
protected |
Definition at line 426 of file SEAviewer.h.
|
protected |
Definition at line 427 of file SEAviewer.h.
|
protected |
Definition at line 386 of file SEAviewer.h.
|
protected |
Definition at line 435 of file SEAviewer.h.
|
protected |
Definition at line 381 of file SEAviewer.h.
|
protected |
Definition at line 383 of file SEAviewer.h.
|
protected |
Definition at line 436 of file SEAviewer.h.
|
protected |
Definition at line 385 of file SEAviewer.h.
|
protected |
Definition at line 437 of file SEAviewer.h.
|
protected |
Definition at line 420 of file SEAviewer.h.
|
protected |
Definition at line 418 of file SEAviewer.h.
|
protected |
Definition at line 422 of file SEAviewer.h.
|
protected |
Definition at line 421 of file SEAviewer.h.
|
protected |
Definition at line 419 of file SEAviewer.h.
|
protected |
Definition at line 403 of file SEAviewer.h.
|
protected |
Definition at line 404 of file SEAviewer.h.
|
protected |
Definition at line 402 of file SEAviewer.h.
|
static |
Definition at line 368 of file SEAviewer.h.