LArSoft
v07_13_02
Liquid Argon Software toolkit - http://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 (const WireRange_t &hit) const |
std::vector< double > | MCQFrac (const WireRange_t &hit) const |
std::vector< double > | MCQ (const std::vector< btutil::WireRange_t > &hit_v) const |
std::vector< double > | MCQFrac (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 8 of file MCBTAlg.cxx.
References Reset().
size_t MCBTAlg::Index | ( | const unsigned int | g4_track_id | ) | const |
Definition at line 159 of file MCBTAlg.cxx.
References _trkid_to_index, and btutil::kINVALID_INDEX.
std::vector< double > MCBTAlg::MCQ | ( | 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 95 of file MCBTAlg.cxx.
References _event_info, _num_parts, btutil::WireRange_t::ch, btutil::WireRange_t::end, btutil::WireRange_t::start, and detinfo::DetectorClocks::TPCTick2TDC().
Referenced by MCBTDemo::analyze(), ShowerQuality::analyze(), btutil::MCMatchAlg::BuildMap(), MCQ(), and MCQFrac().
std::vector< double > MCBTAlg::MCQ | ( | 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 136 of file MCBTAlg.cxx.
References _num_parts, and MCQ().
std::vector< double > MCBTAlg::MCQFrac | ( | 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 123 of file MCBTAlg.cxx.
References MCQ().
Referenced by MCBTDemo::analyze().
std::vector< double > MCBTAlg::MCQFrac | ( | 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 146 of file MCBTAlg.cxx.
References MCQ().
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 88 of file MCBTAlg.cxx.
References _sum_mcq.
Referenced by MCBTDemo::analyze().
|
inline |
|
protected |
Definition at line 43 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 165 of file MCBTAlg.cxx.
References _num_parts, _trkid_to_index, and btutil::kINVALID_INDEX.
Referenced by Reset().
|
protected |
Definition at line 176 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 14 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 29 of file MCBTAlg.cxx.
References _event_info, _num_parts, _sum_mcq, _trkid_to_index, ProcessSimChannel(), and Register().
|
protected |
Definition at line 119 of file MCBTAlg.h.
Referenced by MCQ(), ProcessSimChannel(), and Reset().
|
protected |
Definition at line 122 of file MCBTAlg.h.
Referenced by MCQ(), ProcessSimChannel(), Register(), and Reset().
|
protected |
Definition at line 121 of file MCBTAlg.h.
Referenced by MCQSum(), ProcessSimChannel(), and Reset().
|
protected |
Definition at line 120 of file MCBTAlg.h.
Referenced by Index(), ProcessSimChannel(), Register(), and Reset().