R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B Namespace Reference

Namespaces

namespace  Digitizing
 
namespace  Millepede
 
namespace  Neuland
 Simulation of NeuLAND Bar/Paddle.
 
namespace  testing
 

Classes

class  CanvasElement
 
class  DataMonitor
 
class  DataMonitorCanvas
 
struct  DoubleEdgeSignal
 
struct  FTChannel2TimeRelation
 
class  InputConnector
 
class  InputTCAConnector
 
struct  is_bool
 
struct  is_bool< bool >
 
struct  IsString
 
struct  IsString< T, std::void_t< decltype(std::string_view{ std::declval< T >() })> >
 
class  logic_error
 
class  LRPair
 
class  Map2CalPar
 
struct  MapBarSignal
 
class  Mille
 
class  MilleBuffer
 
struct  MilleDataPoint
 
struct  MinMaxValue
 
class  Option
 
class  OptionConcept
 
class  OptionHandle
 
class  OutputConnector
 
struct  PaddleTamexMappedData
 
struct  PaddleTamexTrigMappedData
 
class  PDGConverter
 
class  ProgramOptions
 
class  runtime_error
 
struct  SingleEdgeSignal
 
class  SteerWriter
 
class  TCalVFTXModulePar
 
struct  TFileDeleter
 
struct  TypeCollection
 
class  UcesbServerLauncher
 
class  UcesbSource
 
class  UcesbStructInfo
 
struct  ValueError
 

Typedefs

using MinMaxValueD = MinMaxValue<double>
 
using MinMaxValueF = MinMaxValue<float>
 
using MinMaxValueI = MinMaxValue<int>
 
template<typename ElementType>
using InputVectorConnector = InputConnector<std::vector<ElementType>>
 
template<typename ElementType>
using OutputVectorConnector = OutputConnector<std::vector<ElementType>>
 
template<typename KeyType, typename ValueType>
using InputMapConnector = InputConnector<std::map<KeyType, ValueType>>
 
template<typename KeyType, typename ValueType>
using OutputMapConnector = OutputConnector<std::map<KeyType, ValueType>>
 
template<typename KeyType, typename ValueType>
using InputHashConnector = InputConnector<std::unordered_map<KeyType, ValueType>>
 
template<typename KeyType, typename ValueType>
using OutputHashConnector = OutputConnector<std::unordered_map<KeyType, ValueType>>
 
using RootTypes = TypeCollection<TF1, TH1, TTree>
 
using unique_rootfile = std::unique_ptr<TFile, TFileDeleter>
 
using ValueErrorD = ValueError<double>
 
using ValueErrorF = ValueError<float>
 
using ValueErrorI = ValueError<int>
 
using UcesbMapUType = std::underlying_type<UcesbMap>::type
 

Enumerations

enum class  FTType : uint8_t {
  leftleading , rightleading , lefttrailing , righttrailing ,
  trigger
}
 
enum class  Side : bool { left , right }
 
enum class  UcesbMap : uint32_t {
  zero = 0x0000U , match = EXT_DATA_ITEM_MAP_MATCH , no_dest = EXT_DATA_ITEM_MAP_NO_DEST , not_found = EXT_DATA_ITEM_MAP_NOT_FOUND ,
  type_mismatch = EXT_DATA_ITEM_MAP_TYPE_MISMATCH , ctrl_mismatch = EXT_DATA_ITEM_MAP_CTRL_MISMATCH , array_fewer = EXT_DATA_ITEM_MAP_ARRAY_FEWER , array_more = EXT_DATA_ITEM_MAP_ARRAY_MORE ,
  not_done = EXT_DATA_ITEM_MAP_NOT_DONE , ok = EXT_DATA_ITEM_MAP_OK , ok_no_dest = EXT_DATA_ITEM_MAP_OK_NO_DEST
}
 

Functions

template<typename DataType>
void to_json (nlohmann::ordered_json &json_obj, const MinMaxValue< DataType > &value)
 
template<typename DataType>
void from_json (const nlohmann::ordered_json &json_obj, MinMaxValue< DataType > &value)
 
template<typename RootType, typename... Args>
auto root_owned (Args &&... args)
 
template<typename Hist, typename... Args>
auto make_hist (Args &&... args)
 
template<typename... Args>
auto make_rootfile (Args &&... args)
 
template<typename DataType, std::size_t size>
constexpr std::size_t GetSize (const DataType(&)[size])
 
constexpr auto toIndex (Side side) -> size_t
 
constexpr auto IndexToSide (size_t index) -> Side
 
template<uint8_t iterations = DEFAULT_ITERATION>
auto FastExp (const float val) -> float
 
auto GetParentDir (std::string_view filename) -> fs::path
 
auto GetFilesFromRegex (std::string_view filename_regex) -> std::vector< std::string >
 
template<typename DataType>
auto operator* (ValueError< DataType > left, ValueError< DataType > right) -> ValueError< DataType >
 
template<typename DataType>
auto operator/ (ValueError< DataType > numerator, ValueError< DataType > denominator) -> ValueError< DataType >
 
template<typename DataType>
auto operator+ (ValueError< DataType > left, ValueError< DataType > right) -> ValueError< DataType >
 
template<typename DataType>
auto operator- (ValueError< DataType > left, ValueError< DataType > right) -> ValueError< DataType >
 
template<typename DataType>
auto operator-= (ValueError< DataType > &left, const ValueError< DataType > &right) -> ValueError< DataType > &
 
template<typename DataType>
auto operator+= (ValueError< DataType > &left, const ValueError< DataType > &right) -> ValueError< DataType > &
 
template<typename DataType>
void to_json (nlohmann::ordered_json &json_obj, const ValueError< DataType > &value)
 
template<typename DataType>
void from_json (const nlohmann::ordered_json &json_obj, ValueError< DataType > &value)
 
auto operator| (const UcesbMap &left, const UcesbMap &right) -> UcesbMap
 
void operator|= (UcesbMap &left, const UcesbMap &right)
 
auto operator& (const UcesbMap &left, const UcesbMap &right) -> UcesbMap
 
void operator&= (UcesbMap &left, const UcesbMap &right)
 
auto operator~ (const UcesbMap &map) -> UcesbMap
 
auto operator<< (std::ostream &ostream, const UcesbMap &map) -> std::ostream &
 
auto UcesbMap2String (UcesbMap map) -> std::string
 
auto check_struct_item_requried (std::string_view item_name, UcesbSource *source) -> R3BReader *
 

Variables

constexpr auto DEFAULT_BUFFER_SIZE = std::size_t{ 10000 }
 
template<typename T>
constexpr bool IsString_v = IsString<T>::value
 
constexpr auto DEFAULT_HIST_MONITOR_DIR = "DataMonitor"
 
constexpr auto MASS_POS = 10
 
constexpr auto ATOMIC_POS = 10000
 
constexpr auto PDG_FULL_POS = 10000000
 
template<typename Type, typename>
constexpr bool is_based_on = false
 
template<typename Type, typename... BaseTypes>
constexpr bool is_based_on< Type, TypeCollection< BaseTypes... > > = (std::is_base_of_v<BaseTypes, Type> || ...)
 
template<typename Type>
constexpr bool is_root_owned = is_based_on<Type, RootTypes>
 
static const uint8_t DEFAULT_ITERATION = 8U
 

Typedef Documentation

◆ InputHashConnector

template<typename KeyType, typename ValueType>
using R3B::InputHashConnector = InputConnector<std::unordered_map<KeyType, ValueType>>

Definition at line 278 of file R3BIOConnector.h.

◆ InputMapConnector

template<typename KeyType, typename ValueType>
using R3B::InputMapConnector = InputConnector<std::map<KeyType, ValueType>>

Definition at line 272 of file R3BIOConnector.h.

◆ InputVectorConnector

template<typename ElementType>
using R3B::InputVectorConnector = InputConnector<std::vector<ElementType>>

Definition at line 266 of file R3BIOConnector.h.

◆ MinMaxValueD

using R3B::MinMaxValueD = MinMaxValue<double>

Definition at line 22 of file R3BMinMaxValue.h.

◆ MinMaxValueF

Definition at line 23 of file R3BMinMaxValue.h.

◆ MinMaxValueI

Definition at line 24 of file R3BMinMaxValue.h.

◆ OutputHashConnector

template<typename KeyType, typename ValueType>
using R3B::OutputHashConnector = OutputConnector<std::unordered_map<KeyType, ValueType>>

Definition at line 281 of file R3BIOConnector.h.

◆ OutputMapConnector

template<typename KeyType, typename ValueType>
using R3B::OutputMapConnector = OutputConnector<std::map<KeyType, ValueType>>

Definition at line 275 of file R3BIOConnector.h.

◆ OutputVectorConnector

