#include <SniperJSON.h>
◆ map_iterator [1/3]
◆ map_iterator [2/3]
◆ map_iterator [3/3]
◆ vec_iterator [1/3]
◆ vec_iterator [2/3]
◆ vec_iterator [3/3]
◆ SniperJSON() [1/6]
| SniperJSON::SniperJSON |
( |
| ) |
|
◆ SniperJSON() [2/6]
| SniperJSON::SniperJSON |
( |
const std::string & | jstr | ) |
|
Definition at line 11 of file SniperJSON.cxx.
11 : m_type( 0 ) {
12 StrCursor cursor = 0;
13 init( jstr, cursor );
14
15 cursor = jstr.find_first_not_of( SniperJSON::SPACES, cursor );
16 if ( cursor != std::string::npos ) { throw Exception( jstr, cursor ); }
17}
◆ SniperJSON() [3/6]
| SniperJSON::SniperJSON |
( |
| ) |
|
◆ SniperJSON() [4/6]
| SniperJSON::SniperJSON |
( |
const std::string & | jstr | ) |
|
◆ SniperJSON() [5/6]
| SniperJSON::SniperJSON |
( |
| ) |
|
◆ SniperJSON() [6/6]
| SniperJSON::SniperJSON |
( |
const std::string & | jstr | ) |
|
◆ find() [1/3]
| map_iterator SniperJSON::find |
( |
const std::string & | key | ) |
const |
|
inline |
Definition at line 62 of file Event/RawDataCnv/include/RawDataCnv/SniperJSON.h.
62{
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
◆ find() [2/3]
| map_iterator SniperJSON::find |
( |
const std::string & | key | ) |
const |
|
inline |
◆ find() [3/3]
| map_iterator SniperJSON::find |
( |
const std::string & | key | ) |
const |
|
inline |
◆ get() [1/3]
template<typename T>
| T SniperJSON::get |
( |
| ) |
const |
Definition at line 135 of file Event/RawDataCnv/include/RawDataCnv/SniperJSON.h.
135 {
139}
**********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 get(), loads(), and OfflineRevise::OfflineRevise().
◆ get() [2/3]
template<typename T>
| T SniperJSON::get |
( |
| ) |
const |
◆ get() [3/3]
template<typename T>
| T SniperJSON::get |
( |
| ) |
const |
◆ insert() [1/3]
| bool SniperJSON::insert |
( |
const std::string & | key, |
|
|
const SniperJSON & | val ) |
Definition at line 33 of file SniperJSON.cxx.
33 {
34 if ( m_type == 1 || m_type == 0 )
35 {
36 std::string _key =
'"' +
key +
'"';
37 m_jmap.insert( std::make_pair( _key, val ) );
38 m_type = 1;
39 return true;
40 }
41 return false;
42}
◆ insert() [2/3]
| bool SniperJSON::insert |
( |
const std::string & | key, |
|
|
const SniperJSON & | val ) |
◆ insert() [3/3]
| bool SniperJSON::insert |
( |
const std::string & | key, |
|
|
const SniperJSON & | val ) |
◆ isMap() [1/3]
| bool SniperJSON::isMap |
( |
| ) |
const |
|
inline |
◆ isMap() [2/3]
| bool SniperJSON::isMap |
( |
| ) |
const |
|
inline |
◆ isMap() [3/3]
| bool SniperJSON::isMap |
( |
| ) |
const |
|
inline |
◆ isScalar() [1/3]
| bool SniperJSON::isScalar |
( |
| ) |
const |
|
inline |
◆ isScalar() [2/3]
| bool SniperJSON::isScalar |
( |
| ) |
const |
|
inline |
◆ isScalar() [3/3]
| bool SniperJSON::isScalar |
( |
| ) |
const |
|
inline |
◆ isVector() [1/3]
| bool SniperJSON::isVector |
( |
| ) |
const |
|
inline |
◆ isVector() [2/3]
| bool SniperJSON::isVector |
( |
| ) |
const |
|
inline |
◆ isVector() [3/3]
| bool SniperJSON::isVector |
( |
| ) |
const |
|
inline |
◆ load() [1/3]
◆ load() [2/3]
◆ load() [3/3]
◆ loads() [1/3]
| SniperJSON SniperJSON::loads |
( |
const std::string & | jstr | ) |
|
|
static |
◆ loads() [2/3]
| SniperJSON SniperJSON::loads |
( |
const std::string & | jstr | ) |
|
|
static |
◆ loads() [3/3]
| SniperJSON SniperJSON::loads |
( |
const std::string & | jstr | ) |
|
|
static |
◆ map_begin() [1/3]
◆ map_begin() [2/3]
◆ map_begin() [3/3]
◆ map_end() [1/3]
◆ map_end() [2/3]
◆ map_end() [3/3]
◆ operator[]() [1/12]
| SniperJSON & SniperJSON::operator[] |
( |
const std::string & | key | ) |
|
◆ operator[]() [2/12]
| SniperJSON & SniperJSON::operator[] |
( |
const std::string & | key | ) |
|
◆ operator[]() [3/12]
| SniperJSON & SniperJSON::operator[] |
( |
const std::string & | key | ) |
|
◆ operator[]() [4/12]
| const SniperJSON & SniperJSON::operator[] |
( |
const std::string & | key | ) |
const |
◆ operator[]() [5/12]
| const SniperJSON & SniperJSON::operator[] |
( |
const std::string & | key | ) |
const |
◆ operator[]() [6/12]
| const SniperJSON & SniperJSON::operator[] |
( |
const std::string & | key | ) |
const |
◆ operator[]() [7/12]
◆ operator[]() [8/12]
◆ operator[]() [9/12]
◆ operator[]() [10/12]
| const SniperJSON & SniperJSON::operator[] |
( |
int | index | ) |
const |
|
inline |
◆ operator[]() [11/12]
| const SniperJSON & SniperJSON::operator[] |
( |
int | index | ) |
const |
|
inline |
◆ operator[]() [12/12]
| const SniperJSON & SniperJSON::operator[] |
( |
int | index | ) |
const |
|
inline |
◆ push_back() [1/3]
| bool SniperJSON::push_back |
( |
const SniperJSON & | var | ) |
|
Definition at line 23 of file SniperJSON.cxx.
23 {
24 if ( m_type == 2 || m_type == 0 )
25 {
26 m_jvec.push_back( var );
27 m_type = 2;
28 return true;
29 }
30 return false;
31}
◆ push_back() [2/3]
| bool SniperJSON::push_back |
( |
const SniperJSON & | var | ) |
|
◆ push_back() [3/3]
| bool SniperJSON::push_back |
( |
const SniperJSON & | var | ) |
|
◆ reset() [1/3]
| void SniperJSON::reset |
( |
| ) |
|
Definition at line 44 of file SniperJSON.cxx.
44 {
45 m_type = 0;
46 m_jvar.clear();
47 m_jvec.clear();
48 m_jmap.clear();
49}
◆ reset() [2/3]
| void SniperJSON::reset |
( |
| ) |
|
◆ reset() [3/3]
| void SniperJSON::reset |
( |
| ) |
|
◆ size() [1/3]
| int SniperJSON::size |
( |
| ) |
const |
Definition at line 51 of file SniperJSON.cxx.
51 {
52 if ( m_type == 1 ) { return m_jmap.size(); }
53 else if ( m_type == 2 ) { return m_jvec.size(); }
54
55 return -1;
56}
◆ size() [2/3]
| int SniperJSON::size |
( |
| ) |
const |
◆ size() [3/3]
| int SniperJSON::size |
( |
| ) |
const |
◆ vec_begin() [1/3]
◆ vec_begin() [2/3]
◆ vec_begin() [3/3]
◆ vec_end() [1/3]
◆ vec_end() [2/3]
◆ vec_end() [3/3]
The documentation for this class was generated from the following files: