CMS 3D CMS Logo

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 18 of file HcalTBEventPosition.h.

Constructor & Destructor Documentation

◆ HcalTBEventPosition()

HcalTBEventPosition::HcalTBEventPosition ( )

Null constructor.

Definition at line 6 of file HcalTBEventPosition.cc.

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_() {}

Member Function Documentation

◆ getChamberHits()

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 29 of file HcalTBEventPosition.cc.

29  {
30  switch (chamberch) {
31  case 'A':
32  xvec = ax_;
33  yvec = ay_;
34  break;
35  case 'B':
36  xvec = bx_;
37  yvec = by_;
38  break;
39  case 'C':
40  xvec = cx_;
41  yvec = cy_;
42  break;
43  case 'D':
44  xvec = dx_;
45  yvec = dy_;
46  break;
47  case 'E':
48  xvec = ex_;
49  yvec = ey_;
50  break;
51  case 'F':
52  xvec = fx_;
53  yvec = fy_;
54  break;
55  case 'G':
56  xvec = gx_;
57  yvec = gy_;
58  break;
59  case 'H':
60  xvec = hx_;
61  yvec = hy_;
62  break;
63  default:
64  cerr << "Unrecognized chamber character " << chamberch << endl;
65  return;
66  }
67 }

References ax_, ay_, bx_, by_, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, cx_, cy_, dx_, dy_, ex_, ey_, fx_, fy_, gx_, gy_, hx_, and hy_.

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

◆ hbheTableEta()

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 30 of file HcalTBEventPosition.h.

30 { return hbheTableEta_; }

References hbheTableEta_.

Referenced by operator<<().

◆ hbheTablePhi()

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 32 of file HcalTBEventPosition.h.

32 { return hbheTablePhi_; }

References hbheTablePhi_.

Referenced by operator<<().

◆ hfTableV()

double HcalTBEventPosition::hfTableV ( ) const
inline

Get the V position of the HF table (if present in this run)

Definition at line 28 of file HcalTBEventPosition.h.

28 { return hfTableV_; }

References hfTableV_.

Referenced by operator<<().

◆ hfTableX()

double HcalTBEventPosition::hfTableX ( ) const
inline

Get the X position (mm) of the HF table (if present in this run)

Definition at line 24 of file HcalTBEventPosition.h.

24 { return hfTableX_; }

References hfTableX_.

Referenced by operator<<().

◆ hfTableY()

double HcalTBEventPosition::hfTableY ( ) const
inline

Get the Y position (mm) of the HF table (if present in this run)

Definition at line 26 of file HcalTBEventPosition.h.

26 { return hfTableY_; }

References hfTableY_.

Referenced by operator<<().

◆ setChamberHits()

void HcalTBEventPosition::setChamberHits ( char  chamberch,
const std::vector< double > &  xvec,
const std::vector< double > &  yvec 
)

Definition at line 69 of file HcalTBEventPosition.cc.

69  {
70  switch (chamberch) {
71  case 'A':
72  ax_ = xvec;
73  ay_ = yvec;
74  break;
75  case 'B':
76  bx_ = xvec;
77  by_ = yvec;
78  break;
79  case 'C':
80  cx_ = xvec;
81  cy_ = yvec;
82  break;
83  case 'D':
84  dx_ = xvec;
85  dy_ = yvec;
86  break;
87  case 'E':
88  ex_ = xvec;
89  ey_ = yvec;
90  break;
91  case 'F':
92  fx_ = xvec;
93  fy_ = yvec;
94  break;
95  case 'G':
96  gx_ = xvec;
97  gy_ = yvec;
98  break;
99  case 'H':
100  hx_ = xvec;
101  hy_ = yvec;
102  break;
103  default:
104  cerr << "Unrecognized chamber character " << chamberch << endl;
105  return;
106  }
107 }

References ax_, ay_, bx_, by_, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, cx_, cy_, dx_, dy_, ex_, ey_, fx_, fy_, gx_, gy_, hx_, and hy_.

◆ setHBHEtableCoords()

void HcalTBEventPosition::setHBHEtableCoords ( double  eta,
double  phi 
)

Definition at line 115 of file HcalTBEventPosition.cc.

115  {
116  hbheTableEta_ = eta;
117  hbheTablePhi_ = phi;
118 }

References PVValHelper::eta, hbheTableEta_, hbheTablePhi_, and phi.

Referenced by hcaltb::HcalTBSlowDataUnpacker::unpack().

◆ setHFtableCoords()

void HcalTBEventPosition::setHFtableCoords ( double  x,
double  y,
double  v 
)

Definition at line 109 of file HcalTBEventPosition.cc.

109  {
110  hfTableX_ = x;
111  hfTableY_ = y;
112  hfTableV_ = v;
113 }

References hfTableV_, hfTableX_, hfTableY_, findQualityFiles::v, x, and y.

Referenced by hcaltb::HcalTBSlowDataUnpacker::unpack().

Member Data Documentation

◆ ax_

std::vector<double> HcalTBEventPosition::ax_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ ay_

std::vector<double> HcalTBEventPosition::ay_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ bx_

std::vector<double> HcalTBEventPosition::bx_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ by_

std::vector<double> HcalTBEventPosition::by_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ cx_

std::vector<double> HcalTBEventPosition::cx_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ cy_

std::vector<double> HcalTBEventPosition::cy_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ dx_

std::vector<double> HcalTBEventPosition::dx_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ dy_

std::vector<double> HcalTBEventPosition::dy_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ ex_

std::vector<double> HcalTBEventPosition::ex_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ ey_

std::vector<double> HcalTBEventPosition::ey_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ fx_

std::vector<double> HcalTBEventPosition::fx_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ fy_

std::vector<double> HcalTBEventPosition::fy_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ gx_

std::vector<double> HcalTBEventPosition::gx_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ gy_

std::vector<double> HcalTBEventPosition::gy_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ hbheTableEta_

double HcalTBEventPosition::hbheTableEta_
private

Definition at line 49 of file HcalTBEventPosition.h.

Referenced by hbheTableEta(), and setHBHEtableCoords().

◆ hbheTablePhi_

double HcalTBEventPosition::hbheTablePhi_
private

Definition at line 49 of file HcalTBEventPosition.h.

Referenced by hbheTablePhi(), and setHBHEtableCoords().

◆ hfTableV_

double HcalTBEventPosition::hfTableV_
private

Definition at line 48 of file HcalTBEventPosition.h.

Referenced by hfTableV(), and setHFtableCoords().

◆ hfTableX_

double HcalTBEventPosition::hfTableX_
private

Definition at line 48 of file HcalTBEventPosition.h.

Referenced by hfTableX(), and setHFtableCoords().

◆ hfTableY_

double HcalTBEventPosition::hfTableY_
private

Definition at line 48 of file HcalTBEventPosition.h.

Referenced by hfTableY(), and setHFtableCoords().

◆ hx_

std::vector<double> HcalTBEventPosition::hx_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

◆ hy_

std::vector<double> HcalTBEventPosition::hy_
private

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

DDAxes::y
HcalTBEventPosition::gx_
std::vector< double > gx_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::gy_
std::vector< double > gy_
Definition: HcalTBEventPosition.h:51
DDAxes::x
findQualityFiles.v
v
Definition: findQualityFiles.py:179
HcalTBEventPosition::hfTableX_
double hfTableX_
Definition: HcalTBEventPosition.h:48
HcalTBEventPosition::hx_
std::vector< double > hx_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::ex_
std::vector< double > ex_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::dx_
std::vector< double > dx_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::by_
std::vector< double > by_
Definition: HcalTBEventPosition.h:51
PVValHelper::eta
Definition: PVValidationHelpers.h:69
HcalTBEventPosition::ay_
std::vector< double > ay_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::ey_
std::vector< double > ey_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::hy_
std::vector< double > hy_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::cx_
std::vector< double > cx_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::cy_
std::vector< double > cy_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::hbheTablePhi_
double hbheTablePhi_
Definition: HcalTBEventPosition.h:49
HcalTBEventPosition::hbheTableEta_
double hbheTableEta_
Definition: HcalTBEventPosition.h:49
HcalTBEventPosition::fx_
std::vector< double > fx_
Definition: HcalTBEventPosition.h:51
DDAxes::phi
HcalTBEventPosition::ax_
std::vector< double > ax_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::bx_
std::vector< double > bx_
Definition: HcalTBEventPosition.h:51
HcalTBEventPosition::hfTableY_
double hfTableY_
Definition: HcalTBEventPosition.h:48
HcalTBEventPosition::hfTableV_
double hfTableV_
Definition: HcalTBEventPosition.h:48
HcalTBEventPosition::fy_
std::vector< double > fy_
Definition: HcalTBEventPosition.h:51
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition: EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8
HcalTBEventPosition::dy_
std::vector< double > dy_
Definition: HcalTBEventPosition.h:51