ATLAS Offline Software
MBTSCollisionTime.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 #ifndef MBTSCollisionTime_H
6 #define MBTSCollisionTime_H
7 
17 #include "AthenaKernel/CLASS_DEF.h"
18 
20 {
21 
22  public:
23 
26 
28  MBTSCollisionTime( int ncellA, int ncellC, float energyA, float energyC, float timeA, float timeC);
29 
31  int ncellA() const{ return m_ncellA; }
32 
34  int ncellC() const{ return m_ncellC; };
35 
37  int ncell() const{ return (m_ncellA + m_ncellC); };
38 
40  double energyA() const{ return m_energyA; };
41 
43  double energyC() const{ return m_energyC; };
44 
46  double energy() const{ return (m_energyA + m_energyC); };
47 
49  double timeA() const{ return m_timeA; };
50 
52  double timeC() const{ return m_timeC; };
53 
55  double time() const{ return (m_timeA - m_timeC); };
56 
57  private:
58 
59  int m_ncellA;
60  int m_ncellC;
61  float m_energyA;
62  float m_energyC;
63  float m_timeA;
64  float m_timeC;
65 
66 };
67 
69 
71  : m_ncellA(0), m_ncellC(0), m_energyA(0.), m_energyC(0.), m_timeA(0.), m_timeC(0.) {}
72 
73 inline MBTSCollisionTime::MBTSCollisionTime( int ncellA, int ncellC, float energyA, float energyC, float timeA, float timeC)
74  : m_ncellA(ncellA), m_ncellC(ncellC), m_energyA(energyA), m_energyC(energyC), m_timeA(timeA), m_timeC(timeC){}
75 
76 
77 #endif //MBTSCollisionTime_H
MBTSCollisionTime::timeC
double timeC() const
time C side
Definition: MBTSCollisionTime.h:52
MBTSCollisionTime::time
double time() const
time difference A - C
Definition: MBTSCollisionTime.h:55
MBTSCollisionTime::ncellC
int ncellC() const
get number of cells for time C side
Definition: MBTSCollisionTime.h:34
MBTSCollisionTime::m_timeC
float m_timeC
Definition: MBTSCollisionTime.h:64
MBTSCollisionTime::m_energyC
float m_energyC
Definition: MBTSCollisionTime.h:62
MBTSCollisionTime::m_ncellA
int m_ncellA
Definition: MBTSCollisionTime.h:55
MBTSCollisionTime
Holds information about collisions timing from MBTS counters.
Definition: MBTSCollisionTime.h:20
MBTSCollisionTime::timeA
double timeA() const
time A side
Definition: MBTSCollisionTime.h:49
MBTSCollisionTime::ncellA
int ncellA() const
get number of cells for time A side
Definition: MBTSCollisionTime.h:31
MBTSCollisionTime::MBTSCollisionTime
MBTSCollisionTime()
main constructor with all data members set to zero
Definition: MBTSCollisionTime.h:70
MBTSCollisionTime::m_energyA
float m_energyA
Definition: MBTSCollisionTime.h:61
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
MBTSCollisionTime::m_timeA
float m_timeA
Definition: MBTSCollisionTime.h:63
MBTSCollisionTime::ncell
int ncell() const
get total number of cells
Definition: MBTSCollisionTime.h:37
MBTSCollisionTime::energyA
double energyA() const
total energy A side
Definition: MBTSCollisionTime.h:40
CLASS_DEF.h
macros to associate a CLID to a type
MBTSCollisionTime::energy
double energy() const
total energy from both sides
Definition: MBTSCollisionTime.h:46
MBTSCollisionTime::energyC
double energyC() const
total energy C side
Definition: MBTSCollisionTime.h:43
MBTSCollisionTime::m_ncellC
int m_ncellC
Definition: MBTSCollisionTime.h:60