HighLAND
numuCC4piUtils.hxx
1 #ifndef numuCC4piUtils_h
2 #define numuCC4piUtils_h
3 
4 #include "BaseDataClasses.hxx"
5 #include "DataClasses.hxx"
6 #include "ToyBoxB.hxx"
7 
8  const Float_t LAFVmin[3] = {57.66, 57.66, 10.125};
9  const Float_t LAFVmax[3] = {57.66, 57.66, 0.};
10  const Float_t HAFVmin[3] = {57.66, 57.66, 10.125};
11  const Float_t HAFVmax[3] = {57.66, 57.66, 10.125};
12 
13  const Float_t _FVdefminDsECal[3] = {40, 40, 25.}; // "z == 25." to reject peak near the DsECal beginning in both data and MC
14  const Float_t _FVdefmaxDsECal[3] = {40, 40, 18.17}; // reject last layer in both data and MC
15  const Float_t _FVdefminFGD2[3] = {76.88, 38.44, 0.}; //9.61*8, 9.61*4
16  const Float_t _FVdefmaxFGD2[3] = {76.88, 38.44, 10.125}; //9.61*8, 9.61*4
17 
18 namespace numuCC4pi_utils{
19 
20  int CC4piCategory(AnaTrack* candidate);
21  int OOFVCategory(AnaTrack* candidate, int topo);
22  int GetFgdLayer(Float_t* pos);
23  Float_t* GetFittedPos(Float_t* start, Float_t* end, double z);
24  Float_t GetDeltaPos(Float_t* hit, Float_t* fit);
25  Float_t GetDeltaPos2(Float_t* hit, Float_t* fit);
26  bool HGlobalMomFirst(AnaTrackB* a, AnaTrackB* b);
27  bool HRangeMomFirst(AnaTrackB* a, AnaTrackB* b);
28  bool isHMNT(const AnaTrackB* candidate, std::vector<AnaTrackB*> GroupTracks, bool lowangle);
29 
30  bool VetoCut(int topo, const AnaEventB& event, AnaTrackB& candidate);
31  bool ExternalCut(int topo, const AnaEventC& event, AnaTrackB& candidate);
32  int PIDCut(int topo, const AnaTrackB& candidate);
33 
34 }
35 
36 
37 #endif
Representation of a global track.
Representation of a global track.