#include <HcalTBEventPosition.h>
Public Member Functions | |
void | getChamberHits (char chamberch, std::vector< double > &xvec, std::vector< double > &yvec) const |
Get the wire chamber hits for the specified chamber For HB/HE/HO running, chambers A, B, and C were active while all five (A, B, C, D, and E) were active for HF running. | |
double | hbheTableEta () const |
Get the eta (not ieta) position of the HB/HE/HO table (if present in this run) | |
double | hbheTablePhi () const |
Get the phi (not iphi) position of the HB/HE/HO table (if present in this run) | |
HcalTBEventPosition () | |
Null constructor. | |
double | hfTableV () const |
Get the V position of the HF table (if present in this run) | |
double | hfTableX () const |
Get the X position (mm) of the HF table (if present in this run) | |
double | hfTableY () const |
Get the Y position (mm) of the HF table (if present in this run) | |
void | setChamberHits (char chamberch, const std::vector< double > &xvec, const std::vector< double > &yvec) |
void | setHBHEtableCoords (double eta, double phi) |
void | setHFtableCoords (double x, double y, double v) |
Private Attributes | |
std::vector< double > | ax_ |
std::vector< double > | ay_ |
std::vector< double > | bx_ |
std::vector< double > | by_ |
std::vector< double > | cx_ |
std::vector< double > | cy_ |
std::vector< double > | dx_ |
std::vector< double > | dy_ |
std::vector< double > | ex_ |
std::vector< double > | ey_ |
std::vector< double > | fx_ |
std::vector< double > | fy_ |
std::vector< double > | gx_ |
std::vector< double > | gy_ |
double | hbheTableEta_ |
double | hbheTablePhi_ |
double | hfTableV_ |
double | hfTableX_ |
double | hfTableY_ |
std::vector< double > | hx_ |
std::vector< double > | hy_ |
This class contains event position information, including the table position as well as hits from the delay wire chambers.
Definition at line 19 of file HcalTBEventPosition.h.
HcalTBEventPosition::HcalTBEventPosition | ( | ) |
void HcalTBEventPosition::getChamberHits | ( | char | chamberch, |
std::vector< double > & | xvec, | ||
std::vector< double > & | yvec | ||
) | const |
Get the wire chamber hits for the specified chamber For HB/HE/HO running, chambers A, B, and C were active while all five (A, B, C, D, and E) were active for HF running.
Definition at line 30 of file HcalTBEventPosition.cc.
References ax_, ay_, bx_, by_, dtNoiseDBValidation_cfg::cerr, cx_, cy_, dx_, dy_, ex_, ey_, fx_, fy_, gx_, gy_, hx_, and hy_.
Referenced by ZdcTBAnalysis::analyze(), and operator<<().
{ switch (chamberch) { case 'A': xvec = ax_; yvec = ay_; break; case 'B': xvec = bx_; yvec = by_; break; case 'C': xvec = cx_; yvec = cy_; break; case 'D': xvec = dx_; yvec = dy_; break; case 'E': xvec = ex_; yvec = ey_; break; case 'F': xvec = fx_; yvec = fy_; break; case 'G': xvec = gx_; yvec = gy_; break; case 'H': xvec = hx_; yvec = hy_; break; default: cerr << "Unrecognized chamber character " << chamberch << endl; return; } }
double HcalTBEventPosition::hbheTableEta | ( | ) | const [inline] |
Get the eta (not ieta) position of the HB/HE/HO table (if present in this run)
Definition at line 31 of file HcalTBEventPosition.h.
References hbheTableEta_.
Referenced by operator<<().
{ return hbheTableEta_; }
double HcalTBEventPosition::hbheTablePhi | ( | ) | const [inline] |
Get the phi (not iphi) position of the HB/HE/HO table (if present in this run)
Definition at line 33 of file HcalTBEventPosition.h.
References hbheTablePhi_.
Referenced by operator<<().
{ return hbheTablePhi_; }
double HcalTBEventPosition::hfTableV | ( | ) | const [inline] |
Get the V position of the HF table (if present in this run)
Definition at line 29 of file HcalTBEventPosition.h.
References hfTableV_.
Referenced by operator<<().
{ return hfTableV_; }
double HcalTBEventPosition::hfTableX | ( | ) | const [inline] |
Get the X position (mm) of the HF table (if present in this run)
Definition at line 25 of file HcalTBEventPosition.h.
References hfTableX_.
Referenced by operator<<().
{ return hfTableX_; }
double HcalTBEventPosition::hfTableY | ( | ) | const [inline] |
Get the Y position (mm) of the HF table (if present in this run)
Definition at line 27 of file HcalTBEventPosition.h.
References hfTableY_.
Referenced by operator<<().
{ return hfTableY_; }
void HcalTBEventPosition::setChamberHits | ( | char | chamberch, |
const std::vector< double > & | xvec, | ||
const std::vector< double > & | yvec | ||
) |
Definition at line 48 of file HcalTBEventPosition.cc.
References ax_, ay_, bx_, by_, dtNoiseDBValidation_cfg::cerr, cx_, cy_, dx_, dy_, ex_, ey_, fx_, fy_, gx_, gy_, hx_, and hy_.
Referenced by hcaltb::HcalTBTDCUnpacker::reconstructWC().
{ switch (chamberch) { case 'A': ax_ = xvec; ay_ = yvec; break; case 'B': bx_ = xvec; by_ = yvec; break; case 'C': cx_ = xvec; cy_ = yvec; break; case 'D': dx_ = xvec; dy_ = yvec; break; case 'E': ex_ = xvec; ey_ = yvec; break; case 'F': fx_ = xvec; fy_ = yvec; break; case 'G': gx_ = xvec; gy_ = yvec; break; case 'H': hx_ = xvec; hy_ = yvec; break; default: cerr << "Unrecognized chamber character " << chamberch << endl; return; } }
void HcalTBEventPosition::setHBHEtableCoords | ( | double | eta, |
double | phi | ||
) |
Definition at line 72 of file HcalTBEventPosition.cc.
References eta(), hbheTableEta_, hbheTablePhi_, and phi.
Referenced by hcaltb::HcalTBSlowDataUnpacker::unpack().
{ hbheTableEta_ = eta; hbheTablePhi_ = phi; }
void HcalTBEventPosition::setHFtableCoords | ( | double | x, |
double | y, | ||
double | v | ||
) |
Definition at line 66 of file HcalTBEventPosition.cc.
References hfTableV_, hfTableX_, hfTableY_, v, x, and detailsBasic3DVector::y.
Referenced by hcaltb::HcalTBSlowDataUnpacker::unpack().
std::vector<double> HcalTBEventPosition::ax_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::ay_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::bx_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::by_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::cx_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::cy_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::dx_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::dy_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::ex_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::ey_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::fx_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::fy_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::gx_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::gy_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
double HcalTBEventPosition::hbheTableEta_ [private] |
Definition at line 55 of file HcalTBEventPosition.h.
Referenced by hbheTableEta(), and setHBHEtableCoords().
double HcalTBEventPosition::hbheTablePhi_ [private] |
Definition at line 55 of file HcalTBEventPosition.h.
Referenced by hbheTablePhi(), and setHBHEtableCoords().
double HcalTBEventPosition::hfTableV_ [private] |
Definition at line 54 of file HcalTBEventPosition.h.
Referenced by hfTableV(), and setHFtableCoords().
double HcalTBEventPosition::hfTableX_ [private] |
Definition at line 54 of file HcalTBEventPosition.h.
Referenced by hfTableX(), and setHFtableCoords().
double HcalTBEventPosition::hfTableY_ [private] |
Definition at line 54 of file HcalTBEventPosition.h.
Referenced by hfTableY(), and setHFtableCoords().
std::vector<double> HcalTBEventPosition::hx_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().
std::vector<double> HcalTBEventPosition::hy_ [private] |
Definition at line 57 of file HcalTBEventPosition.h.
Referenced by getChamberHits(), and setChamberHits().