ATLAS Offline Software
Loading...
Searching...
No Matches
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
22class ZdcCell : public ZdcRawData
23{
24public:
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
46private:
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
66typedef std::vector<ZdcCell> ZdcCellVec;
67
68#endif //ZDCEVENT_ZDCDIGITS_H
69
#define y
#define x
std::vector< ZdcCell > ZdcCellVec
Definition ZdcCell.h:66
void setEnergy(double e)
Definition ZdcCell.h:55
double m_energy
Definition ZdcCell.h:48
double getX()
Definition ZdcCell.h:60
double getEnergy()
Definition ZdcCell.h:56
double m_x
Definition ZdcCell.h:50
double getTime()
Definition ZdcCell.h:58
void print(void) const
Definition ZdcCell.h:41
void setX(double x)
Definition ZdcCell.h:59
void setY(double y)
Definition ZdcCell.h:61
double m_time
Definition ZdcCell.h:49
ZdcCell(const Identifier &id)
double m_y
Definition ZdcCell.h:51
void setTime(double t)
Definition ZdcCell.h:57
ZdcCell()
Definition ZdcCell.h:28
std::string whoami(void) const
Definition ZdcCell.h:40
virtual ~ZdcCell()
Definition ZdcCell.h:34
double getY()
Definition ZdcCell.h:62