1 #ifndef SBNCODE_SINGLEPHOTONANALYSIS_LIBARIES_PROCESSORS_H
2 #define SBNCODE_SINGLEPHOTONANALYSIS_LIBARIES_PROCESSORS_H
13 namespace single_photon
15 int spacecharge_correction(
const art::Ptr<simb::MCParticle> & mcparticle, std::vector<double> & corrected, std::vector<double> & input);
17 int spacecharge_correction(
const art::Ptr<simb::MCParticle> & mcparticle, std::vector<double> & corrected);
22 const art::Event &
evt,
23 const std::string &label,
24 std::map< art::Ptr<simb::MCTruth>,
std::vector<art::Ptr<simb::MCParticle>>> &truthToParticles,
25 std::map< art::Ptr<simb::MCParticle>, art::Ptr<simb::MCTruth>> &particlesToTruth,
26 std::map<
int, art::Ptr<simb::MCParticle> > & MCParticleToTrackIdMap,
32 const art::Event &
evt,
33 const std::string &label,
35 std::map< art::Ptr<simb::MCParticle>,
std::vector<art::Ptr<recob::Hit> > > &particlesToHits,
36 std::map< art::Ptr<recob::Hit>, art::Ptr<simb::MCParticle> > &hitsToParticles,
38 std::map<
int, art::Ptr<simb::MCParticle> > & MCParticleToTrackIdMap,
45 bool IsEventInList(
int run,
int subrun,
int event, var_all& vars);
52 bool isInsidev2(std::vector<double> thishit_pos,
std::vector<std::vector<double >> rectangle, para_all& paras);
60 double GetQHit(art::Ptr<recob::Hit> thishitptr,
int plane, para_all& paras);
66 std::vector<double>
CalcdEdxFromdQdx(std::vector<double> dqdx, para_all& paras);
70 const art::Ptr<recob::Shower>&
shower,
71 const std::vector<art::Ptr<recob::Cluster>> & clusters,
72 std::map<art::Ptr<recob::Cluster>,
std::vector<art::Ptr<recob::Hit>> > & clusterToHitMap ,
int plane,
77 std::vector<double>
getPitch(TVector3 shower_dir, para_all& paras);
88 double triangle_area(
double a1,
double a2,
double b1,
double b2,
double c1,
double c2);
92 int delaunay_hit_wrapper(
const std::vector<art::Ptr<recob::Hit>>& hits, std::vector<int> & num_hits, std::vector<int>& num_triangles, std::vector<double> & area, para_all& paras);
95 #endif // SBNCODE_SINGLEPHOTONANALYSIS_LIBARIES_PROCESSORS_H
std::vector< double > CalcdEdxFromdQdx(std::vector< double > dqdx, para_all ¶s)
void CollectMCParticles(const art::Event &evt, const std::string &label, std::map< art::Ptr< simb::MCTruth >, std::vector< art::Ptr< simb::MCParticle >>> &truthToParticles, std::map< art::Ptr< simb::MCParticle >, art::Ptr< simb::MCTruth >> &particlesToTruth, std::map< int, art::Ptr< simb::MCParticle > > &MCParticleToTrackIdMap, var_all &vars)
int getNHitsPlane(std::vector< art::Ptr< recob::Hit >> hits, int this_plane)
void BuildMCParticleHitMaps(const art::Event &evt, const std::string &label, const std::vector< art::Ptr< recob::Hit >> &hitVector, std::map< art::Ptr< simb::MCParticle >, std::vector< art::Ptr< recob::Hit > > > &particlesToHits, std::map< art::Ptr< recob::Hit >, art::Ptr< simb::MCParticle > > &hitsToParticles, const lar_pandora::LArPandoraHelper::DaughterMode daughterMode, std::map< int, art::Ptr< simb::MCParticle > > &MCParticleToTrackIdMap, var_all &vars)
Contains data associated to particles from detector simulation.
int delaunay_hit_wrapper(const std::vector< art::Ptr< recob::Hit >> &hits, std::vector< int > &num_hits, std::vector< int > &num_triangles, std::vector< double > &area, para_all ¶s)
then echo echo For and will not be changed by echo further linking echo echo B echo The symbol is in the uninitialized data multiple common symbols may appear with the echo same name If the symbol is defined the common echo symbols are treated as undefined references For more echo details on common see the discussion of warn common echo in *Note Linker see the discussion of warn common echo in *Note Linker such as a global int variable echo as opposed to a large global array echo echo I echo The symbol is an indirect reference to another symbol This echo is a GNU extension to the a out object file format which is echo rarely used echo echo N echo The symbol is a debugging symbol echo echo R echo The symbol is in a read only data section echo echo S echo The symbol is in an uninitialized data section for small echo objects echo echo T echo The symbol is in the the normal defined echo symbol is used with no error When a weak undefined symbol echo is linked and the symbol is not the value of the echo weak symbol becomes zero with no error echo echo W echo The symbol is a weak symbol that has not been specifically echo tagged as a weak object symbol When a weak defined symbol echo is linked with a normal defined the normal defined echo symbol is used with no error When a weak undefined symbol echo is linked and the symbol is not the value of the echo weak symbol becomes zero with no error echo echo echo The symbol is a stabs symbol in an a out object file In echo this the next values printed are the stabs other echo the stabs desc and the stab type Stabs symbols are echo used to hold debugging information For more echo see *Note or object file format specific echo echo For Mac OS X
bool isInsidev2(std::vector< double > thishit_pos, std::vector< std::vector< double >> rectangle, para_all ¶s)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
bool Pi0PreselectionFilter2g0p(var_all &vars, para_all ¶s)
bool Pi0PreselectionFilter(var_all &vars, para_all ¶s)
void CollectSimChannels(const art::Event &evt, const std::string &label, std::vector< art::Ptr< sim::SimChannel > > &simChannelVector)
double getMeanHitWidthPlane(std::vector< art::Ptr< recob::Hit >> hits, int this_plane)
double triangle_area(double a1, double a2, double b1, double b2, double c1, double c2)
std::vector< double > CalcdQdxShower(const art::Ptr< recob::Shower > &shower, const std::vector< art::Ptr< recob::Cluster >> &clusters, std::map< art::Ptr< recob::Cluster >, std::vector< art::Ptr< recob::Hit >> > &clusterToHitMap, int plane, double triggeroffset, detinfo::DetectorPropertiesData const &theDetector, para_all ¶s)
int spacecharge_correction(const art::Ptr< simb::MCParticle > &mcparticle, std::vector< double > &corrected, std::vector< double > &input)
DaughterMode
DaughterMode enumeration.
double CalcEShowerPlane(const std::vector< art::Ptr< recob::Hit >> &hits, int this_plane, para_all ¶s)
std::vector< double > getPitch(TVector3 shower_dir, para_all ¶s)
double GetQHit(art::Ptr< recob::Hit > thishitptr, int plane, para_all ¶s)
object containing MC truth information necessary for making RawDigits and doing back tracking ...
double QtoEConversion(double Q, para_all ¶s)
bool IsEventInList(int run, int subrun, int event, var_all &vars)
int quick_delaunay_fit(int n, double *X, double *Y, int *num_triangles, double *area)
helper function for LArPandoraInterface producer module