ShowerLID.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file ShowerLID.h
3 // \brief A Shower class that records the log likelihood information
4 // for every shower.
5 // \version
6 // \author Kanika Sachdev (ksachdev@physics.umn.edu)
7 ////////////////////////////////////////////////////////////////////////
8 
9 #include "ShowerLID/ShowerLID.h"
11 
12 namespace slid {
13 
14  //......................................
16  : rb::PID( pid),
17  fPIDWithE(-5.0),
18  fEGLLL(-5.0), fEGLLT(-5.0),
19  fEMuLLL(-5.0), fEMuLLT(-5.0),
20  fEPi0LLL(-5.0), fEPi0LLT(-5.0),
21  fEPLLL(-5.0), fEPLLT(-5.0),
22  fENLLL(-5.0), fENLLT(-5.0),
23  fEPiLLL(-5.0), fEPiLLT(-5.0),
24  fInvGLLL(-5.0),
25  fGap(-5.0), fPi0mass(-5.0),
26  fRadius(-5.0), fIsMuon(false),
27  fCosTheta(-5.0), fShwEFrac(-5.0),
28  fVtxDoca(-5.0),
29  fVtxE(-5.0),fShwDepE(-5.0),
30  fShwE(-5.0), fNueEnergy(-5.0),
31  fHadE(-5.0),
32  fPIDEPi0(-5.0),fPIDEPi0EL(-5.0),
33  fDedx0(-5.0), fDedx1(-5.0), fDedx2(-5.0), fDedx3(-5.0), fDedx4(-5.0), fDedx5(-5.0),
34  fDedxp0c0(-5.0),fDedxp0c1(-5.0),fDedxp1c0(-5.0),fDedxp1c1(-5.0),fDedxp2c0(-5.0),fDedxp2c1(-5.0),
35  fDedxp3c0(-5.0),fDedxp3c1(-5.0),fDedxp4c0(-5.0),fDedxp4c1(-5.0),fDedxp5c0(-5.0),fDedxp5c1(-5.0),
36  fPIDECos(-5)
37  {
38  }// end of constructor
39 
41  {
42  std::map<int,float>::const_iterator itr = fPartLongLL.find(slid::DedxParticleType::kPHOTON);
43  float glll = -5;
44  if (itr != fPartLongLL.end()) glll = itr->second;
45  //float glll = fPartLongLL(slid::DedxParticleType::kPHOTON);
46  return (fInvGLLL > glll);
47  }
48 
49  ////////////////////////////////////////////////////////////////////////
50 
52  {
53  return a->ShowerEnergy() > b->ShowerEnergy();
54  }
55 
56 }// end of namespace slid
A pid value and corresponding pdg code.
Definition: PID.h:13
This is a helper class for ParticleIDAlg that provides a tidy structure in which to hold the dE/dx hi...
bool IsInversePhoton() const
Definition: ShowerLID.cxx:40
std::map< int, float > fPartLongLL
Map of the longitudinal ll by paricle type.
Definition: ShowerLID.h:238
bool CompareByEnergy(const slid::ShowerLID *a, const slid::ShowerLID *b)
Definition: ShowerLID.cxx:51
const double a
Perform a "2 point" Hough transform on a collection of hits.
float ShowerEnergy() const
Definition: ShowerLID.h:157
const hit & b
Definition: hits.cxx:21
Build slid::LID objects to store electron ID, if asked for, otherwise, calculate LID info and make av...
Definition: FillPIDs.h:13