ndmspc
0.20250128.0
GitlabTrack.cxx
1
#include <TString.h>
2
#include <TRandom.h>
3
#include <TMath.h>
4
#include "GitlabTrack.h"
5
7
ClassImp(
Ndmspc::Gitlab::Track
);
9
10
namespace
Ndmspc {
11
namespace
Gitlab {
12
13
Track::Track
() : TObject(), fState(), fAuthorID(0), fProjectID(0)
14
{
18
}
19
20
Track::~Track
()
21
{
25
}
26
27
void
Track::BuildRandom
()
28
{
32
}
33
34
void
Track::Print
(Option_t * option)
const
35
{
39
TString opt = option;
40
41
Printf(
"[%s] state=%s author_id=%d (%s) project_id=%d (%s) milestone=%d (%s)"
, opt.Data(),
fState
.data(),
fAuthorID
,
42
fAuthor.c_str(),
fProjectID
, fProject.c_str(),
fMilestoneID
, fMilestone.c_str());
43
}
44
45
void
Track::Clear
(Option_t *)
46
{
50
51
fState
=
""
;
52
fAuthorID
= 0;
53
fAuthor =
""
;
54
fProjectID
= 0;
55
fProject =
""
;
56
fMilestoneID
= 0;
57
fMilestone =
""
;
58
}
59
60
}
// namespace Gitlab
61
}
// namespace Ndmspc
Ndmspc::Gitlab::Track
Track object.
Definition:
GitlabTrack.h:15
Ndmspc::Gitlab::Track::~Track
virtual ~Track()
Definition:
GitlabTrack.cxx:20
Ndmspc::Gitlab::Track::fAuthorID
Int_t fAuthorID
Author id.
Definition:
GitlabTrack.h:99
Ndmspc::Gitlab::Track::Track
Track()
Definition:
GitlabTrack.cxx:13
Ndmspc::Gitlab::Track::Print
virtual void Print(Option_t *option="") const
Definition:
GitlabTrack.cxx:34
Ndmspc::Gitlab::Track::fMilestoneID
Int_t fMilestoneID
! Project name
Definition:
GitlabTrack.h:103
Ndmspc::Gitlab::Track::BuildRandom
void BuildRandom()
Definition:
GitlabTrack.cxx:27
Ndmspc::Gitlab::Track::fProjectID
Int_t fProjectID
! Author name
Definition:
GitlabTrack.h:101
Ndmspc::Gitlab::Track::Clear
virtual void Clear(Option_t *option="")
Definition:
GitlabTrack.cxx:45
Ndmspc::Gitlab::Track::fState
std::string fState
State of track.
Definition:
GitlabTrack.h:98
Event
Gitlab
GitlabTrack.cxx
Generated by
1.9.1