All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
flashmatch::Flash_t Struct Reference

Struct to represent an optical flash. More...

#include <OpT0FinderTypes.h>

Public Member Functions

 Flash_t ()
 Default ctor assigns invalid values. More...
 
double TotalPE () const
 Total PE calculation. More...
 
double TotalTruePE () const
 Total true PE calculation. More...
 
bool Valid (size_t nopdet=0) const
 Check validity. More...
 

Public Attributes

std::vector< double > pe_v
 PE distribution over photo-detectors. More...
 
std::vector< double > pe_true_v
 PE distribution over photo-detectors of MCFlash. More...
 
std::vector< double > pe_err_v
 PE value error. More...
 
double x
 
double y
 
double z
 Flash position. More...
 
double x_err
 
double y_err
 
double z_err
 Flash position error. More...
 
double time
 Flash timing, a candidate T0. More...
 
ID_t idx
 

Detailed Description

Struct to represent an optical flash.

Definition at line 28 of file OpT0FinderTypes.h.

Constructor & Destructor Documentation

flashmatch::Flash_t::Flash_t ( )
inline

Default ctor assigns invalid values.

Definition at line 39 of file OpT0FinderTypes.h.

39  : pe_v(), pe_true_v() {
40  x = y = z = kINVALID_DOUBLE;
43  idx = kINVALID_ID;
44  }
const ID_t kINVALID_ID
Invalid ID.
const double kINVALID_DOUBLE
Utility: invalid value for double.
std::vector< double > pe_true_v
PE distribution over photo-detectors of MCFlash.
std::vector< double > pe_v
PE distribution over photo-detectors.
double z
Flash position.
double time
Flash timing, a candidate T0.
double z_err
Flash position error.

Member Function Documentation

double flashmatch::Flash_t::TotalPE ( ) const
inline

Total PE calculation.

Definition at line 46 of file OpT0FinderTypes.h.

46  {
47  double res=0.;
48  for(auto const& v : pe_v) if(v>=0.) res+=v;
49  return res;
50  }
std::vector< double > pe_v
PE distribution over photo-detectors.
double flashmatch::Flash_t::TotalTruePE ( ) const
inline

Total true PE calculation.

Definition at line 52 of file OpT0FinderTypes.h.

52  {
53  double res=0.;
54  for (auto const& v : pe_true_v) if (v>=0.) res+=v;
55  return res;
56  }
std::vector< double > pe_true_v
PE distribution over photo-detectors of MCFlash.
bool flashmatch::Flash_t::Valid ( size_t  nopdet = 0) const
inline

Check validity.

Definition at line 58 of file OpT0FinderTypes.h.

58  {
59  return (nopdet ? (pe_v.size() == nopdet && pe_err_v.size() == nopdet) : (pe_v.size() == pe_err_v.size()));
60  }
std::vector< double > pe_v
PE distribution over photo-detectors.
std::vector< double > pe_err_v
PE value error.

Member Data Documentation

ID_t flashmatch::Flash_t::idx

index from original larlite vector

Definition at line 37 of file OpT0FinderTypes.h.

std::vector<double> flashmatch::Flash_t::pe_err_v

PE value error.

Definition at line 33 of file OpT0FinderTypes.h.

std::vector<double> flashmatch::Flash_t::pe_true_v

PE distribution over photo-detectors of MCFlash.

Definition at line 32 of file OpT0FinderTypes.h.

std::vector<double> flashmatch::Flash_t::pe_v

PE distribution over photo-detectors.

Definition at line 31 of file OpT0FinderTypes.h.

double flashmatch::Flash_t::time

Flash timing, a candidate T0.

Definition at line 36 of file OpT0FinderTypes.h.

double flashmatch::Flash_t::x

Definition at line 34 of file OpT0FinderTypes.h.

double flashmatch::Flash_t::x_err

Definition at line 35 of file OpT0FinderTypes.h.

double flashmatch::Flash_t::y

Definition at line 34 of file OpT0FinderTypes.h.

double flashmatch::Flash_t::y_err

Definition at line 35 of file OpT0FinderTypes.h.

double flashmatch::Flash_t::z

Flash position.

Definition at line 34 of file OpT0FinderTypes.h.

double flashmatch::Flash_t::z_err

Flash position error.

Definition at line 35 of file OpT0FinderTypes.h.


The documentation for this struct was generated from the following file: