LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
TCShowerAlg.h
Go to the documentation of this file.
1 // Class: TCShower
3 // File: TCShowerAlg.h
4 //
5 // Contact: roryfitz@umich.edu
6 //
7 // module produces showers by selecting tracks surround by many
8 // showerLike trajectories as defined by trajcluster with negative
9 // cluster IDs
11 
20 #include "fhiclcpp/ParameterSet.h"
23 
32 
34 
38 
43 
44 #include "TH1F.h"
45 
46 #include <memory>
47 
48 namespace shower {
49  class TCShowerAlg {
50  public:
51 
52  // shower parameters
53  TVector3 shwDir;
54  TVector3 dcosVtxErr;
55  TVector3 shwvtx;
56  TVector3 xyzErr;
57  std::vector<double> totalEnergy;
58  std::vector<double> totalEnergyErr;
59  std::vector<double> dEdx;
60  std::vector<double> dEdxErr;
61  int bestplane;
62  std::vector< art::Ptr<recob::Hit> > showerHits;
63 
64  TCShowerAlg(fhicl::ParameterSet const& pset);
65 
67 
68  private:
69 
72 
73  int goodHit(art::Ptr<recob::Hit>, double maxDist, double minDistVert, std::map<geo::PlaneID, double> trk_wire1, std::map<geo::PlaneID, double> trk_tick1, std::map<geo::PlaneID, double> trk_wire2, std::map<geo::PlaneID, double> trk_tick2);
74 
75  int goodHit(art::Ptr<recob::Hit>, double maxDist, double minDistVert, std::map<geo::PlaneID, double> trk_wire1, std::map<geo::PlaneID, double> trk_tick1, std::map<geo::PlaneID, double> trk_wire2, std::map<geo::PlaneID, double> trk_tick2, int& pull);
76 
78 
79  }; // class TCShowerAlg
80 
81 } // namespace shower
std::vector< double > totalEnergyErr
Definition: TCShowerAlg.h:58
Implementation of the Projection Matching Algorithm.
int goodHit(art::Ptr< recob::Hit >, double maxDist, double minDistVert, std::map< geo::PlaneID, double > trk_wire1, std::map< geo::PlaneID, double > trk_tick1, std::map< geo::PlaneID, double > trk_wire2, std::map< geo::PlaneID, double > trk_tick2)
std::vector< double > dEdx
Definition: TCShowerAlg.h:59
Declaration of signal hit object.
bool addShowerHit(art::Ptr< recob::Hit > hit, std::vector< art::Ptr< recob::Hit > > showerhits)
std::vector< art::Ptr< recob::Hit > > showerHits
Definition: TCShowerAlg.h:62
Class to keep data related to recob::Hit associated with recob::Track.
pma::ProjectionMatchingAlg fProjectionMatchingAlg
Definition: TCShowerAlg.h:71
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
Provides recob::Track data product.
Declaration of cluster object.
Detector simulation of raw signals on wires.
Implementation of the Projection Matching Algorithm.
Utility object to perform functions of association.
TCShowerAlg(fhicl::ParameterSet const &pset)
Definition: TCShowerAlg.cxx:45
std::vector< double > totalEnergy
Definition: TCShowerAlg.h:57
int makeShowers(std::vector< art::Ptr< recob::PFParticle > > pfplist, std::vector< art::Ptr< recob::Vertex > > vertexlist, std::vector< art::Ptr< recob::Cluster > > clusterlist, std::vector< art::Ptr< recob::Hit > > hitlist, art::FindManyP< recob::Hit > cls_fm, art::FindManyP< recob::Cluster > clspfp_fm, art::FindManyP< recob::Vertex > vtxpfp_fm, art::FindManyP< recob::PFParticle > hit_fm, art::FindManyP< recob::Cluster > hitcls_fm, art::FindManyP< recob::Track > trkpfp_fm, art::FindManyP< anab::Calorimetry > fmcal)
Definition: TCShowerAlg.cxx:50
calo::CalorimetryAlg fCalorimetryAlg
Definition: TCShowerAlg.h:70
std::vector< double > dEdxErr
Definition: TCShowerAlg.h:60
art framework interface to geometry description