Definition at line 8 of file OfflineRevise.cxx.
◆ map_iterator
◆ vec_iterator
◆ SniperJSON() [1/2]
SniperJSON::SniperJSON |
( |
| ) |
|
◆ SniperJSON() [2/2]
SniperJSON::SniperJSON |
( |
const std::string & |
jstr | ) |
|
Definition at line 261 of file OfflineRevise.cxx.
262 : m_type(0)
263{
264 StrCursor cursor = 0;
265 init(jstr, cursor);
266
267 cursor = jstr.find_first_not_of(SniperJSON::SPACES, cursor);
268 if (cursor != std::string::npos)
269 {
270 throw Exception(jstr, cursor);
271 }
272}
◆ find()
map_iterator SniperJSON::find |
( |
const std::string & |
key | ) |
const |
|
inline |
Definition at line 64 of file OfflineRevise.cxx.
64{
return m_jmap.find(
key); }
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
◆ get()
Definition at line 142 of file OfflineRevise.cxx.
143{
147}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Referenced by OfflineRevise::OfflineRevise().
◆ insert()
bool SniperJSON::insert |
( |
const std::string & |
key, |
|
|
const SniperJSON & |
val |
|
) |
| |
Definition at line 291 of file OfflineRevise.cxx.
292{
293 if (m_type == 1 || m_type == 0)
294 {
295 std::string _key =
'"' +
key +
'"';
296 m_jmap.insert(std::make_pair(_key, val));
297 m_type = 1;
298 return true;
299 }
300 return false;
301}
◆ isMap()
bool SniperJSON::isMap |
( |
| ) |
const |
|
inline |
◆ isScalar()
bool SniperJSON::isScalar |
( |
| ) |
const |
|
inline |
◆ isVector()
bool SniperJSON::isVector |
( |
| ) |
const |
|
inline |
◆ load()
◆ loads()
SniperJSON SniperJSON::loads |
( |
const std::string & |
jstr | ) |
|
|
static |
◆ map_begin()
◆ map_end()
◆ operator[]() [1/4]
SniperJSON & SniperJSON::operator[] |
( |
const std::string & |
key | ) |
|
◆ operator[]() [2/4]
const SniperJSON & SniperJSON::operator[] |
( |
const std::string & |
key | ) |
const |
◆ operator[]() [3/4]
◆ operator[]() [4/4]
const SniperJSON & SniperJSON::operator[] |
( |
int |
index | ) |
const |
|
inline |
◆ push_back()
Definition at line 280 of file OfflineRevise.cxx.
281{
282 if (m_type == 2 || m_type == 0)
283 {
284 m_jvec.push_back(var);
285 m_type = 2;
286 return true;
287 }
288 return false;
289}
◆ reset()
void SniperJSON::reset |
( |
| ) |
|
Definition at line 303 of file OfflineRevise.cxx.
304{
305 m_type = 0;
306 m_jvar.clear();
307 m_jvec.clear();
308 m_jmap.clear();
309}
◆ size()
int SniperJSON::size |
( |
| ) |
const |
Definition at line 311 of file OfflineRevise.cxx.
312{
313 if (m_type == 1)
314 {
315 return m_jmap.size();
316 }
317 else if (m_type == 2)
318 {
319 return m_jvec.size();
320 }
321
322 return -1;
323}
◆ vec_begin()
◆ vec_end()
The documentation for this class was generated from the following file: