BasicProngVars.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include "RecoBase/Cluster.h"
7 #include "RecoBase/Prong.h"
8 #include "RecoBase/Vertex.h"
9 
10 namespace SliceLID
11 {
12 
14 {
15 public:
16  std::vector<double> len;
17  std::vector<double> calE;
18 
19 public:
20  bool hasProngs;
21  std::vector<art::Ptr<rb::Prong>> prongs;
22 
23 private:
26 
27  bool getProngs(
28  const art::Event &evt,
29  const std::vector<art::Ptr<rb::Vertex>> &elastics,
30  const std::string &baseLabel,
31  const std::string &assnLabel,
32  std::vector<art::Ptr<rb::Prong>> &prongs
33  );
34 
35  void initProngs(
36  const art::Event &evt,
37  const std::vector<art::Ptr<rb::Vertex>> &elastics
38  );
39 
40  void reserveVectors(size_t nProngs);
41  void initBasicVars();
42 
43 public:
44 
46  const art::Event &evt,
47  const std::vector<art::Ptr<rb::Vertex>> &elastics,
48  const std::string &fuzzykLabel,
49  const std::string &fuzzykAssnLabel
50  );
51 
52  void saveToDict(
53  std::unordered_map<std::string, std::vector<double>> &dict,
54  const std::string &prefix
55  ) const;
56 
57 };
58 
59 }
BasicProngVars(const art::Event &evt, const std::vector< art::Ptr< rb::Vertex >> &elastics, const std::string &fuzzykLabel, const std::string &fuzzykAssnLabel)
bool getProngs(const art::Event &evt, const std::vector< art::Ptr< rb::Vertex >> &elastics, const std::string &baseLabel, const std::string &assnLabel, std::vector< art::Ptr< rb::Prong >> &prongs)
std::vector< art::Ptr< rb::Prong > > prongs
std::vector< double > calE
int evt
Vertex location in position and time.
const XML_Char * prefix
Definition: expat.h:380
std::vector< double > len
void saveToDict(std::unordered_map< std::string, std::vector< double >> &dict, const std::string &prefix) const
void initProngs(const art::Event &evt, const std::vector< art::Ptr< rb::Vertex >> &elastics)
void reserveVectors(size_t nProngs)
Definition: fwd.h:28
enum BeamMode string