Public Member Functions | |
dEdxCalculator () | |
Constructor... More... | |
void | computeDEDX (art::Ptr< rb::Track > &track, int pdg=13) |
Compute dE/dx for all cells along this track and the fitsum object that went with it. More... | |
void | getResults (std::vector< double > &dEtemp, std::vector< double > &dxtemp, std::vector< double > &Wtemp, std::vector< double > &bgtemp, std::vector< double > &stemp, double dxTol) |
Return the results of the dE/dx calculation. More... | |
void | getDE (std::vector< double > &dEtemp, double dxTol) |
...can also get the individual results... More... | |
void | getDX (std::vector< double > &dxtemp, double dxTol) |
void | getW (std::vector< double > &Wtemp, double dxTol) |
void | getBG (std::vector< double > &bgtemp, double dxTol) |
void | getS (std::vector< double > &stemp, double dxTol) |
art::PtrVector< rb::CellHit > | getCellHits (double dxTol) |
Return the list of rb::CellHits used in the dE/dx calculation. More... | |
Private Member Functions | |
void | clearVectors () |
Clear all internally used vectors. More... | |
Private Attributes | |
std::vector< geo::OfflineChan > | chan |
offline channel associated with a cell hit on a track More... | |
art::PtrVector< rb::CellHit > | cells |
list of cell hits on the track More... | |
std::vector< double > | dE |
computed value of energy for the cell hit More... | |
std::vector< double > | dx |
computed value of the track path length through the cell hit More... | |
std::vector< double > | W |
value of track W for the cell hit More... | |
std::vector< double > | s |
total path length along the track to the middle of the cell hit More... | |
std::vector< double > | bg |
value of beta*gamma for the tracked particle at s More... | |
art::ServiceHandle< geo::Geometry > | fGeom |
art::ServiceHandle< calib::Calibrator > | fCal |
Definition at line 26 of file dEdxCalculator.h.
dEdxCalculator::dEdxCalculator | ( | ) |
|
private |
Clear all internally used vectors.
Definition at line 353 of file dEdxCalculator.cxx.
References bg, cells, chan, art::PtrVector< T >::clear(), dE, dx, and W.
Referenced by computeDEDX().
Compute dE/dx for all cells along this track and the fitsum object that went with it.
Definition at line 25 of file dEdxCalculator.cxx.
References rb::Cluster::AllCells(), bg, rb::Cluster::Cell(), cells, om::cerr, chan, clearVectors(), geo::GeometryBase::CountCellsOnLine(), d, dE, dx, fCal, fGeom, art::Ptr< T >::get(), rb::RecoHit::GeV(), hits(), MECModelEnuComparisons::i, calib::j, calib::Calibrator::MakeRecoHit(), cafExposure::match, path, elec2geo::pos, art::PtrVector< T >::push_back(), art::PtrVector< T >::size(), std::sqrt(), rb::Track::Trajectory(), W, rb::Track::W(), submit_syst::x, x1, submit_syst::y, y1, and test::z.
Referenced by bpfit::BPFdEdxHistoMaker::analyze(), bpfit::BPFTmvaTrainer::analyze(), trackinfo::TrackInfo::produce(), bpfit::BPFEnergyEstimator::produce(), and bpfit::BPFPIdMaker::produce().
void dEdxCalculator::getBG | ( | std::vector< double > & | bgtemp, |
double | dxTol | ||
) |
Definition at line 307 of file dEdxCalculator.cxx.
References bg, chan, dE, dx, and MECModelEnuComparisons::i.
art::PtrVector< rb::CellHit > dEdxCalculator::getCellHits | ( | double | dxTol | ) |
Return the list of rb::CellHits used in the dE/dx calculation.
param: dxTol - the path length through the cell must be greater than this, to trust the computed dE/dx as good
Definition at line 335 of file dEdxCalculator.cxx.
References cells, chan, dE, dx, MECModelEnuComparisons::i, and art::PtrVector< T >::push_back().
void dEdxCalculator::getDE | ( | std::vector< double > & | dEtemp, |
double | dxTol | ||
) |
...can also get the individual results...
Definition at line 265 of file dEdxCalculator.cxx.
References chan, dE, dx, and MECModelEnuComparisons::i.
Referenced by trackinfo::TrackInfo::produce().
void dEdxCalculator::getDX | ( | std::vector< double > & | dxtemp, |
double | dxTol | ||
) |
Definition at line 279 of file dEdxCalculator.cxx.
References chan, dE, dx, and MECModelEnuComparisons::i.
Referenced by trackinfo::TrackInfo::produce().
void dEdxCalculator::getResults | ( | std::vector< double > & | dEtemp, |
std::vector< double > & | dxtemp, | ||
std::vector< double > & | Wtemp, | ||
std::vector< double > & | bgtemp, | ||
std::vector< double > & | stemp, | ||
double | dxTol | ||
) |
Return the results of the dE/dx calculation.
param: dE - empty vector to be filled with dE values param: dx - empty vector to be filled with dx values param: W - empty vector to be filled with track W values param: BG - empty vector to be filled with corresponding values of beta*gamma param: s - empty vector to be filled with corresponding values of s param: dxTol - the path length through the cell must be greater than this, to trust the computed dE/dx as good
Definition at line 245 of file dEdxCalculator.cxx.
References bg, chan, dE, dx, MECModelEnuComparisons::i, and W.
Referenced by bpfit::BPFdEdxHistoMaker::analyze(), bpfit::BPFTmvaTrainer::analyze(), bpfit::BPFEnergyEstimator::produce(), and bpfit::BPFPIdMaker::produce().
void dEdxCalculator::getS | ( | std::vector< double > & | stemp, |
double | dxTol | ||
) |
Definition at line 321 of file dEdxCalculator.cxx.
References chan, dE, dx, and MECModelEnuComparisons::i.
Referenced by trackinfo::TrackInfo::produce().
void dEdxCalculator::getW | ( | std::vector< double > & | Wtemp, |
double | dxTol | ||
) |
Definition at line 293 of file dEdxCalculator.cxx.
References chan, dE, dx, MECModelEnuComparisons::i, and W.
|
private |
value of beta*gamma for the tracked particle at s
Definition at line 83 of file dEdxCalculator.h.
Referenced by clearVectors(), computeDEDX(), getBG(), and getResults().
|
private |
list of cell hits on the track
Definition at line 78 of file dEdxCalculator.h.
Referenced by clearVectors(), computeDEDX(), and getCellHits().
|
private |
offline channel associated with a cell hit on a track
Definition at line 77 of file dEdxCalculator.h.
Referenced by clearVectors(), computeDEDX(), getBG(), getCellHits(), getDE(), getDX(), getResults(), getS(), and getW().
|
private |
computed value of energy for the cell hit
Definition at line 79 of file dEdxCalculator.h.
Referenced by clearVectors(), computeDEDX(), getBG(), getCellHits(), getDE(), getDX(), getResults(), getS(), and getW().
|
private |
computed value of the track path length through the cell hit
Definition at line 80 of file dEdxCalculator.h.
Referenced by clearVectors(), computeDEDX(), getBG(), getCellHits(), getDE(), getDX(), getResults(), getS(), and getW().
|
private |
Definition at line 86 of file dEdxCalculator.h.
Referenced by computeDEDX().
|
private |
Definition at line 85 of file dEdxCalculator.h.
Referenced by computeDEDX().
|
private |
total path length along the track to the middle of the cell hit
Definition at line 82 of file dEdxCalculator.h.
|
private |
value of track W for the cell hit
Definition at line 81 of file dEdxCalculator.h.
Referenced by clearVectors(), computeDEDX(), getResults(), and getW().