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

Namespaces

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

Classes

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

Concepts

concept  Arithmetic

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 XYZVectorValueErrorD
using UcesbMapUType = std::underlying_type<UcesbMap>::type

Enumerations

enum class  WriteMode : uint8_t { NEW , recreate , update , read }
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... Containers>
void ClearAll (Containers &... containers)
template<typename... Containers>
void ResizeAll (std::size_t n, Containers &... containers)
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>
auto operator> (ValueError< DataType > &left, const ValueError< DataType > &right) -> bool
template<typename DataType>
auto operator< (ValueError< DataType > &left, const ValueError< DataType > &right) -> bool
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 302 of file R3BIOConnector.h.

◆ InputMapConnector

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

Definition at line 296 of file R3BIOConnector.h.

◆ InputVectorConnector

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

Definition at line 290 of file R3BIOConnector.h.

◆ MinMaxValueD

using R3B::MinMaxValueD = MinMaxValue<double>

Definition at line 23 of file R3BMinMaxValue.h.

◆ MinMaxValueF

Definition at line 24 of file R3BMinMaxValue.h.

◆ MinMaxValueI

Definition at line 25 of file R3BMinMaxValue.h.

◆ OutputHashConnector

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

Definition at line 305 of file R3BIOConnector.h.

◆ OutputMapConnector

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

Definition at line 299 of file R3BIOConnector.h.

◆ OutputVectorConnector

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

Definition at line 293 of file R3BIOConnector.h.

◆ RootTypes

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

Definition at line 47 of file R3BShared.h.

◆ UcesbMapUType

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

Definition at line 43 of file R3BUcesbMappingFlag.h.

◆ unique_rootfile

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

Definition at line 89 of file R3BShared.h.

◆ ValueErrorD

using R3B::ValueErrorD = ValueError<double>

Definition at line 144 of file R3BValueError.h.

◆ ValueErrorF

using R3B::ValueErrorF = ValueError<float>

Definition at line 145 of file R3BValueError.h.

◆ ValueErrorI

Definition at line 146 of file R3BValueError.h.

◆ XYZVectorValueErrorD

Initial value:
ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<ValueErrorD>, ROOT::Math::DefaultCoordinateSystemTag>

Definition at line 147 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 111 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 28 of file R3BUcesbMappingFlag.h.

◆ WriteMode

enum class R3B::WriteMode : uint8_t
strong
Enumerator
NEW 
recreate 
update 
read 

Definition at line 38 of file R3BNeulandApp.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.

◆ ClearAll()

template<typename... Containers>
void R3B::ClearAll ( Containers &... containers)
inline

Definition at line 232 of file R3BShared.h.

◆ FastExp()

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

Definition at line 170 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 34 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 223 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 103 of file R3BShared.h.

◆ IndexToSide()

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

Definition at line 128 of file R3BShared.h.

◆ make_hist()

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

Definition at line 69 of file R3BShared.h.

◆ make_rootfile()

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

Definition at line 93 of file R3BShared.h.

◆ operator&()

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

Definition at line 52 of file R3BUcesbMappingFlag.h.

◆ operator&=()

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

Definition at line 58 of file R3BUcesbMappingFlag.h.

◆ operator*()

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

Definition at line 151 of file R3BValueError.h.

◆ operator+()

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

Definition at line 170 of file R3BValueError.h.

◆ operator+=()

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

Definition at line 195 of file R3BValueError.h.

◆ operator-()

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

Definition at line 179 of file R3BValueError.h.

◆ operator-=()

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

Definition at line 188 of file R3BValueError.h.

◆ operator/()

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

Definition at line 160 of file R3BValueError.h.

◆ operator<()

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

Definition at line 208 of file R3BValueError.h.

◆ operator<<()

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

Definition at line 65 of file R3BUcesbMappingFlag.h.

◆ operator>()

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

Definition at line 202 of file R3BValueError.h.

◆ operator|()

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

Definition at line 45 of file R3BUcesbMappingFlag.h.

◆ operator|=()

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

Definition at line 50 of file R3BUcesbMappingFlag.h.

◆ operator~()

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

Definition at line 60 of file R3BUcesbMappingFlag.h.

◆ ResizeAll()

template<typename... Containers>
void R3B::ResizeAll ( std::size_t n,
Containers &... containers )
inline

Definition at line 238 of file R3BShared.h.

◆ root_owned()

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

Definition at line 59 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 28 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 214 of file R3BValueError.h.

◆ toIndex()

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

Definition at line 118 of file R3BShared.h.

◆ UcesbMap2String()

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

Definition at line 71 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 12 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 168 of file R3BShared.h.

◆ is_based_on

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

Definition at line 50 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 53 of file R3BShared.h.

◆ is_root_owned

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

Definition at line 56 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.