Public Member Functions | Protected Attributes | Friends | List of all members
rb::RecoHit Class Reference

Calibrated quantities relying on position in the orthogonal view. To generate a rb::CellHit from a rb::RecoHit you need a reconstructed object to provide the assumed W position. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-09-26/RecoBaseHit/RecoHit.h"

Public Member Functions

 RecoHit ()
 
 ~RecoHit ()
 
bool IsCalibrated () const
 You MUST check here before accessing PECorr, MIP or GeV. More...
 
void Print () const
 
float PECorr () const
 
float MIP () const
 
float GeV () const
 
float X () const
 
float Y () const
 
float Z () const
 
float T () const
 
void SetPECorr (float PECorr)
 
void SetMIP (float MIP)
 
void SetGeV (float GeV)
 
void SetX (float X)
 
void SetY (float Y)
 
void SetZ (float Z)
 
void SetT (float T)
 

Protected Attributes

float fPECorr
 PE with attenuation corrections added. More...
 
float fMIP
 pulseheight normalized to a MIP More...
 
float fGeV
 energy deposition represented by this hit More...
 
float fX
 spacetime location of deposition, x (cm) More...
 
float fY
 spacetime location of deposition, y (cm) More...
 
float fZ
 spacetime location of deposition, z (cm) More...
 
float fT
 spacetime location of deposition, t (ns) More...
 

Friends

std::ostream & operator<< (std::ostream &o, const RecoHit &r)
 

Detailed Description

Calibrated quantities relying on position in the orthogonal view. To generate a rb::CellHit from a rb::RecoHit you need a reconstructed object to provide the assumed W position.

Definition at line 19 of file RecoHit.h.

Constructor & Destructor Documentation

rb::RecoHit::RecoHit ( )

Definition at line 18 of file RecoHit.cxx.

Referenced by ncid::NCNNKerasVal::analyze(), remid::ReMIdDedxRock::analyze(), remid::ReMIdDedxStudies::analyze(), remid::ReMIdDedxFD::analyze(), nnbar::RecoAnalysis::analyze(), cvn::RegPixelMapProducer::CreateMapGivenVertex(), bsf::BremShowerFilter::filter(), and ncid::MakeNCCosRej::produce().

18  :
19  fPECorr(-1),
20  fMIP(-1),
21  fGeV(-1),
22  fX(0),
23  fY(0),
24  fZ(0),
25  fT(0)
26  {
27  }
float fZ
spacetime location of deposition, z (cm)
Definition: RecoHit.h:59
float fY
spacetime location of deposition, y (cm)
Definition: RecoHit.h:58
float fPECorr
PE with attenuation corrections added.
Definition: RecoHit.h:54
float fT
spacetime location of deposition, t (ns)
Definition: RecoHit.h:60
float fX
spacetime location of deposition, x (cm)
Definition: RecoHit.h:57
float fGeV
energy deposition represented by this hit
Definition: RecoHit.h:56
float fMIP
pulseheight normalized to a MIP
Definition: RecoHit.h:55
rb::RecoHit::~RecoHit ( )

Definition at line 30 of file RecoHit.cxx.

31  {
32  }

Member Function Documentation

float rb::RecoHit::GeV ( ) const

Definition at line 69 of file RecoHit.cxx.

References om::cerr, allTimeWatchdog::endl, fGeV, and IsCalibrated().

Referenced by dif::DiFShowerFinder::adjustPlane(), dif::DiFShowerFinder::adjustPlane_end(), tut::TutAnalyzer::analyze(), calib::TestParticleCorrections::analyze(), murem::MuonRemoveAna::analyze(), zcl::FmmTrackerValidation::analyze(), showere::ShowerEnergyAna::analyze(), remid::ReMIdDedxRock::analyze(), remid::ReMIdDedxFD::analyze(), remid::ReMIdDedxStudies::analyze(), bpfit::BreakPointProtonAna::analyze(), ncs::Xeff::analyze(), ncs::ROCKMRE::analyze(), slid::LIDTraining::analyze(), upmuana::UpMuRecoAna::analyze(), ncs::NCAna::analyze(), upmuana::UpMuAnalysis::analyze(), nnbar::RecoAnalysis::analyze(), fuzz::ViewMatchAlg::CalcEnergyProfile(), nerd::ViewMatchAlg::CalcEnergyProfile(), slid::NuEEnergyAlg::CellEnergy(), bpfit::dEdxCalculator::computeDEDX(), cvn::RegPixelMapProducer::CreateMapGivenBoundary(), cvn::PixelMapProducer::CreateMapGivenBoundary(), cvn::RegPixelMapProducer::CreateMapGivenShowerVertex(), cvn::RegPixelMapProducer::CreateMapGivenVertex(), nnbar::NNbarUtilities::energyBalancingVertex(), dif::DiFShowerFinder::eparm(), caf::FillSliceVars(), bsf::BremShowerFilter::filter(), showere::ShowerEnergyFilterMC::filter(), bsf::BremShowerFilter::findShowerByReco(), dif::DiFShowerFinder::findShowerByReco(), numusand::NumuSandFxs::getActivity(), numusand::NumuSandFxs::getAveTrackdEdx(), numusand::NumuSandFxs::getAveTrackdEdxLast4Cells(), numusand::NumuSandFxs::getAveTrackdEdxLast6Cells(), numusand::NumuSandFxs::getAveTrackdEdxLast8Cells(), trackinfo::TrackInfoFxs::getAveTrackdEdxLastCells(), xsrec::MakeXSecCCPi0Inc::GetBPI(), nuesand::FillNueSandbox::GetPlaneEnergy(), jmshower::RecoJMShower::GetRVPStats(), fuzz::FuzzyKValidate::GeVCalc(), slid::NuEEnergyAlg::HadronicDepEnergy(), dif::DiFShowerFinder::muonstub(), numue::NumuEAlg::NDEnergy(), numue::NumuEAlg::NDTrackEnergySplitting(), rb::operator<<(), nussand::FillNusSandbox::produce(), lem::Preselection::produce(), numusand::FillSandbox::produce(), slid::SliceLIDBuilder::produce(), jmshower::NueSel::produce(), rvp::RecVarPID::produce(), xnue::XnuePID::produce(), jmshower::NueSelLID::produce(), remid::RecoMuon::produce(), caf::CAFMaker::produce(), jmshower::RecoJMShower::RecoShowers(), SetGeV(), lem::LEMSummarizer::SliceToLEMInput(), dt::ViewMerger::TotalChargePerView(), rb::Cluster::TotalGeV(), rb::Cluster::TotalGeVFastClusterOnly(), nnbar::NNbarUtilities::totalVisibleEnergyInView(), and slid::NuEEnergyAlg::VertexEnergy().

70  {
71  if(!IsCalibrated()){
72  std::cerr << "This RecoHit is not calibrated. You should check RecoHit::IsCalibrated() before RecoHit::GeV() and take appropriate action (probably skipping the hit). Aborting." << std::endl;
73  abort();
74  }
75 
76  return fGeV;
77  }
OStream cerr
Definition: OStream.cxx:7
bool IsCalibrated() const
You MUST check here before accessing PECorr, MIP or GeV.
Definition: RecoHit.cxx:35
float fGeV
energy deposition represented by this hit
Definition: RecoHit.h:56
bool rb::RecoHit::IsCalibrated ( ) const

You MUST check here before accessing PECorr, MIP or GeV.

Definition at line 35 of file RecoHit.cxx.

References fGeV, fMIP, and fPECorr.

