23 #include "canvas/Persistency/Common/FindManyP.h" 37 #include "art_root_io/TFileService.h" 38 #include "art_root_io/TFileDirectory.h" 46 #include "dune/EventGenerator/ProtoDUNEbeamDataProducts/ProtoDUNEbeamsim.h" 52 class ProtoDUNEBeamTPCMatching;
70 virtual void endJob()
override;
141 beamtpc = tfs->make<TTree>(
"beam-tpc",
"Beam + TPC matiching Tree");
172 auto beamsim = evt.
getValidHandle<std::vector<sim::ProtoDUNEbeamsim> >(
"generator");
249 TVector3
pos, dir_start, dir_end;
250 for(
unsigned int t = 0;
t < recoTracks->size(); ++
t){
263 bool hasTruth = (trueMatch != 0x0);
264 if (hasTruth ==
true) {
std::string fpandoraTrack
double Py(const int i=0) const
float beam_true_bprof4_pos[4]
double Px(const int i=0) const
Vector_t VertexDirection() const
EDAnalyzer(fhicl::ParameterSet const &pset)
std::vector< anab::T0 > GetRecoTrackT0(const recob::Track &track, art::Event const &evt, std::string trackModule) const
Get the T0(s) from a given reco track.
void reconfigure(fhicl::ParameterSet const &p)
float beam_smeared_dir[3]
#define DEFINE_ART_MODULE(klass)
Float_t GetSmearedVar1() const
double P(const int i=0) const
T get(std::string const &key) const
Point_t const & Vertex() const
double T(const int i=0) const
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
ProtoDUNEBeamTPCMatching(fhicl::ParameterSet const &p)
void analyze(art::Event const &e) override
Code to link reconstructed objects back to the MC truth information.
float tpc_true_startpos[4]
double Vx(const int i=0) const
Declaration of signal hit object.
ProtoDUNEBeamTPCMatching & operator=(ProtoDUNEBeamTPCMatching const &)=delete
Float_t GetSmearedVar2() const
double Pz(const int i=0) const
Provides recob::Track data product.
float tpc_reco_startpos[4]
double Vz(const int i=0) const
cet::LibraryManager dummy("noplugin")
float beam_smeared_bprof4_pos[4]
virtual void endJob() override
double Vy(const int i=0) const
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
virtual void beginJob() override