|
| EvalVtx (const fhicl::ParameterSet &pset) |
|
void | analyze (const art::Event &evt) override |
|
Definition at line 21 of file EvalVtx_module.cc.
quad::EvalVtx::EvalVtx |
( |
const fhicl::ParameterSet & |
pset | ) |
|
|
explicit |
Definition at line 43 of file EvalVtx_module.cc.
46 fVertexLabels(pset.get<std::vector<std::string>>(
"VertexLabels"))
48 art::ServiceHandle<art::TFileService>
tfs;
50 fTree = tfs->make<TTree>(
"vtxs",
"vtxs");
std::vector< std::string > fVertexLabels
std::vector< double > gRecoZ
std::vector< double > gRecoX
std::vector< double > gRecoY
art::ServiceHandle< art::TFileService > tfs
void quad::EvalVtx::analyze |
( |
const art::Event & |
evt | ) |
|
|
override |
Definition at line 111 of file EvalVtx_module.cc.
113 const auto& truths = *
evt.getValidHandle<std::vector<simb::MCTruth>>(
fTruthLabel);
114 if(truths.empty())
return;
116 const simb::MCParticle&
nu = truths[0].GetNeutrino().Nu();
recob::Vertex GetVtxByAssns(const std::string &label, const art::Event &evt)
std::vector< std::string > fVertexLabels
std::vector< double > gRecoZ
Definition of vertex object for LArSoft.
tracking::Point_t Point_t
std::vector< double > gRecoX
recob::Vertex GetFirstVertex(const std::string &label, const art::Event &evt)
std::vector< double > gRecoY
const Point_t & position() const
Return vertex 3D position.
TTree* quad::EvalVtx::fTree |
|
private |
std::string quad::EvalVtx::fTruthLabel |
|
private |
std::vector<std::string> quad::EvalVtx::fVertexLabels |
|
private |
std::vector<double> quad::EvalVtx::gRecoX |
|
private |
std::vector<double> quad::EvalVtx::gRecoY |
|
private |
std::vector<double> quad::EvalVtx::gRecoZ |
|
private |
double quad::EvalVtx::gTrueX |
|
private |
double quad::EvalVtx::gTrueY |
|
private |
double quad::EvalVtx::gTrueZ |
|
private |
The documentation for this class was generated from the following file: