CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 18 of file HcalTBEventPosition.h.

Constructor & Destructor Documentation

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_() {}
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 29 of file HcalTBEventPosition.cc.

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

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

References hbheTableEta_.

Referenced by operator<<().

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

References hbheTablePhi_.

Referenced by operator<<().

32 { return hbheTablePhi_; }
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.

References hfTableV_.

Referenced by operator<<().

28 { return hfTableV_; }
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.

References hfTableX_.

Referenced by operator<<().

24 { return hfTableX_; }
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.

References hfTableY_.

Referenced by operator<<().

26 { return hfTableY_; }
void HcalTBEventPosition::setChamberHits ( char  chamberch,
const std::vector< double > &  xvec,
const std::vector< double > &  yvec 
)

Definition at line 69 of file HcalTBEventPosition.cc.

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 hcaltb::HcalTBTDCUnpacker::reconstructWC().

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

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

double HcalTBEventPosition::hbheTableEta_
private

Definition at line 49 of file HcalTBEventPosition.h.

Referenced by hbheTableEta(), and setHBHEtableCoords().

double HcalTBEventPosition::hbheTablePhi_
private

Definition at line 49 of file HcalTBEventPosition.h.

Referenced by hbheTablePhi(), and setHBHEtableCoords().

double HcalTBEventPosition::hfTableV_
private

Definition at line 48 of file HcalTBEventPosition.h.

Referenced by hfTableV(), and setHFtableCoords().

double HcalTBEventPosition::hfTableX_
private

Definition at line 48 of file HcalTBEventPosition.h.

Referenced by hfTableX(), and setHFtableCoords().

double HcalTBEventPosition::hfTableY_
private

Definition at line 48 of file HcalTBEventPosition.h.

Referenced by hfTableY(), and setHFtableCoords().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().

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

Definition at line 51 of file HcalTBEventPosition.h.

Referenced by getChamberHits(), and setChamberHits().