AnaUtils.h
Go to the documentation of this file.
1 #ifndef GAR_ANAUTILS_H
2 #define GAR_ANAUTILS_H
3 
4 #include <string>
5 #include <unordered_map>
6 #include <vector>
7 
8 #include <TLorentzVector.h>
9 
12 
16 
19 
22 
25 
28 
29 using std::vector;
30 using std::pair;
31 
32 namespace gar{
33 
34  int ProcessNameToCode(std::string const& p);
35  void FillGTruth(const simb::GTruth& gt, garana::GTruth& outtruth);
36 
37  garana::GTruth MakeAnaGTruth(const simb::GTruth& gt, const int& vtxregion);
39  garana::G4Particle MakeG4Particle(const simb::MCParticle& mcp, int parentPdg, int progenitorPdg, int progenitorTrackId,
40  const vector<pair<TLorentzVector,TLorentzVector>>& positions,
41  const vector<pair<TLorentzVector,TLorentzVector>>& momenta, const vector<int>& regions,
42  const vector<size_t>& nptsPerRegion);
43 
44  const garana::Track MakeAnaTrack(const rec::Track& trk, const vector<pair<int,float>>& pidf,
45  const vector<pair<int,float>>& pidb, float ionf, float ionb,
46  const vector<pair<UInt_t,TLorentzVector>>& posBeg,
47  const vector<pair<UInt_t,TLorentzVector>>& posEnd,
48  const vector<pair<UInt_t,TLorentzVector>>& momBeg,
49  const vector<pair<UInt_t,TLorentzVector>>& momEnd,
50  const vector<pair<int,float>>& edeps);
51 
52  garana::CaloCluster MakeAnaCalCluster(const rec::Cluster& clust, const int& region, const vector<pair<int,float>>& edeps);
53  garana::Vee MakeAnaVee(const rec::Vee& vee);
55 
56  /*void ChangeToTpcCoords(garana::GTruth& gt, const TLorentzVector& origin);
57  void ChangeToTpcCoords(garana::Track& track, const TLorentzVector& origin);
58  void ChangeToTpcCoords(garana::CaloCluster& clust, const TLorentzVector& origin);
59  void ChangeToTpcCoords(garana::Vertex& vtx, const TLorentzVector& origin);
60  void ChangeToTpcCoords(garana::Vee& vee, const TLorentzVector& origin);
61  void ChangeToTpcCoords(garana::G4Particle& g4p, const TLorentzVector& origin);
62  void ChangeToTpcCoords(garana::FSParticle& g4p, const TLorentzVector& origin);*/
63 }
64 
65 #endif
std::string string
Definition: nybbler.cc:12
int ProcessNameToCode(std::string const &p)
Definition: AnaUtils.cxx:137
garana::FSParticle MakeFSParticle(const simb::MCParticle &mcp)
Definition: AnaUtils.cxx:29
struct vector vector
Particle class.
garana::Vee MakeAnaVee(const rec::Vee &vee)
Definition: AnaUtils.cxx:67
garana::CaloCluster MakeAnaCalCluster(const rec::Cluster &clust, const int &region, const std::vector< std::pair< int, float >> &edeps)
Definition: AnaUtils.cxx:48
void FillGTruth(const simb::GTruth &gt, garana::GTruth &outtruth)
Definition: AnaUtils.cxx:151
garana::Vertex MakeAnaVtx(const rec::Vertex &vtx)
Definition: AnaUtils.cxx:80
garana::G4Particle MakeG4Particle(const simb::MCParticle &mcp, int parentPdg, int progenitorPdg, int progenitorTrackId, const vector< pair< TLorentzVector, TLorentzVector >> &positions, const vector< pair< TLorentzVector, TLorentzVector >> &momenta, const vector< int > &regions, const vector< size_t > &nptsPerRegion)
Definition: AnaUtils.cxx:33
p
Definition: test.py:223
General GArSoft Utilities.
garana::GTruth MakeAnaGTruth(const simb::GTruth &gt, const int &vtxregion)
Definition: AnaUtils.cxx:17
boost::graph_traits< ModuleGraph >::vertex_descriptor Vertex
Definition: ModuleGraph.h:25
TrackCollectionProxyElement< TrackCollProxy > Track
Proxy to an element of a proxy collection of recob::Track objects.
Definition: Track.h:1036
const garana::Track MakeAnaTrack(const rec::Track &trk, const vector< pair< int, float >> &pidf, const vector< pair< int, float >> &pidb, float ionf, float ionb, const vector< pair< UInt_t, TLorentzVector >> &posBeg, const vector< pair< UInt_t, TLorentzVector >> &posEnd, const vector< pair< UInt_t, TLorentzVector >> &momBeg, const vector< pair< UInt_t, TLorentzVector >> &momEnd, const vector< pair< int, float >> &edeps)
Definition: AnaUtils.cxx:202