#include <SniperJSON.h>
Definition at line 8 of file SniperJSON.h.
◆ map_iterator
◆ vec_iterator
◆ SniperJSON() [1/2]
SniperJSON::SniperJSON |
( |
| ) |
|
◆ SniperJSON() [2/2]
SniperJSON::SniperJSON |
( |
const std::string & |
jstr | ) |
|
Definition at line 14 of file SniperJSON.cxx.
15 : m_type(0)
16{
17 StrCursor cursor = 0;
18 init(jstr, cursor);
19
20 cursor = jstr.find_first_not_of(SniperJSON::SPACES, cursor);
21 if (cursor != std::string::npos)
22 {
23 throw Exception(jstr, cursor);
24 }
25}
◆ find()
map_iterator SniperJSON::find |
( |
const std::string & |
key | ) |
const |
|
inline |
Definition at line 64 of file SniperJSON.h.
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 SniperJSON.h.
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 44 of file SniperJSON.cxx.
45{
46 if (m_type == 1 || m_type == 0)
47 {
48 std::string _key =
'"' +
key +
'"';
49 m_jmap.insert(std::make_pair(_key, val));
50 m_type = 1;
51 return true;
52 }
53 return false;
54}
◆ 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()
Definition at line 60 of file SniperJSON.h.
60{ return m_jmap.begin(); }
◆ map_end()
Definition at line 62 of file SniperJSON.h.
62{ return m_jmap.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]
Definition at line 55 of file SniperJSON.h.
55{ return m_jvec.at(index); }
◆ operator[]() [4/4]
const SniperJSON & SniperJSON::operator[] |
( |
int |
index | ) |
const |
|
inline |
Definition at line 57 of file SniperJSON.h.
57{ return m_jvec.at(index); }
◆ push_back()
Definition at line 33 of file SniperJSON.cxx.
34{
35 if (m_type == 2 || m_type == 0)
36 {
37 m_jvec.push_back(var);
38 m_type = 2;
39 return true;
40 }
41 return false;
42}
◆ reset()
void SniperJSON::reset |
( |
| ) |
|
Definition at line 56 of file SniperJSON.cxx.
57{
58 m_type = 0;
59 m_jvar.clear();
60 m_jvec.clear();
61 m_jmap.clear();
62}
◆ size()
int SniperJSON::size |
( |
| ) |
const |
Definition at line 64 of file SniperJSON.cxx.
65{
66 if (m_type == 1)
67 {
68 return m_jmap.size();
69 }
70 else if (m_type == 2)
71 {
72 return m_jvec.size();
73 }
74
75 return -1;
76}
◆ vec_begin()
◆ vec_end()
The documentation for this class was generated from the following files: