GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TDetectorInformation.h
Go to the documentation of this file.
1#ifndef TDETECTORINFORMATION_H
2#define TDETECTORINFORMATION_H
3
4#include <iostream>
5
6#include "TObject.h"
7
9
10/** \addtogroup Sorting
11 * @{
12 */
13
14/////////////////////////////////////////////////////////////////
15///
16/// \class TDetectorInformation
17/// Class containing setup specific detector information.
18///
19/////////////////////////////////////////////////////////////////
20
21class TDetectorInformation : public TObject {
22public:
26 TDetectorInformation& operator=(const TDetectorInformation&) = default;
27 TDetectorInformation& operator=(TDetectorInformation&&) noexcept = default;
29
30 virtual void Set() {}; ///< Set the detector information based on the available TChannels
31 virtual TEventBuildingLoop::EBuildMode BuildMode() const { return TEventBuildingLoop::EBuildMode::kDefault; } ///< Select build mode based on available detectors
32
33 void Print(Option_t* = "") const override { std::cout << "Default detector information, i.e. none" << std::endl; };
34 void Clear(Option_t* = "") override {};
35
36 /// \cond CLASSIMP
37 ClassDefOverride(TDetectorInformation, 1) // NOLINT(readability-else-after-return)
38 /// \endcond
39};
40/*! @} */
41#endif
virtual TEventBuildingLoop::EBuildMode BuildMode() const
Set the detector information based on the available TChannels.
void Print(Option_t *="") const override
TDetectorInformation(const TDetectorInformation &)=default
TDetectorInformation(TDetectorInformation &&) noexcept=default
TDetectorInformation()=default
void Clear(Option_t *="") override