Referenced by dif::DiFShowerFinder::adjustPlane(), dif::DiFShowerFinder::adjustPlane_end(), tut::TutAnalyzer::analyze(), murem::MuonRemoveAna::analyze(), showere::ShowerEnergyAna::analyze(), remid::ReMIdDedxRock::analyze(), ncid::NCNNKerasVal::analyze(), remid::ReMIdDedxFD::analyze(), remid::ReMIdDedxStudies::analyze(), upmuana::UpMuRecoAna::analyze(), upmuana::UpMuAnalysis::analyze(), nnbar::RecoAnalysis::analyze(), fuzz::ViewMatchAlg::CalcEnergyProfile(), nerd::ViewMatchAlg::CalcEnergyProfile(), slid::NuEEnergyAlg::CellEnergy(), murem::TrackCleanUpAlg::CleanUpTrack(), nnbar::NNbarUtilities::correlationTCell(), nnbar::NNbarUtilities::correlationTPlane(), cvn::RegPixelMapProducer::CreateMapGivenBoundary(), cvn::PixelMapProducer::CreateMapGivenBoundary(), cvn::RegPixelMapProducer::CreateMapGivenShowerVertex(), cvn::RegPixelMapProducer::CreateMapGivenVertex(), murem::TrackCleanUpAlg::DeDxInPlane(), nnbar::NNbarUtilities::energyBalancingVertex(), dif::DiFShowerFinder::eparm(), caf::FillHadClustVars(), calib::StopperThreshold::FillHist(), caf::FillSliceVars(), trk::CosmicTrackAna::FillTrackHistograms(), calib::StopperThreshold::FillTree(), bsf::BremShowerFilter::filter(), showere::ShowerEnergyFilterMC::filter(), bsf::BremShowerFilter::findShowerByReco(), dif::DiFShowerFinder::findShowerByReco(), numusand::NumuSandFxs::getAveTrackdEdx(), numusand::NumuSandFxs::getAveTrackdEdxLast4Cells(), numusand::NumuSandFxs::getAveTrackdEdxLast6Cells(), numusand::NumuSandFxs::getAveTrackdEdxLast8Cells(), trackinfo::TrackInfoFxs::getAveTrackdEdxLastCells(), xsrec::MakeXSecCCPi0Inc::GetBPI(), nnbar::NNbarUtilities::getCoordinateOfHits(), cosrej::CosRejFxs::getFits(), nuesand::FillNueSandbox::GetPlaneEnergy(), jmshower::RecoJMShower::GetRVPStats(), GeV(), fuzz::FuzzyKValidate::GeVCalc(), slid::NuEEnergyAlg::HadronicDepEnergy(), MIP(), dif::DiFShowerFinder::muonstub(), numue::NumuEAlg::NDEnergy(), numue::NumuEAlg::NDTrackEnergySplitting(), PECorr(), nuesand::FillNueSandbox::produce(), nussand::FillNusSandbox::produce(), lem::Preselection::produce(), presel::NuePresel::produce(), numusand::FillSandbox::produce(), slid::SliceLIDBuilder::produce(), lem::MakeLibrary::produce(), rvp::RecVarPID::produce(), xnue::XnuePID::produce(), ncid::MakeNCCosRej::produce(), remid::RecoMuon::produce(), upmuana::UpMuProb::produce(), caf::CAFMaker::produce(), jmshower::RecoJMShower::RecoShowers(), lem::MakeLibrary::SliceMeanPosEWeighted(), lem::LEMSummarizer::SliceToLEMInput(), nnbar::NNbarUtilities::temporalExpand(), dt::ViewMerger::TotalChargePerView(), rb::Cluster::TotalGeV(), rb::Cluster::TotalGeVFastClusterOnly(), nnbar::NNbarUtilities::totalVisibleEnergyInView(), murem::TrackCleanUpAlg::TrackEinMIP(), trk::CosmicTrackUtilities::TrackResiduals(), and slid::NuEEnergyAlg::VertexEnergy().

36  {
37  return fPECorr >= 0 && fMIP >= 0 && fGeV >= 0;
38  }
float fPECorr
PE with attenuation corrections added.
Definition: RecoHit.h:54
float fGeV
energy deposition represented by this hit
Definition: RecoHit.h:56
float fMIP
pulseheight normalized to a MIP
Definition: RecoHit.h:55
float rb::RecoHit::MIP ( ) const

Definition at line 58 of file RecoHit.cxx.

References om::cerr, allTimeWatchdog::endl, fMIP, and IsCalibrated().

Referenced by murem::MuonRemoveAna::analyze(), remid::ReMIdDedxRock::analyze(), remid::ReMIdDedxFD::analyze(), remid::ReMIdDedxStudies::analyze(), murem::TrackCleanUpAlg::CleanUpTrack(), murem::TrackCleanUpAlg::DeDxInPlane(), rb::operator<<(), presel::NuePresel::produce(), SetMIP(), and murem::TrackCleanUpAlg::TrackEinMIP().

59  {
60  if(!IsCalibrated()){
61  std::cerr << "This RecoHit is not calibrated. You should check RecoHit::IscCalibrated() before RecoHit::MIP() and take appropriate action (probably skipping the hit). Aborting." << std::endl;
62  abort();
63  }
64 
65  return fMIP;
66  }
OStream cerr
Definition: OStream.cxx:7
bool IsCalibrated() const
You MUST check here before accessing PECorr, MIP or GeV.
Definition: RecoHit.cxx:35
float fMIP
pulseheight normalized to a MIP
Definition: RecoHit.h:55
float rb::RecoHit::PECorr ( ) const

Definition at line 47 of file RecoHit.cxx.

References om::cerr, allTimeWatchdog::endl, fPECorr, and IsCalibrated().

Referenced by calib::AssessCalib::analyze(), showere::ShowerEnergyAna::analyze(), ncid::NCNNKerasVal::analyze(), remid::ReMIdDedxRock::analyze(), remid::ReMIdDedxFD::analyze(), remid::ReMIdDedxStudies::analyze(), upmuana::UpMuRecoAna::analyze(), cvn::RegPixelMapProducer::CreateMapGivenBoundary(), cvn::PixelMapProducer::CreateMapGivenBoundary(), cvn::RegPixelMapProducer::CreateMapGivenVertex(), caf::FillHadClustVars(), calib::StopperThreshold::FillHist(), skim::CosmicBeamComparison::FillNumuHistograms(), caf::FillSliceVars(), trk::CosmicTrackAna::FillTrackHistograms(), calib::StopperThreshold::FillTree(), showere::ShowerEnergyFilterMC::filter(), bsf::BremShowerFilter::findShowerByReco(), cosrej::CosRejFxs::getFits(), rb::operator<<(), nuesand::FillNueSandbox::produce(), lem::MakeLibrary::produce(), rvp::RecVarPID::produce(), ncid::MakeNCCosRej::produce(), caf::CAFMaker::produce(), SetPECorr(), and lem::MakeLibrary::SliceMeanPosEWeighted().

48  {
49  if(!IsCalibrated()){
50  std::cerr << "This RecoHit is not calibrated. You should check RecoHit::IsCalibrated() before RecoHit::PECorr() and take appropriate action (probably skipping the hit). Aborting." << std::endl;
51  abort();
52  }
53 
54  return fPECorr;
55  }
OStream cerr
Definition: OStream.cxx:7
float fPECorr
PE with attenuation corrections added.
Definition: RecoHit.h:54
bool IsCalibrated() const
You MUST check here before accessing PECorr, MIP or GeV.
Definition: RecoHit.cxx:35
void rb::RecoHit::Print ( ) const

Definition at line 41 of file RecoHit.cxx.

References om::cout, and allTimeWatchdog::endl.

42  {
43  std::cout << *this << std::endl;
44  }
OStream cout
Definition: OStream.cxx:6
void rb::RecoHit::SetGeV ( float  GeV)
inline

Definition at line 44 of file RecoHit.h.

References fGeV, and GeV().

Referenced by calib::Calibrator::MakeRecoHit().

44 { fGeV = GeV; }
float fGeV
energy deposition represented by this hit
Definition: RecoHit.h:56
float GeV() const
Definition: RecoHit.cxx:69
void rb::RecoHit::SetMIP ( float  MIP)
inline

Definition at line 43 of file RecoHit.h.

References fMIP, and MIP().

Referenced by calib::Calibrator::MakeRecoHit().

43 { fMIP = MIP; }
float MIP() const
Definition: RecoHit.cxx:58
float fMIP
pulseheight normalized to a MIP
Definition: RecoHit.h:55
void rb::RecoHit::SetPECorr ( float  PECorr)
inline

Definition at line 42 of file RecoHit.h.

References fPECorr, and PECorr().

Referenced by calib::Calibrator::MakeRecoHit().

42 { fPECorr = PECorr; }
float fPECorr
PE with attenuation corrections added.
Definition: RecoHit.h:54
float PECorr() const
Definition: RecoHit.cxx:47
void rb::RecoHit::SetT ( float  T)
inline

Definition at line 48 of file RecoHit.h.

References fT, msf_helper::o, operator<<, r(), and T().

Referenced by calib::Calibrator::MakeRecoHit().

48 { fT = T; }
float T() const
Definition: RecoHit.h:39
float fT
spacetime location of deposition, t (ns)
Definition: RecoHit.h:60
void rb::RecoHit::SetX ( float  X)
inline

Definition at line 45 of file RecoHit.h.

References fX, and X().

Referenced by calib::Calibrator::MakeRecoHit().

45 { fX = X; }
float fX
spacetime location of deposition, x (cm)
Definition: RecoHit.h:57
float X() const
Definition: RecoHit.h:36
void rb::RecoHit::SetY ( float  Y)
inline

Definition at line 46 of file RecoHit.h.

References fY, and Y().

Referenced by calib::Calibrator::MakeRecoHit().

46 { fY = Y; }
float fY
spacetime location of deposition, y (cm)
Definition: RecoHit.h:58
float Y() const
Definition: RecoHit.h:37
void rb::RecoHit::SetZ ( float  Z)
inline

Definition at line 47 of file RecoHit.h.

References fZ, and Z().

Referenced by calib::Calibrator::MakeRecoHit().

47 { fZ = Z; }
float fZ
spacetime location of deposition, z (cm)
Definition: RecoHit.h:59
float Z() const
Definition: RecoHit.h:38
float rb::RecoHit::T ( ) const
inline
float rb::RecoHit::X ( ) const
inline
float rb::RecoHit::Y ( ) const
inline
float rb::RecoHit::Z ( ) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const RecoHit r 
)
friend

Definition at line 80 of file RecoHit.cxx.

Referenced by SetT().

81  {
82  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
83  o << "PECor = " << std::setw(5) << std::right << r.PECorr()
84  << " MIP = " << std::setw(5) << std::right << r.MIP()
85  << " GeV = " << std::setw(5) << std::right << r.GeV()
86  << " X = " << std::setw(5) << std::right << r.X()
87  << " Y = " << std::setw(5) << std::right << r.Y()
88  << " Z = " << std::setw(5) << std::right << r.Z();
89  return o;
90  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
TRandom3 r(0)

Member Data Documentation

float rb::RecoHit::fGeV
protected

energy deposition represented by this hit

Definition at line 56 of file RecoHit.h.

Referenced by GeV(), IsCalibrated(), and SetGeV().

float rb::RecoHit::fMIP
protected

pulseheight normalized to a MIP

Definition at line 55 of file RecoHit.h.

Referenced by IsCalibrated(), MIP(), and SetMIP().

float rb::RecoHit::fPECorr
protected

PE with attenuation corrections added.

Definition at line 54 of file RecoHit.h.

Referenced by IsCalibrated(), PECorr(), and SetPECorr().

float rb::RecoHit::fT
protected

spacetime location of deposition, t (ns)

Definition at line 60 of file RecoHit.h.

Referenced by SetT(), and T().

float rb::RecoHit::fX
protected

spacetime location of deposition, x (cm)

Definition at line 57 of file RecoHit.h.

Referenced by SetX(), and X().

float rb::RecoHit::fY
protected

spacetime location of deposition, y (cm)

Definition at line 58 of file RecoHit.h.

Referenced by SetY(), and Y().

float rb::RecoHit::fZ
protected

spacetime location of deposition, z (cm)

Definition at line 59 of file RecoHit.h.

Referenced by SetZ(), and Z().


The documentation for this class was generated from the following files: