Classes | Functions
upmuana Namespace Reference

Classes

class  LlrUpmu
 
class  UpMuAnalysis
 
class  UpMuProb
 
class  UpMuRecoAna
 

Functions

double getErr (double PE)
 
double getDist (double x1, double y1, double z1, double x2, double y2, double z2)
 
bool recoHitComp (rb::RecoHit lhs, rb::RecoHit rhs)
 
bool pairHitComp (std::pair< rb::CellHit, rb::RecoHit > lhp, std::pair< rb::CellHit, rb::RecoHit > rhp)
 
int getDiblock (int plane)
 

Function Documentation

int upmuana::getDiblock ( int  plane)
inline

Definition at line 79 of file UpMuRecoAna_module.cc.

Referenced by upmuana::UpMuRecoAna::analyze().

79 { return (plane/64)+1; } // start at 1
double upmuana::getDist ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)
inline

Definition at line 54 of file UpMuAnalysis_module.cc.

References std::sqrt().

Referenced by upmuana::UpMuRecoAna::analyze(), upmuana::UpMuAnalysis::getLLR(), and upmuana::UpMuRecoAna::getLLR().

55  {
56  return sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2));
57  }
Float_t y1[n_points_granero]
Definition: compare.C:5
Float_t x1[n_points_granero]
Definition: compare.C:5
T sqrt(T number)
Definition: d0nt_math.hpp:156
double upmuana::getErr ( double  PE)
inline

Definition at line 50 of file UpMuAnalysis_module.cc.

References cet::pow().

Referenced by upmuana::UpMuRecoAna::analyze(), upmuana::UpMuAnalysis::getLLR(), and upmuana::UpMuRecoAna::getLLR().

50  {
51  return 165143/(1882.9+pow(PE,2.11447)) + 10.4321;
52  }
constexpr T pow(T x)
Definition: pow.h:75
bool upmuana::pairHitComp ( std::pair< rb::CellHit, rb::RecoHit lhp,
std::pair< rb::CellHit, rb::RecoHit rhp 
)

Definition at line 70 of file UpMuAnalysis_module.cc.

References recoHitComp().

Referenced by upmuana::UpMuRecoAna::analyze(), upmuana::UpMuAnalysis::analyze(), and upmuana::UpMuProb::produce().

71  {
72  return recoHitComp(lhp.second, rhp.second);
73  }
bool recoHitComp(rb::RecoHit lhs, rb::RecoHit rhs)
bool upmuana::recoHitComp ( rb::RecoHit  lhs,
rb::RecoHit  rhs 
)

Definition at line 60 of file UpMuAnalysis_module.cc.

References rb::RecoHit::T(), rb::RecoHit::Y(), and rb::RecoHit::Z().

Referenced by pairHitComp().

60  {
61  if (lhs.Y() == rhs.Y()) {
62  if (lhs.Z() == rhs.Z()) {
63  return lhs.T() < rhs.T();
64  }
65  else return lhs.Z() < rhs.Z();
66  }
67  else return lhs.Y() < rhs.Y();
68  }
float T() const
Definition: RecoHit.h:39
float Z() const
Definition: RecoHit.h:38
float Y() const
Definition: RecoHit.h:37