LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MCBTAlg.h"
Public Member Functions | |
MCBTAlg () | |
MCBTAlg (const std::vector< unsigned int > &g4_trackid_v, const std::vector< sim::SimChannel > &simch_v) | |
void | Reset (const std::vector< unsigned int > &g4_trackid_v, const std::vector< sim::SimChannel > &simch_v) |
void | Reset (const std::vector< std::vector< unsigned int >> &g4_trackid_v, const std::vector< sim::SimChannel > &simch_v) |
const std::vector< double > & | MCQSum (const size_t plane_id) const |
std::vector< double > | MCQ (detinfo::DetectorClocksData const &clockData, const WireRange_t &hit) const |
std::vector< double > | MCQFrac (detinfo::DetectorClocksData const &clockData, const WireRange_t &hit) const |
std::vector< double > | MCQ (detinfo::DetectorClocksData const &clockData, const std::vector< btutil::WireRange_t > &hit_v) const |
std::vector< double > | MCQFrac (detinfo::DetectorClocksData const &clockData, const std::vector< btutil::WireRange_t > &hit_v) const |
size_t | Index (const unsigned int g4_track_id) const |
size_t | NumParts () const |
Protected Member Functions | |
void | Register (const unsigned int &g4_track_id) |
void | Register (const std::vector< unsigned int > &g4_track_id) |
void | ProcessSimChannel (const std::vector< sim::SimChannel > &simch_v) |
Protected Attributes | |
std::vector<::btutil::ch_info_t > | _event_info |
std::vector< size_t > | _trkid_to_index |
std::vector< std::vector< double > > | _sum_mcq |
size_t | _num_parts |
|
inline |
MCBTAlg::MCBTAlg | ( | const std::vector< unsigned int > & | g4_trackid_v, |
const std::vector< sim::SimChannel > & | simch_v | ||
) |
Definition at line 17 of file MCBTAlg.cxx.
References Reset().
size_t MCBTAlg::Index | ( | const unsigned int | g4_track_id | ) | const |
Definition at line 168 of file MCBTAlg.cxx.
References _trkid_to_index, and btutil::kINVALID_INDEX.
std::vector< double > MCBTAlg::MCQ | ( | detinfo::DetectorClocksData const & | clockData, |
const WireRange_t & | hit | ||
) | const |
Relate Hit => MCShower/MCTrack (called MCX). Returns a vector of double w/ length = # of relevant MCX + 1. Each entry is # drifted electrons from each relevant MCX. The last element contains a sum of drifted electrons that do not belong to any of relevant MCX.
Definition at line 101 of file MCBTAlg.cxx.
References _event_info, _num_parts, btutil::WireRange_t::ch, btutil::WireRange_t::end, btutil::WireRange_t::start, and detinfo::DetectorClocksData::TPCTick2TDC().
Referenced by MCBTDemo::analyze(), ShowerQuality::analyze(), btutil::MCMatchAlg::BuildMap(), MCQ(), and MCQFrac().
std::vector< double > MCBTAlg::MCQ | ( | detinfo::DetectorClocksData const & | clockData, |
const std::vector< btutil::WireRange_t > & | hit_v | ||
) | const |
Relate Cluster => MCX. Returns a vector of double w/ length = # of relevant MCXs + 1. Each entry is # drifted electrons from each relevant MCX. The last element contains a sum of drifted electrons that do not belong to any of relevant MCX.
Definition at line 141 of file MCBTAlg.cxx.
References _num_parts, and MCQ().
std::vector< double > MCBTAlg::MCQFrac | ( | detinfo::DetectorClocksData const & | clockData, |
const WireRange_t & | hit | ||
) | const |
Relate Hit => MCX. Returns a vector of double w/ length = # of relevant MCXs + 1. Each entry is a fraction of # drifted electrons within the specified time range from each relevant MCX. The last element contains a sum of drifted electrons that do not belong to any of relevant MCX.
Definition at line 126 of file MCBTAlg.cxx.
Referenced by MCBTDemo::analyze().
std::vector< double > MCBTAlg::MCQFrac | ( | detinfo::DetectorClocksData const & | clockData, |
const std::vector< btutil::WireRange_t > & | hit_v | ||
) | const |
Relate Cluster => MCX. Returns a vector of double w/ length = # of relevant MCXs + 1. Each entry is a fraction of # drifted electrons within the specified time range from each relevant MCX. The last element contains a sum of drifted electrons that do not belong to any of relevant MCX.
Definition at line 153 of file MCBTAlg.cxx.
const std::vector< double > & MCBTAlg::MCQSum | ( | const size_t | plane_id | ) | const |
Returns MC charge sum per MCX for a specified plane
Definition at line 94 of file MCBTAlg.cxx.
References _sum_mcq.
Referenced by MCBTDemo::analyze().
|
inline |
|
protected |
Definition at line 51 of file MCBTAlg.cxx.
References _event_info, _num_parts, _sum_mcq, _trkid_to_index, geo::GeometryCore::ChannelToWire(), btutil::kINVALID_INDEX, and geo::GeometryCore::Nplanes().
Referenced by Reset().
|
protected |
Definition at line 174 of file MCBTAlg.cxx.
References _num_parts, _trkid_to_index, and btutil::kINVALID_INDEX.
Referenced by Reset().
|
protected |
Definition at line 185 of file MCBTAlg.cxx.
References _num_parts, _trkid_to_index, and btutil::kINVALID_INDEX.
void MCBTAlg::Reset | ( | const std::vector< unsigned int > & | g4_trackid_v, |
const std::vector< sim::SimChannel > & | simch_v | ||
) |
Definition at line 23 of file MCBTAlg.cxx.
References _event_info, _num_parts, _sum_mcq, _trkid_to_index, ProcessSimChannel(), and Register().
Referenced by btutil::MCMatchAlg::BuildMap(), and MCBTAlg().
void MCBTAlg::Reset | ( | const std::vector< std::vector< unsigned int >> & | g4_trackid_v, |
const std::vector< sim::SimChannel > & | simch_v | ||
) |
Definition at line 37 of file MCBTAlg.cxx.
References _event_info, _num_parts, _sum_mcq, _trkid_to_index, ProcessSimChannel(), and Register().
|
protected |
Definition at line 124 of file MCBTAlg.h.
Referenced by MCQ(), ProcessSimChannel(), and Reset().
|
protected |
Definition at line 127 of file MCBTAlg.h.
Referenced by MCQ(), ProcessSimChannel(), Register(), and Reset().
|
protected |
Definition at line 126 of file MCBTAlg.h.
Referenced by MCQSum(), ProcessSimChannel(), and Reset().
|
protected |
Definition at line 125 of file MCBTAlg.h.
Referenced by Index(), ProcessSimChannel(), Register(), and Reset().