template<typename ElementType>
using R3B::OutputVectorConnector = OutputConnector<std::vector<ElementType>>

Definition at line 269 of file R3BIOConnector.h.

◆ RootTypes

using R3B::RootTypes = TypeCollection<TF1, TH1, TTree>

Definition at line 48 of file R3BShared.h.

◆ UcesbMapUType

using R3B::UcesbMapUType = std::underlying_type<UcesbMap>::type

Definition at line 40 of file R3BUcesbMappingFlag.h.

◆ unique_rootfile

using R3B::unique_rootfile = std::unique_ptr<TFile, TFileDeleter>

Definition at line 90 of file R3BShared.h.

◆ ValueErrorD

using R3B::ValueErrorD = ValueError<double>

Definition at line 83 of file R3BValueError.h.

◆ ValueErrorF

using R3B::ValueErrorF = ValueError<float>

Definition at line 84 of file R3BValueError.h.

◆ ValueErrorI

Definition at line 85 of file R3BValueError.h.

Enumeration Type Documentation

◆ FTType

enum class R3B::FTType : uint8_t
strong
Enumerator
leftleading 
rightleading 
lefttrailing 
righttrailing 
trigger 

Definition at line 25 of file R3BNeulandMapToCalPar.h.

◆ Side

enum class R3B::Side : bool
strong
Enumerator
left 
right 

Definition at line 112 of file R3BShared.h.

◆ UcesbMap

enum class R3B::UcesbMap : uint32_t
strong
Enumerator
zero 
match 
no_dest 
not_found 
type_mismatch 
ctrl_mismatch 
array_fewer 
array_more 
not_done 
ok 
ok_no_dest 

Definition at line 25 of file R3BUcesbMappingFlag.h.

Function Documentation

◆ check_struct_item_requried()

auto R3B::check_struct_item_requried ( std::string_view item_name,
UcesbSource * source ) -> R3BReader*
inline

Definition at line 29 of file R3BUcesbStructInfo.cxx.

◆ FastExp()

template<uint8_t iterations = DEFAULT_ITERATION>
auto R3B::FastExp ( const float val) -> float

Definition at line 171 of file R3BShared.h.

◆ from_json() [1/2]

template<typename DataType>
void R3B::from_json ( const nlohmann::ordered_json & json_obj,
MinMaxValue< DataType > & value )

Definition at line 33 of file R3BMinMaxValue.h.

◆ from_json() [2/2]

template<typename DataType>
void R3B::from_json ( const nlohmann::ordered_json & json_obj,
ValueError< DataType > & value )

Definition at line 148 of file R3BValueError.h.

◆ GetFilesFromRegex()

auto R3B::GetFilesFromRegex ( std::string_view filename_regex) -> std::vector<std::string>
inline

Definition at line 204 of file R3BShared.h.

◆ GetParentDir()

auto R3B::GetParentDir ( std::string_view filename) -> fs::path
inline

Definition at line 184 of file R3BShared.h.

◆ GetSize()

template<typename DataType, std::size_t size>
std::size_t R3B::GetSize ( const DataType(&)[size])
constexpr

Definition at line 104 of file R3BShared.h.

◆ IndexToSide()

auto R3B::IndexToSide ( size_t index) -> Side
constexpr

Definition at line 129 of file R3BShared.h.

◆ make_hist()

template<typename Hist, typename... Args>
auto R3B::make_hist ( Args &&... args)
inline

Definition at line 70 of file R3BShared.h.

◆ make_rootfile()

template<typename... Args>
auto R3B::make_rootfile ( Args &&... args)
inline

Definition at line 94 of file R3BShared.h.

◆ operator&()

auto R3B::operator& ( const UcesbMap & left,
const UcesbMap & right ) -> UcesbMap
inline

Definition at line 49 of file R3BUcesbMappingFlag.h.

◆ operator&=()

void R3B::operator&= ( UcesbMap & left,
const UcesbMap & right )
inline

Definition at line 55 of file R3BUcesbMappingFlag.h.

◆ operator*()

template<typename DataType>
auto R3B::operator* ( ValueError< DataType > left,
ValueError< DataType > right ) -> ValueError<DataType>

Definition at line 88 of file R3BValueError.h.

◆ operator+()

template<typename DataType>
auto R3B::operator+ ( ValueError< DataType > left,
ValueError< DataType > right ) -> ValueError<DataType>

Definition at line 107 of file R3BValueError.h.

◆ operator+=()

