ndmspc  0.20250128.0
Ndmspc::Gitlab::Event Class Reference

Event object. More...

#include <GitlabEvent.h>

Inheritance diagram for Ndmspc::Gitlab::Event:

Public Member Functions

 Event ()
 
 Event (Long64_t id)
 
virtual ~Event ()
 
Long64_t GetID () const
 Event ID. More...
 
TDatime GetDateTime () const
 Event date and time. More...
 
void SetID (Long64_t id)
 
void SetTimeDate (Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec)
 
Long64_t GetNIssues () const
 
TrackGetIssue (Long64_t id)
 
TrackAddIssue ()
 
Long64_t GetNMergeRequests () const
 
TrackGetMergeRequest (Long64_t id)
 
TrackAddMergeRequest ()
 
TH1S * GetListOfAuthors () const
 Returns List of authors as TAxis. More...
 
TH1S * GetListOfProjects () const
 Returns List of Projects as TAxis. More...
 
TH1S * GetListOfMilestones () const
 
void ShrinkMappingHistograms (bool verbose=true)
 
bool FillGitlabFromJson (std::string issues, std::string mergrerequests)
 
bool FillIssuesFromJson (const json root)
 
bool FillMergeRequestsFromJson (const json root)
 
virtual void Print (Option_t *option="") const
 
virtual void Clear (Option_t *option="")
 

Private Member Functions

 Event (const Event &)
 ! List of milestones in current event More...
 
Eventoperator= (const Event &)
 not implemented
 
std::string ParseProjectName (std::string in, char d='!') const
 not implemented More...
 
void FillAuthorProjectAxis (std::string author, std::string project)
 
void ShrinkHistogram (const char *name, TH1 *h, bool verbose)
 

Private Attributes

Long64_t fID
 ID of event.
 
TDatime fDateTime
 Time of event.
 
Int_t fNIssues
 Number of Issues.
 
Int_t fNMergeRequests
 Number of MergeRequests.
 
TClonesArray * fIssues
 Array with all issues.
 
TClonesArray * fMergeRequests
 Array with all merge requests.
 
TH1S * fAuthors {nullptr}
 
TH1S * fProjects {nullptr}
 ! List of authors in current event
 
TH1S * fMilestones {nullptr}
 ! List of projects in current event
 

Detailed Description

Event object.

Author
Martin Vala mvala.nosp@m.@cer.nosp@m.n.ch

Definition at line 21 of file GitlabEvent.h.

Constructor & Destructor Documentation

◆ Event() [1/3]

Ndmspc::Gitlab::Event::Event ( )

Default constructor

Definition at line 14 of file GitlabEvent.cxx.

◆ Event() [2/3]

Ndmspc::Gitlab::Event::Event ( Long64_t  id)

A constructor

Definition at line 21 of file GitlabEvent.cxx.

References fIssues, fMergeRequests, fMilestones, and fProjects.

◆ ~Event()

Ndmspc::Gitlab::Event::~Event ( )
virtual

A destructor

Definition at line 35 of file GitlabEvent.cxx.

References fIssues, fMergeRequests, fMilestones, and fProjects.

◆ Event() [3/3]

Ndmspc::Gitlab::Event::Event ( const Event )
private

! List of milestones in current event

Copy constructor

Member Function Documentation

◆ AddIssue()

Track * Ndmspc::Gitlab::Event::AddIssue ( )

Adds Issue to event

Definition at line 48 of file GitlabEvent.cxx.

References fIssues, and fNIssues.

Referenced by FillIssuesFromJson().

◆ AddMergeRequest()

Track * Ndmspc::Gitlab::Event::AddMergeRequest ( )

Adds Merge requests to event

Definition at line 56 of file GitlabEvent.cxx.

References fMergeRequests, and fNMergeRequests.

Referenced by FillMergeRequestsFromJson().

◆ Clear()

void Ndmspc::Gitlab::Event::Clear ( Option_t *  option = "")
virtual

Reseting event to default values and clear all tracks

