Belle II Software  release-05-01-25
MicrotpcMetaEDataHit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2016 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef MICROTPCMETAEDATAHIT_H
12 #define MICROTPCMETAEDATAHIT_H
13 
14 #include <simulation/dataobjects/SimHitBase.h>
15 //#include <framework/datastore/RelationsObject.h>
16 
17 // ROOT
18 #include <TVector3.h>
19 
20 namespace Belle2 {
32  class MicrotpcMetaEDataHit : public SimHitBase {
33  public:
35  //MicrotpcMetaEDataHit(): m_column(0), m_row(0), m_BCID(0), m_TOT(0), m_detNb(0) {}
37  m_ts_nb(0), m_ts_start(), m_ts_stop(),
39  m_IHER(0), m_PHER(0), m_tHER(0), m_flagHER(0),
40  m_ILER(0), m_PLER(0), m_tLER(0), m_flagLER(0) {}
41 
46  /*
47  MicrotpcMetaEDataHit(int column, int row, int BCID, int TOT, int detNb):
48  m_column(column), m_row(row), m_BCID(BCID), m_TOT(TOT), m_detNb(detNb)
49  {
50  }
51  */
52 
53  MicrotpcMetaEDataHit(int detNb, int pixNb,
54  int ts_nb, const double ts_start[10], const double ts_stop[10],
55  const float Temperature[4], const float Pressure[2], const float Flow[2], float SetFlow, float GetFlow,
56  double IHER, double PHER, double tHER, int flagHER,
57  double ILER, double PLER, double tLER, int flagLER):
58  m_detNb(detNb), m_pixNb(pixNb), m_ts_nb(ts_nb), m_SetFlow(SetFlow), m_GetFlow(GetFlow),
59  m_IHER(IHER), m_PHER(PHER), m_tHER(tHER), m_flagHER(flagHER),
60  m_ILER(ILER), m_PLER(PLER), m_tLER(tLER), m_flagLER(flagLER)
61  {
62  std::copy(ts_start, ts_start + 10, m_ts_start);
63  std::copy(ts_stop, ts_stop + 10, m_ts_stop);
64  std::copy(Temperature, Temperature + 4, m_Temperature);
65  std::copy(Pressure, Pressure + 2, m_Pressure);
66  std::copy(Flow, Flow + 2, m_Flow);
67  }
68 
69 
71  void setcolumn(std::vector<int>& column)
72  {
73  m_column.clear();
74  std::swap(m_column, column);
75  }
77  void setrow(std::vector<int>& row)
78  {
79  m_row.clear();
80  std::swap(m_row, row);
81  }
83  void setBCID(std::vector<int>& BCID)
84  {
85  m_BCID.clear();
86  std::swap(m_BCID, BCID);
87  }
89  void setTOT(std::vector<int>& TOT)
90  {
91  m_TOT.clear();
92  std::swap(m_TOT, TOT);
93  }
94 
96  //int getcolumn() const { return m_column; }
97  std::vector<int > getcolumn() const;
99  //int getrow() const { return m_row; }
100  std::vector<int > getrow() const;
102  //int getBCID() const { return m_BCID; }
103  std::vector<int > getBCID() const;
105  //int getTOT() const { return m_TOT; }
106  std::vector<int > getTOT() const;
108  int getdetNb() const { return m_detNb; }
110  int getpixNb() const { return m_pixNb; }
112  int getts_nb() const { return m_ts_nb; }
114  const double* getts_start() const { return m_ts_start; }
116  const double* getts_stop() const { return m_ts_stop; }
118  const float* getTemperature() const { return m_Temperature; }
120  const float* getPressure() const { return m_Pressure; }
122  const float* getFlow() const { return m_Flow; }
124  float getSetFlow() const { return m_SetFlow; }
126  float getGetFlow() const { return m_GetFlow; }
128  double getIHER() const { return m_IHER; }
130  double getPHER() const { return m_PHER; }
132  double gettHER() const { return m_tHER; }
134  double getflagHER() const { return m_flagHER; }
136  double getILER() const { return m_ILER; }
138  double getPLER() const { return m_PLER; }
140  double gettLER() const { return m_tLER; }
142  double getflagLER() const { return m_flagLER; }
143 
144  private:
145 
147  //int m_column;
148  std::vector<int> m_column;
150  //int m_row;
151  std::vector<int> m_row;
153  //int m_BCID;
154  std::vector<int> m_BCID;
156  //int m_TOT;
157  std::vector<int> m_TOT;
159  int m_detNb;
161  int m_pixNb;
163  int m_ts_nb;
165  double m_ts_start[10];
167  double m_ts_stop[10];
169  float m_Temperature[4];
171  float m_Pressure[2];
173  float m_Flow[2];
175  float m_SetFlow;
177  float m_GetFlow;
179  double m_IHER;
181  double m_PHER;
183  double m_tHER;
185  double m_flagHER;
187  double m_ILER;
189  double m_PLER;
191  double m_tLER;
193  double m_flagLER;
194 
196  };
197 
199 } // end namespace Belle2
200 
201 #endif
Belle2::MicrotpcMetaEDataHit::gettHER
double gettHER() const
Return HER beam life time.
Definition: MicrotpcMetaEDataHit.h:140
Belle2::MicrotpcMetaEDataHit::getpixNb
int getpixNb() const
Return the pixel number firing.
Definition: MicrotpcMetaEDataHit.h:118
Belle2::MicrotpcMetaEDataHit::m_PLER
double m_PLER
LER pressure.
Definition: MicrotpcMetaEDataHit.h:197
Belle2::MicrotpcMetaEDataHit::m_BCID
std::vector< int > m_BCID
BCID.
Definition: MicrotpcMetaEDataHit.h:162
Belle2::MicrotpcMetaEDataHit::gettLER
double gettLER() const
Return HER beam life time.
Definition: MicrotpcMetaEDataHit.h:148
Belle2::MicrotpcMetaEDataHit::m_ts_start
double m_ts_start[10]
Start time stamp.
Definition: MicrotpcMetaEDataHit.h:173
Belle2::MicrotpcMetaEDataHit::getIHER
double getIHER() const
Return HER current.
Definition: MicrotpcMetaEDataHit.h:136
Belle2::MicrotpcMetaEDataHit::m_Pressure
float m_Pressure[2]
Pressure.
Definition: MicrotpcMetaEDataHit.h:179
Belle2::MicrotpcMetaEDataHit::m_ts_nb
int m_ts_nb
Time stamp number.
Definition: MicrotpcMetaEDataHit.h:171
Belle2::MicrotpcMetaEDataHit::getPLER
double getPLER() const
Return LER average pressure.
Definition: MicrotpcMetaEDataHit.h:146
Belle2::MicrotpcMetaEDataHit::getGetFlow
float getGetFlow() const
Return TPC slow control get flow.
Definition: MicrotpcMetaEDataHit.h:134
Belle2::MicrotpcMetaEDataHit::getrow
std::vector< int > getrow() const
Return row vector.
Definition: MicrotpcMetaEDataHit.cc:25
Belle2::MicrotpcMetaEDataHit::getts_nb
int getts_nb() const
Return the number of time stamp.
Definition: MicrotpcMetaEDataHit.h:120
Belle2::MicrotpcMetaEDataHit::m_ts_stop
double m_ts_stop[10]
Stop time stamp.
Definition: MicrotpcMetaEDataHit.h:175
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::MicrotpcMetaEDataHit::getSetFlow
float getSetFlow() const
Return TPC slow control set flow.
Definition: MicrotpcMetaEDataHit.h:132
Belle2::MicrotpcMetaEDataHit::m_flagLER
double m_flagLER
LER injection flag.
Definition: MicrotpcMetaEDataHit.h:201
Belle2::MicrotpcMetaEDataHit::m_pixNb
int m_pixNb
Pixel number.
Definition: MicrotpcMetaEDataHit.h:169
Belle2::MicrotpcMetaEDataHit::setrow
void setrow(std::vector< int > &row)
Set row into a vector array.
Definition: MicrotpcMetaEDataHit.h:85
Belle2::MicrotpcMetaEDataHit::m_tLER
double m_tLER
LER tau.
Definition: MicrotpcMetaEDataHit.h:199
Belle2::MicrotpcMetaEDataHit::m_flagHER
double m_flagHER
HER injection flag.
Definition: MicrotpcMetaEDataHit.h:193
Belle2::MicrotpcMetaEDataHit::m_detNb
int m_detNb
Detector Number.
Definition: MicrotpcMetaEDataHit.h:167
Belle2::MicrotpcMetaEDataHit::m_GetFlow
float m_GetFlow
Get flow.
Definition: MicrotpcMetaEDataHit.h:185
Belle2::MicrotpcMetaEDataHit::setBCID
void setBCID(std::vector< int > &BCID)
Set bc into a vector array.
Definition: MicrotpcMetaEDataHit.h:91
Belle2::MicrotpcMetaEDataHit::getBCID
std::vector< int > getBCID() const
Return BCID vector.
Definition: MicrotpcMetaEDataHit.cc:43
Belle2::MicrotpcMetaEDataHit::getTemperature
const float * getTemperature() const
Return TPC temperature.
Definition: MicrotpcMetaEDataHit.h:126
Belle2::MicrotpcMetaEDataHit::m_Flow
float m_Flow[2]
Flow.
Definition: MicrotpcMetaEDataHit.h:181
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::MicrotpcMetaEDataHit::m_column
std::vector< int > m_column
Column.
Definition: MicrotpcMetaEDataHit.h:156
Belle2::MicrotpcMetaEDataHit::getts_stop
const double * getts_stop() const
Return stop readout time stamp.
Definition: MicrotpcMetaEDataHit.h:124
Belle2::MicrotpcMetaEDataHit::getdetNb
int getdetNb() const
Return the TPC number.
Definition: MicrotpcMetaEDataHit.h:116
Belle2::MicrotpcMetaEDataHit::m_ILER
double m_ILER
LER current.
Definition: MicrotpcMetaEDataHit.h:195
Belle2::MicrotpcMetaEDataHit::getPHER
double getPHER() const
Return HER average pressure.
Definition: MicrotpcMetaEDataHit.h:138
Belle2::MicrotpcMetaEDataHit
ClassMicrotpcDataHit - digitization simulated datahit for the Microtpc detector.
Definition: MicrotpcMetaEDataHit.h:40
Belle2::MicrotpcMetaEDataHit::MicrotpcMetaEDataHit
MicrotpcMetaEDataHit()
default constructor for ROOT
Definition: MicrotpcMetaEDataHit.h:44
Belle2::MicrotpcMetaEDataHit::getILER
double getILER() const
Return LER current.
Definition: MicrotpcMetaEDataHit.h:144
Belle2::MicrotpcMetaEDataHit::m_tHER
double m_tHER
HER tau.
Definition: MicrotpcMetaEDataHit.h:191
Belle2::MicrotpcMetaEDataHit::getflagLER
double getflagLER() const
Return HER injection flag.
Definition: MicrotpcMetaEDataHit.h:150
Belle2::MicrotpcMetaEDataHit::getTOT
std::vector< int > getTOT() const
Return TOT vector.
Definition: MicrotpcMetaEDataHit.cc:34
Belle2::MicrotpcMetaEDataHit::getFlow
const float * getFlow() const
Return TPC flow.
Definition: MicrotpcMetaEDataHit.h:130
Belle2::MicrotpcMetaEDataHit::getcolumn
std::vector< int > getcolumn() const
Return column vector.
Definition: MicrotpcMetaEDataHit.cc:16
Belle2::MicrotpcMetaEDataHit::m_SetFlow
float m_SetFlow
Set flow.
Definition: MicrotpcMetaEDataHit.h:183
Belle2::MicrotpcMetaEDataHit::m_Temperature
float m_Temperature[4]
Temperature.
Definition: MicrotpcMetaEDataHit.h:177
Belle2::MicrotpcMetaEDataHit::m_IHER
double m_IHER
HER current.
Definition: MicrotpcMetaEDataHit.h:187
Belle2::MicrotpcMetaEDataHit::setcolumn
void setcolumn(std::vector< int > &column)
Set column into a vector array.
Definition: MicrotpcMetaEDataHit.h:79
Belle2::MicrotpcMetaEDataHit::getts_start
const double * getts_start() const
Return start readout time stamp.
Definition: MicrotpcMetaEDataHit.h:122
Belle2::MicrotpcMetaEDataHit::m_PHER
double m_PHER
HER pressure.
Definition: MicrotpcMetaEDataHit.h:189
Belle2::MicrotpcMetaEDataHit::getflagHER
double getflagHER() const
Return HER injection flag.
Definition: MicrotpcMetaEDataHit.h:142
Belle2::MicrotpcMetaEDataHit::m_row
std::vector< int > m_row
Row.
Definition: MicrotpcMetaEDataHit.h:159
Belle2::MicrotpcMetaEDataHit::getPressure
const float * getPressure() const
Return TPC pressure.
Definition: MicrotpcMetaEDataHit.h:128
Belle2::MicrotpcMetaEDataHit::setTOT
void setTOT(std::vector< int > &TOT)
Set tot into a vector array.
Definition: MicrotpcMetaEDataHit.h:97
Belle2::MicrotpcMetaEDataHit::m_TOT
std::vector< int > m_TOT
TOT.
Definition: MicrotpcMetaEDataHit.h:165