CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HcalTBEventPosition Class Reference

#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. More...
 
double hbheTableEta () const
 Get the eta (not ieta) position of the HB/HE/HO table (if present in this run) More...
 
double hbheTablePhi () const
 Get the phi (not iphi) position of the HB/HE/HO table (if present in this run) More...
 
 HcalTBEventPosition ()
 Null constructor. More...
 
double hfTableV () const
 Get the V position of the HF table (if present in this run) More...
 
double hfTableX () const
 Get the X position (mm) of the HF table (if present in this run) More...
 
double hfTableY () const
 Get the Y position (mm) of the HF table (if present in this run) More...
 
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_
 

Detailed Description

This class contains event position information, including the table position as well as hits from the delay wire chambers.

Date:
2006/04/04 15:00:27
Revision:
1.3
Author
P. Dudero - Minnesota

Definition at line 19 of file HcalTBEventPosition.h.

Constructor & Destructor Documentation

HcalTBEventPosition::HcalTBEventPosition ( )

Null constructor.

Definition at line 6 of file HcalTBEventPosition.cc.

6  :
7  hfTableX_(-1e24),
8  hfTableY_(-1e24),
9  hfTableV_(-1e24),
10  hbheTableEta_(-1000),
11  hbheTablePhi_(-1000),
12  ax_(),
13  ay_(),
14  bx_(),
15  by_(),
16  cx_(),
17  cy_(),
18  dx_(),
19  dy_(),
20  ex_(),
21  ey_(),
22  fx_(),
23  fy_(),
24  gx_(),
25  gy_(),
26  hx_(),
27  hy_() {
28  }
std::vector< double > gx_
std::vector< double > ex_
std::vector< double > dx_
std::vector< double > by_
std::vector< double > hy_
std::vector< double > fy_
std::vector< double > cx_
std::vector< double > hx_
std::vector< double > ey_
std::vector< double > dy_
std::vector< double > bx_
std::vector< double > ax_
std::vector< double > cy_
std::vector< double > gy_
std::vector< double > fx_
std::vector< double > ay_

Member Function Documentation

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_, ecal_dqm_sourceclient-live_cfg::cerr, cx_, cy_, dx_, dy_, ex_, ey_, fx_, fy_, gx_, gy_, hx_, and hy_.

Referenced by ZdcTBAnalysis::analyze(), and operator<<().

32  {
33  switch (chamberch) {
34  case 'A': xvec = ax_; yvec = ay_; break;
35  case 'B': xvec = bx_; yvec = by_; break;
36  case 'C': xvec = cx_; yvec = cy_; break;
37  case 'D': xvec = dx_; yvec = dy_; break;
38  case 'E': xvec = ex_; yvec = ey_; break;
39  case 'F': xvec = fx_; yvec = fy_; break;
40  case 'G': xvec = gx_; yvec = gy_; break;
41  case 'H': xvec = hx_; yvec = hy_; break;
42  default:
43  cerr << "Unrecognized chamber character " << chamberch << endl;
44  return;
45  }
46  }
std::vector< double > gx_
std::vector< double > ex_
std::vector< double > dx_
std::vector< double > by_
std::vector< double > hy_
std::vector< double > fy_
std::vector< double > cx_
std::vector< double > hx_
std::vector< double > ey_
std::vector< double > dy_
std::vector< double > bx_
std::vector< double > ax_
std::vector< double > cy_
std::vector< double > gy_
std::vector< double > fx_
std::vector< double > ay_
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<<().

31 { 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<<().

33 { 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<<().

29 { 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<<().

25 { 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<<().

27 { 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_, ecal_dqm_sourceclient-live_cfg::cerr, cx_, cy_, dx_, dy_, ex_, ey_, fx_, fy_, gx_, gy_, hx_, and hy_.

Referenced by hcaltb::HcalTBTDCUnpacker::reconstructWC().

50  {
51  switch (chamberch) {
52  case 'A': ax_ = xvec; ay_ = yvec; break;
53  case 'B': bx_ = xvec; by_ = yvec; break;
54  case 'C': cx_ = xvec; cy_ = yvec; break;
55  case 'D': dx_ = xvec; dy_ = yvec; break;
56  case 'E': ex_ = xvec; ey_ = yvec; break;
57  case 'F': fx_ = xvec; fy_ = yvec; break;
58  case 'G': gx_ = xvec; gy_ = yvec; break;
59  case 'H': hx_ = xvec; hy_ = yvec; break;
60  default:
61  cerr << "Unrecognized chamber character " << chamberch << endl;
62  return;
63  }
64  }
std::vector< double > gx_
std::vector< double > ex_
std::vector< double > dx_
std::vector< double > by_
std::vector< double > hy_
std::vector< double > fy_
std::vector< double > cx_
std::vector< double > hx_
std::vector< double > ey_
std::vector< double > dy_
std::vector< double > bx_
std::vector< double > ax_
std::vector< double > cy_
std::vector< double > gy_
std::vector< double > fx_
std::vector< double > ay_
void HcalTBEventPosition::setHBHEtableCoords ( double  eta,
double  phi 
)
void HcalTBEventPosition::setHFtableCoords ( double  x,
double  y,
double  v 
)

Member Data Documentation

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().