Definition at line 189 of file GitlabEvent.cxx.

References fID, fIssues, fMergeRequests, fNIssues, and fNMergeRequests.

◆ FillGitlabFromJson()

bool Ndmspc::Gitlab::Event::FillGitlabFromJson ( std::string  issues,
std::string  mergrerequests 
)

Import gitlab info from json input

Definition at line 64 of file GitlabEvent.cxx.

References FillIssuesFromJson(), and FillMergeRequestsFromJson().

◆ FillIssuesFromJson()

◆ FillMergeRequestsFromJson()

◆ GetDateTime()

TDatime Ndmspc::Gitlab::Event::GetDateTime ( ) const
inline

Event date and time.

Returns
date and time

Definition at line 87 of file GitlabEvent.h.

References fDateTime.

◆ GetID()

Long64_t Ndmspc::Gitlab::Event::GetID ( ) const
inline

Event ID.

Returns
event ID

Definition at line 86 of file GitlabEvent.h.

References fID.

◆ GetIssue()

Track * Ndmspc::Gitlab::Event::GetIssue ( Long64_t  id)
inline
Parameters
idTrack ID
Returns
Track with id

Definition at line 93 of file GitlabEvent.h.

References fIssues.

◆ GetListOfAuthors()

TAxis Ndmspc::Gitlab::Event::GetListOfAuthors ( ) const
inline

Returns List of authors as TAxis.

Returns
Axis object

Definition at line 100 of file GitlabEvent.h.

◆ GetListOfProjects()

TAxis Ndmspc::Gitlab::Event::GetListOfProjects ( ) const
inline

Returns List of Projects as TAxis.

Returns
Axis object

Definition at line 101 of file GitlabEvent.h.

References fProjects.

◆ GetMergeRequest()

Track * Ndmspc::Gitlab::Event::GetMergeRequest ( Long64_t  id)
inline
Parameters
idTrack ID
Returns
Track with id

Definition at line 97 of file GitlabEvent.h.

References fMergeRequests.

◆ GetNIssues()

Long64_t Ndmspc::Gitlab::Event::GetNIssues ( ) const
inline
Returns
number of tracks

Definition at line 92 of file GitlabEvent.h.

References fNIssues.

◆ GetNMergeRequests()

Long64_t Ndmspc::Gitlab::Event::GetNMergeRequests ( ) const
inline
Returns
number of tracks

Definition at line 96 of file GitlabEvent.h.

References fNMergeRequests.

◆ ParseProjectName()

std::string Ndmspc::Gitlab::Event::ParseProjectName ( std::string  in,
char  d = '!' 
) const
private

not implemented

Returns
Parsed project name

Parse project name

Definition at line 211 of file GitlabEvent.cxx.

Referenced by FillIssuesFromJson(), and FillMergeRequestsFromJson().

◆ Print()

void Ndmspc::Gitlab::Event::Print ( Option_t *  option = "") const
virtual

Printing event info

Definition at line 160 of file GitlabEvent.cxx.

References fID, fNIssues, and fNMergeRequests.

◆ SetID()

void Ndmspc::Gitlab::Event::SetID ( Long64_t  id)
inline
Parameters
idEvent ID

Sets event ID

Definition at line 89 of file GitlabEvent.h.

References fID.

◆ SetTimeDate()

void Ndmspc::Gitlab::Event::SetTimeDate ( Int_t  year,
Int_t  month,
Int_t  day,
Int_t  hour,
Int_t  min,
Int_t  sec 
)
Parameters
yearYear of event
monthMonth of event
dayDay of event
hourHour of event
minMinute of event
secSecond of event

Sets Date and time of event

Sets Date and time of event

Definition at line 203 of file GitlabEvent.cxx.

References fDateTime.

◆ ShrinkMappingHistograms()

void Ndmspc::Gitlab::Event::ShrinkMappingHistograms ( bool  verbose = true)

Shrink mapping histograms

Definition at line 179 of file GitlabEvent.cxx.

References fMilestones, and fProjects.


The documentation for this class was generated from the following files: