ATLAS Offline Software
MuonSimuTrack.h
Go to the documentation of this file.
1 /* // -*- C++ -*- */
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 #ifndef MUONSIMUTRACK_H
9 #define MUONSIMUTRACK_H
10 
11 #include<iostream>
13 
14 /*
15 
16 #define l1event l1event_
17 
18 extern "C" struct gflag{
19  int EventNum;
20 } l1event;
21 
22 
23 #define gcflag gcflag_
24 extern "C" struct
25 {
26  int IDEBUG;
27  int IDEMIN;
28  int IDEMAX;
29  int ITEST;
30  int IDRUN;
31  int IDEVT;
32  int IEORUN;
33  int IEOTRI;
34  int IEVENT;
35  int ISWIT[10];
36  int IFINIT[20];
37  int NEVENT;
38  int NRNDM[2];
39 } gcflag;
40 */
41 
43 {
47 
48  float Px;
49  float Py;
50  float Pz;
51  float Energy;
52 };
53 
54 
56 {
57  private:
61 
62  float m_Px;
63  float m_Py;
64  float m_Pz;
65  float m_Energy;
66 
67  public:
68  MuonSimuTrack(int,const SimuTrackData&);
71 
73 
74  public:
75  int event_number(void) const {return m_event_number;}
76  int vertex_number(void) const {return m_vertex_number;}
77  int track_number(void) const {return m_track_number;}
78 
79  float Pt(void) const;
80  float generation_theta(void) const;
81  float generation_eta(void) const;
82  float generation_phi(void) const;
83 
84  float Px(void) const {return m_Px;}
85  float Py(void) const {return m_Py;}
86  float Pz(void) const {return m_Pz;}
87  float Energy(void) const {return m_Energy;}
88 
89  void Print(std::ostream&,bool) const;
90 };
91 
92 
93 template <class X> X& operator<<(X& stream,const MuonSimuTrack& track)
94 {
95  std::ostringstream display;
96  track.Print(display,false);
97  stream << display.str();
98  return stream;
99 }
100 
101 
102 #endif
MuonSimuTrack::~MuonSimuTrack
~MuonSimuTrack()
Definition: MuonSimuTrack.h:70
MuonSimuTrack::Pz
float Pz(void) const
Definition: MuonSimuTrack.h:86
operator<<
X & operator<<(X &stream, const MuonSimuTrack &track)
Definition: MuonSimuTrack.h:93
MuonSimuTrack::m_Px
float m_Px
Definition: MuonSimuTrack.h:62
MuonSimuTrack::m_event_number
int m_event_number
Definition: MuonSimuTrack.h:58
MuonSimuTrack::m_Energy
float m_Energy
Definition: MuonSimuTrack.h:65
MuonSimuTrack::Print
void Print(std::ostream &, bool) const
Definition: MuonSimuTrack.cxx:77
SimuTrackData::track_number
int track_number
Definition: MuonSimuTrack.h:46
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
SimuTrackData
Definition: MuonSimuTrack.h:43
Monitored::X
@ X
Definition: HistogramFillerUtils.h:24
MuonSimuTrack::Py
float Py(void) const
Definition: MuonSimuTrack.h:85
MuonSimuTrack::operator=
MuonSimuTrack operator=(const MuonSimuTrack &)
Definition: MuonSimuTrack.cxx:40
MuonSimuTrack::generation_eta
float generation_eta(void) const
Definition: MuonSimuTrack.cxx:66
SimuTrackData::event_number
int event_number
Definition: MuonSimuTrack.h:44
MuonSimuTrack::m_track_number
int m_track_number
Definition: MuonSimuTrack.h:60
MuonSimuTrack::m_Py
float m_Py
Definition: MuonSimuTrack.h:63
MuonSimuTrack::track_number
int track_number(void) const
Definition: MuonSimuTrack.h:77
pyroot.display
display
Definition: pyroot.py:44
MuonSimuTrack::Energy
float Energy(void) const
Definition: MuonSimuTrack.h:87
SimuTrackData::Pz
float Pz
Definition: MuonSimuTrack.h:50
MuonSimuTrack::Pt
float Pt(void) const
Definition: MuonSimuTrack.cxx:56
MuonSimuTrack::generation_phi
float generation_phi(void) const
Definition: MuonSimuTrack.cxx:72
RPCtrigDataObject
Definition: RPCtrigDataObject.h:15
MuonSimuTrack::generation_theta
float generation_theta(void) const
Definition: MuonSimuTrack.cxx:61
MuonSimuTrack::Px
float Px(void) const
Definition: MuonSimuTrack.h:84
SimuTrackData::vertex_number
int vertex_number
Definition: MuonSimuTrack.h:45
MuonSimuTrack::MuonSimuTrack
MuonSimuTrack(int, const SimuTrackData &)
Definition: MuonSimuTrack.cxx:14
RPCtrigDataObject.h
MuonSimuTrack::m_Pz
float m_Pz
Definition: MuonSimuTrack.h:64
SimuTrackData::Energy
float Energy
Definition: MuonSimuTrack.h:51
MuonSimuTrack::m_vertex_number
int m_vertex_number
Definition: MuonSimuTrack.h:59
SimuTrackData::Px
float Px
Definition: MuonSimuTrack.h:48
MuonSimuTrack::event_number
int event_number(void) const
Definition: MuonSimuTrack.h:75
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
SimuTrackData::Py
float Py
Definition: MuonSimuTrack.h:49
MuonSimuTrack::vertex_number
int vertex_number(void) const
Definition: MuonSimuTrack.h:76
MuonSimuTrack
Definition: MuonSimuTrack.h:56