CosRejFxs.h
Go to the documentation of this file.
1 #ifndef CosRejFxs_h
2 #define CosRejFxs_h
3 
4 #include "RecoBase/Track.h"
5 
6 namespace cosrej {
7 
8  class CosRejFxs {// class for various functions
9  public:
10  explicit CosRejFxs();
11  virtual ~CosRejFxs();
12 
13  float getAngle(TVector3 trackdir); // get cos(theta) of muon angle wrt neutrino angle
14 
15  void getFits(const art::Ptr<rb::Track> track, double &slope, double &chisq, double &chisqdiff);
16  float getScatt(const art::Ptr<rb::Track> track);
17  float getActivity(art::PtrVector< rb::CellHit > const& trackHits, art::PtrVector< rb::CellHit > const& sliceHits);
18  float fitslope(const std::vector< double > &l, const std::vector< double > &t, const std::vector< double > &q, double &chisq, double &inter, bool linflag);
19  float fitchisq(const std::vector< double > &t, const std::vector< double > &l, int flag, double c);
20  bool FScatterEstim(art::Ptr<rb::Track> track, bool& fromTrkEnd, double &angleExt, double &angleSigma, double &angleMax, double &angleSum);
21  void getCVVars(const art::Ptr<rb::Track> track, int ncell, bool &strongangle, bool &weakangle, bool &cont, float &cvfd, float &cvbd);
22  void getBBC(const art::Ptr<rb::Cluster> slice, int &nhitsoutside);
23 
24  /// \name nue variables
25  //@{
26  double TransverseMomentumFraction(const std::vector<art::Ptr<rb::Prong>>& prongs) const;
27  //@}
28  };
29 }
30 
31 #endif
double TransverseMomentumFraction(const std::vector< art::Ptr< rb::Prong >> &prongs) const
Definition: event.h:19
void getBBC(const art::Ptr< rb::Cluster > slice, int &nhitsoutside)
Definition: CosRejFxs.cxx:369
bool FScatterEstim(art::Ptr< rb::Track > track, bool &fromTrkEnd, double &angleExt, double &angleSigma, double &angleMax, double &angleSum)
Definition: CosRejFxs.cxx:228
void getFits(const art::Ptr< rb::Track > track, double &slope, double &chisq, double &chisqdiff)
Definition: CosRejFxs.cxx:44
float getScatt(const art::Ptr< rb::Track > track)
Definition: CosRejFxs.cxx:189
float getAngle(TVector3 trackdir)
Definition: CosRejFxs.cxx:33
float chisq
Definition: plotTbData.C:11
float fitchisq(const std::vector< double > &t, const std::vector< double > &l, int flag, double c)
Definition: CosRejFxs.cxx:148
float fitslope(const std::vector< double > &l, const std::vector< double > &t, const std::vector< double > &q, double &chisq, double &inter, bool linflag)
Definition: CosRejFxs.cxx:122
void getCVVars(const art::Ptr< rb::Track > track, int ncell, bool &strongangle, bool &weakangle, bool &cont, float &cvfd, float &cvbd)
Definition: CosRejFxs.cxx:321
Cosmic Rejection PIDs for Numu analysis.
Definition: FillParentInfo.h:9
float getActivity(art::PtrVector< rb::CellHit > const &trackHits, art::PtrVector< rb::CellHit > const &sliceHits)
Definition: CosRejFxs.cxx:210
virtual ~CosRejFxs()
Definition: CosRejFxs.cxx:25