template<typename DataType>
auto R3B::operator+= ( ValueError< DataType > & left,
const ValueError< DataType > & right ) -> ValueError<DataType>&

Definition at line 132 of file R3BValueError.h.

◆ operator-()

template<typename DataType>
auto R3B::operator- ( ValueError< DataType > left,
ValueError< DataType > right ) -> ValueError<DataType>

Definition at line 116 of file R3BValueError.h.

◆ operator-=()

template<typename DataType>
auto R3B::operator-= ( ValueError< DataType > & left,
const ValueError< DataType > & right ) -> ValueError<DataType>&

Definition at line 125 of file R3BValueError.h.

◆ operator/()

template<typename DataType>
auto R3B::operator/ ( ValueError< DataType > numerator,
ValueError< DataType > denominator ) -> ValueError<DataType>

Definition at line 97 of file R3BValueError.h.

◆ operator<<()

auto R3B::operator<< ( std::ostream & ostream,
const UcesbMap & map ) -> std::ostream&
inline

Definition at line 62 of file R3BUcesbMappingFlag.h.

◆ operator|()

auto R3B::operator| ( const UcesbMap & left,
const UcesbMap & right ) -> UcesbMap
inline

Definition at line 42 of file R3BUcesbMappingFlag.h.

◆ operator|=()

void R3B::operator|= ( UcesbMap & left,
const UcesbMap & right )
inline

Definition at line 47 of file R3BUcesbMappingFlag.h.

◆ operator~()

auto R3B::operator~ ( const UcesbMap & map) -> UcesbMap
inline

Definition at line 57 of file R3BUcesbMappingFlag.h.

◆ root_owned()

template<typename RootType, typename... Args>
auto R3B::root_owned ( Args &&... args)
inline

Definition at line 60 of file R3BShared.h.

◆ to_json() [1/2]

template<typename DataType>
void R3B::to_json ( nlohmann::ordered_json & json_obj,
const MinMaxValue< DataType > & value )

Definition at line 27 of file R3BMinMaxValue.h.

◆ to_json() [2/2]

template<typename DataType>
void R3B::to_json ( nlohmann::ordered_json & json_obj,
const ValueError< DataType > & value )

Definition at line 139 of file R3BValueError.h.

◆ toIndex()

auto R3B::toIndex ( Side side) -> size_t
constexpr

Definition at line 119 of file R3BShared.h.

◆ UcesbMap2String()

auto R3B::UcesbMap2String ( UcesbMap map) -> std::string
inline

Definition at line 68 of file R3BUcesbMappingFlag.h.

Variable Documentation

◆ ATOMIC_POS

auto R3B::ATOMIC_POS = 10000
constexpr

Definition at line 16 of file R3BPDGConverter.cxx.

◆ DEFAULT_BUFFER_SIZE

auto R3B::DEFAULT_BUFFER_SIZE = std::size_t{ 10000 }
constexpr

Definition at line 11 of file Mille.h.

◆ DEFAULT_HIST_MONITOR_DIR

auto R3B::DEFAULT_HIST_MONITOR_DIR = "DataMonitor"
constexpr

Definition at line 36 of file R3BDataMonitor.h.

◆ DEFAULT_ITERATION

const uint8_t R3B::DEFAULT_ITERATION = 8U
static

Definition at line 169 of file R3BShared.h.

◆ is_based_on

template<typename Type, typename>
bool R3B::is_based_on = false
inlineconstexpr

Definition at line 51 of file R3BShared.h.

◆ is_based_on< Type, TypeCollection< BaseTypes... > >

template<typename Type, typename... BaseTypes>
bool R3B::is_based_on< Type, TypeCollection< BaseTypes... > > = (std::is_base_of_v<BaseTypes, Type> || ...)
inlineconstexpr

Definition at line 54 of file R3BShared.h.

◆ is_root_owned

template<typename Type>
bool R3B::is_root_owned = is_based_on<Type, RootTypes>
inlineconstexpr

Definition at line 57 of file R3BShared.h.

◆ IsString_v

template<typename T>
bool R3B::IsString_v = IsString<T>::value
constexpr

Definition at line 45 of file R3BProgramOptions.h.

◆ MASS_POS

auto R3B::MASS_POS = 10
constexpr

Definition at line 15 of file R3BPDGConverter.cxx.

◆ PDG_FULL_POS

auto R3B::PDG_FULL_POS = 10000000
constexpr

Definition at line 17 of file R3BPDGConverter.cxx.