ATLAS Offline Software
Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.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 TRIGT2ZDCSIGNALS_H
6 #define TRIGT2ZDCSIGNALS_H
7 
9 #include "GaudiKernel/MsgStream.h"
10 
11 #include <vector>
12 
21 
22  public:
23  TrigT2ZdcSignals(void);
24  TrigT2ZdcSignals(const std::vector<float>& triggerEnergies,
25  const std::vector<float>& triggerTimes);
26  TrigT2ZdcSignals(std::vector<float>&& triggerEnergies,
27  std::vector<float>&& triggerTimes);
28  ~TrigT2ZdcSignals(void);
29 
31  const std::vector<float>& triggerEnergies(void) const { return m_triggerEnergies; }
32 
34  const std::vector<float>& triggerTimes(void) const { return m_triggerTimes; }
35 
37  void print(void) const;
38 
40  void print(MsgStream& log) const;
41 
43  static const int NUM_ZDC = 8;
44 
45  private:
46  std::vector<float> m_triggerEnergies;
47  std::vector<float> m_triggerTimes;
48 };
49 
51 std::string str(const TrigT2ZdcSignals& trigT2ZdcSignals);
52 
54 MsgStream& operator<< (MsgStream& m, const TrigT2ZdcSignals& trigT2ZdcSignals);
55 
56 CLASS_DEF( TrigT2ZdcSignals , 86299156 , 1 )
57 #endif
TrigT2ZdcSignals::~TrigT2ZdcSignals
~TrigT2ZdcSignals(void)
Definition: TrigT2ZdcSignals.cxx:30
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigT2ZdcSignals::m_triggerTimes
std::vector< float > m_triggerTimes
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.h:47
TrigT2ZdcSignals::print
void print(void) const
Prints out data members to std::cout.
Definition: TrigT2ZdcSignals.cxx:34
str
std::string str(const TrigT2ZdcSignals &trigT2ZdcSignals)
Helper function for printing the object.
Definition: TrigT2ZdcSignals.cxx:78
TrigT2ZdcSignals::triggerTimes
const std::vector< float > & triggerTimes(void) const
Return the relative times of the triggers.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.h:34
TrigT2ZdcSignals::NUM_ZDC
static const int NUM_ZDC
A data member to contain the number of ZDC signals.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.h:43
TrigT2ZdcSignals::triggerEnergies
const std::vector< float > & triggerEnergies(void) const
Return the trigger energies of each counter.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.h:31
operator<<
MsgStream & operator<<(MsgStream &m, const TrigT2ZdcSignals &trigT2ZdcSignals)
Helper operator for printing the object.
Definition: TrigT2ZdcSignals.cxx:105
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
TrigT2ZdcSignals
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.h:20
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigT2ZdcSignals::m_triggerEnergies
std::vector< float > m_triggerEnergies
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigT2ZdcSignals.h:46
TrigT2ZdcSignals::TrigT2ZdcSignals
TrigT2ZdcSignals(void)
Definition: TrigT2ZdcSignals.cxx:8
CLASS_DEF.h
macros to associate a CLID to a type