TkN 2.4
Toolkit for Nuclei
Loading...
Searching...
No Matches
tkensdf_level_rec.h
1/********************************************************************************
2 * Copyright (c) : Université de Lyon 1, CNRS/IN2P3, UMR5822, *
3 * IP2I, F-69622 Villeurbanne Cedex, France *
4 * Normandie Université, ENSICAEN, UNICAEN, CNRS/IN2P3, *
5 * LPC Caen, F-14000 Caen, France *
6 * Contibutor(s) : *
7 * Jérémie Dudouet jeremie.dudouet@cnrs.fr [2020] *
8 * Diego Gruyer diego.gruyer@cnrs.fr [2020] *
9 * *
10 * Licensed under the MIT License <http://opensource.org/licenses/MIT>. *
11 * SPDX-License-Identifier: MIT *
12 ********************************************************************************/
13
49
50#ifndef tkensdf_level_rec_H
51#define tkensdf_level_rec_H
52
53#include "tkensdf_record.h"
54#include "tkstring.h"
55#include "tkspin_parity.h"
56
57namespace tkn{
58
60
61public:
62
66
68 bool fJPi_tentative = false;
69 double fJ = 0;
70 bool fPi = true;
71
72 int flevelid = -1;
73
74public:
75
77 tkensdf_level_rec(const tkensdf_level_rec &_level_record) = default;
79
81 virtual bool set_record(const tkstring &_record) override;
83 virtual void analyse_record() override;
85 void analyse_continuation_record() override;
86
88 tkstring get_jpi_str(const tkstring &_record) const {return _record.substr(21,18);}
89
91 bool decode_jpi(const tkstring &_st);
92
93 const tkspin *get_J() const {return &fSpin;}
94 const tkparity *get_Pi() const {return &fParity;}
95
96 const tkstring &get_Jpi_str() const {return fJPi_str;}
97 const double &get_j() const {return fJ;}
98 const bool &get_pi() const {return fPi;}
99
100 void clear() override;
101 void print(std::ostream &) const override;
102
103private:
104
105};
106}
107
108#endif
void print(std::ostream &) const override
void analyse_continuation_record() override
analyse a continuation record
const bool & get_pi() const
tkstring get_jpi_str(const tkstring &_record) const
extract the JPi part
virtual void analyse_record() override
analyse the record content
const tkstring & get_Jpi_str() const
virtual bool set_record(const tkstring &_record) override
define the record from a string
const tkparity * get_Pi() const
const double & get_j() const
bool decode_jpi(const tkstring &_st)
decode the spin parity part
tkspin fSpin
spin parameters
tkensdf_level_rec(const tkensdf_level_rec &_level_record)=default
const tkspin * get_J() const
Nuclear excited state parity.
Nuclear excited state spin.
std::string with usefull tricks from TString (ROOT) and KVString (KaliVeda) and more....
Definition tkstring.h:31
tkstring substr(size_type __pos=0, size_type __n=npos) const
Inlines.
Definition tkstring.h:156
Definition tklog.cpp:16