ATLAS Offline Software
ZdcCell.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //***************************************************************************
6 // Filename : ZdcCell.h
7 // Author : Peter Steinberg
8 // Created : March 2009
9 //
10 // DESCRIPTION:
11 // A ZdcCell is the data class containing energy/position information for the "pixel" ZDC channels
12 //
13 // HISTORY:
14 //
15 // ***************************************************************************
16 
17 #ifndef ZDCEVENT_ZDCCell_H
18 #define ZDCEVENT_ZDCCell_H
19 
20 #include "ZdcEvent/ZdcRawData.h"
21 
22 class ZdcCell : public ZdcRawData
23 {
24 public:
25 
26  /* Constructors */
27 
28  ZdcCell() { }
29 
30  ZdcCell(const Identifier& id);
31 
32  /* Destructor */
33 
34  virtual ~ZdcCell() { }
35 
36  /* Inline access methods */
37 
38 
39 
40  std::string whoami (void) const { return "ZdcCell"; }
41  void print (void) const {};
42  // Convertion operator to a std::string
43  // Can be used in a cast operation : (std::string) ZdcCell
44  operator std::string() const { return "ZdcCell::string()";};
45 
46 private:
47 
48  double m_energy;
49  double m_time;
50  double m_x;
51  double m_y;
52 
53  public:
54 
55  void setEnergy(double e){m_energy = e;}
56  double getEnergy() {return m_energy;}
57  void setTime(double t){m_time = t;}
58  double getTime() {return m_time;}
59  void setX(double x){m_x = x;}
60  double getX() {return m_x;}
61  void setY(double y){m_x = y;}
62  double getY() {return m_y;}
63 
64 };
65 
66 typedef std::vector<ZdcCell> ZdcCellVec;
67 
68 #endif //ZDCEVENT_ZDCDIGITS_H
69 
ZdcCell::setEnergy
void setEnergy(double e)
Definition: ZdcCell.h:55
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
ZdcRawData
Definition: ZdcRawData.h:33
ZdcCell::m_y
double m_y
Definition: ZdcCell.h:51
ZdcCell::ZdcCell
ZdcCell(const Identifier &id)
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
x
#define x
ZdcCell
Definition: ZdcCell.h:23
ZdcCell::whoami
std::string whoami(void) const
Definition: ZdcCell.h:40
ZdcCell::getX
double getX()
Definition: ZdcCell.h:60
ZdcCell::setX
void setX(double x)
Definition: ZdcCell.h:59
ZdcCell::getEnergy
double getEnergy()
Definition: ZdcCell.h:56
ZdcCell::getY
double getY()
Definition: ZdcCell.h:62
ZdcCell::m_energy
double m_energy
Definition: ZdcCell.h:44
ZdcCell::getTime
double getTime()
Definition: ZdcCell.h:58
ZdcCell::ZdcCell
ZdcCell()
Definition: ZdcCell.h:28
ZdcCell::~ZdcCell
virtual ~ZdcCell()
Definition: ZdcCell.h:34
ZdcCellVec
std::vector< ZdcCell > ZdcCellVec
Definition: ZdcCell.h:66
ZdcRawData.h
y
#define y
ZdcCell::print
void print(void) const
Definition: ZdcCell.h:41
ZdcCell::m_time
double m_time
Definition: ZdcCell.h:49
ZdcCell::setTime
void setTime(double t)
Definition: ZdcCell.h:57
ZdcCell::m_x
double m_x
Definition: ZdcCell.h:50
ZdcCell::setY
void setY(double y)
Definition: ZdcCell.h:61
Identifier
Definition: IdentifierFieldParser.cxx:14