BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnCentralityClass.h
Go to the documentation of this file.
1/** \file BmnCentralityClass.h
2 ** \author Nikolay Karpushkin
3 ** \date 07.03.2024
4 **/
5
6#ifndef BMNCENTRALITYCLASS_H
7#define BMNCENTRALITYCLASS_H
8
9#include "Rtypes.h" // Include necessary ROOT header
10
11#include <cstdint> // Include necessary headers
12
14{
15 public:
16 enum class Method
17 {
19 };
20
21 BmnCentralityClass(); // Constructor
22 BmnCentralityClass(int index, float probability, Method method); // Constructor with parameters
23 BmnCentralityClass(const BmnCentralityClass& other); // Copy constructor
24 BmnCentralityClass(BmnCentralityClass&& other); // Move constructor
25 BmnCentralityClass& operator=(const BmnCentralityClass& other); // Copy assignment operator
26 BmnCentralityClass& operator=(BmnCentralityClass&& other); // Move assignment operator
27 bool operator<(const BmnCentralityClass& other) const;
28
29 virtual ~BmnCentralityClass(); // Destructor
30
31 // Getters and Setters for private members
32 int GetIndex() const;
33 void SetIndex(int index);
34 float GetProbability() const;
38
39 virtual const char* GetClassName() { return "BmnCentralityClass"; } // Virtual method
40 void reset(); // Reset method
41
42 private:
43 int index;
44 float probability;
46
48};
49
50#endif /* BMNCENTRALITYCLASS_H */
#define ClassDef(name, id)
virtual const char * GetClassName()
BmnCentralityClass & operator=(const BmnCentralityClass &other)
BmnCentralityClass(int index, float probability, Method method)
BmnCentralityClass(BmnCentralityClass &&other)
bool operator<(const BmnCentralityClass &other) const
void SetMethod(Method method)
void SetIndex(int index)
void SetProbability(float probability)
int GetIndex() const
virtual ~BmnCentralityClass()
BmnCentralityClass(const BmnCentralityClass &other)
Method GetMethod() const
BmnCentralityClass & operator=(BmnCentralityClass &&other)
float GetProbability() const