msl 1.3.0
Loading...
Searching...
No Matches
SimpleRFPulse.h
Go to the documentation of this file.
1// Copyright 2025 Julien Lamy, ICube, Université de Strasbourg-CNRS.
2// Part of msl, distributed under the terms of the MIT license.
3
4#ifndef _24586826_eceb_491b_9fb0_6995bd97989a
5#define _24586826_eceb_491b_9fb0_6995bd97989a
6
7#include <string>
8
9#include <MrProtSrv/Domain/CoreNative/SeqLim.h>
10#include <MrProtSrv/Domain/MrProtData/MrProt/MrProt.h>
11#include <MrProtSrv/Domain/MrProtData/MrProt/SeqIF/SeqExpo.h>
12#include <MrProtSrv/Domain/MrProtData/MrProt/SeqIF/SeqExpoRFBlockInfo.h>
13
14#include "msl/NCOPair.h"
15#include "msl/RFPulse.h"
16
17namespace msl
18{
19
21namespace rf_pulses
22{
23
25template<typename TPulse>
27{
28public:
34 virtual ~SimpleRFPulse() = default;
35
37 Type type() const override;
38
41
43 double flipAngle() const override;
44
47
49 double initialPhase() const override;
50
53
55 double additionalPhase() const override;
56
59
61 long startTime() const override;
62
65
67 long duration() const override;
68
71
73 long samples() const override;
74
77
79 std::string ident() const override;
80
82 SimpleRFPulse<TPulse> & setIdent(std::string const & ident) override;
83
85 double gamma() const override;
86
88 MrProtocolData::SeqExpoRFInfo rfInfo() const override;
89
91 NLSStatus run(
92 MrProt & protocol, SeqLim & limits, SeqExpo & exports) override;
93
94protected:
95 TPulse _rf;
96 NCOPair _nco;
97 double _additionalPhase;
98};
99
100}
101
102}
103
104#include "SimpleRFPulse.txx"
105
106#endif // _24586826_eceb_491b_9fb0_6995bd97989a
Encapsulation of a pair of NCO objects, setting and resetting the frequency and the phase of the NCO ...
Definition NCOPair.h:26
Base class for RF pulses.
Definition RFPulse.h:14
Type
Type of pulse, i.e. its role in the sequence.
Definition RFPulse.h:18
RF pulse composed of a simple sRF_PULSE-derived object and an NCO.
Definition SimpleRFPulse.h:27
SimpleRFPulse< TPulse > & operator=(SimpleRFPulse< TPulse > &&)=default
SimpleRFPulse< TPulse > & operator=(SimpleRFPulse< TPulse > const &)=default
Type type() const override
Return the type of the RF pulse.
double flipAngle() const override
Return the flip angle (deg)
SimpleRFPulse< TPulse > & setAdditionalPhase(double additionalPhase) override
Set the additional phase of the RF pulse (deg)
SimpleRFPulse< TPulse > & setDuration(long duration) override
Set the duration of the RF pulse (µs)
long startTime() const override
Return the start time of the RF pulse (µs)
double gamma() const override
Return the gyromagnetic ratio of the current nucleus (MHz/T)
SimpleRFPulse< TPulse > & setIdent(std::string const &ident) override
Set the user-defined name of the RF pulse.
NLSStatus run(MrProt &protocol, SeqLim &limits, SeqExpo &exports) override
Run the RF pulse and the NCO.
long duration() const override
Return the duration of the RF pulse (µs)
SimpleRFPulse< TPulse > & setSamples(long samples) override
Set the number of discrete samples of the RF pulse.
SimpleRFPulse< TPulse > & setFlipAngle(double flipAngle) override
Set the flip angle (deg)
SimpleRFPulse< TPulse > & setInitialPhase(double initialPhase) override
Set the initial phase of the RF pulse (deg)
std::string ident() const override
Return the user-defined name of the RF pulse.
SimpleRFPulse(SimpleRFPulse< TPulse > const &)=default
double additionalPhase() const override
Return the additional phase of the RF pulse (deg)
MrProtocolData::SeqExpoRFInfo rfInfo() const override
Return the RF information for SAR computation.
SimpleRFPulse< TPulse > & setType(Type type) override
Set the type of the RF pulse.
SimpleRFPulse< TPulse > & setStartTime(long startTime) override
Set the start time of the RF pulse (µs)
SimpleRFPulse(SimpleRFPulse< TPulse > &&)=default
double initialPhase() const override
Return the initial phase of the RF pulse (deg)
long samples() const override
Return the number of discrete samples of the RF pulse.
virtual ~SimpleRFPulse()=default
Top-level namespace of the msl library.
Definition acceleration.h:17