14 #include <fmt/format.h>
21 {
"char",
"B" }, {
"unsigned char",
"b" }, {
"short",
"S" }, {
"unsigned short",
"s" },
22 {
"int",
"I" }, {
"unsigned int",
"i" }, {
"float",
"F" }, {
"double",
"D" },
23 {
"long long",
"L" }, {
"unsigned long long",
"l" }, {
"long",
"G" }, {
"unsigned long",
"g" },
27 std::optional<std::string> getLeafListForType(
const std::string_view&
typeName ) {
29 return ( it != typeMap.
end() ) ? std::optional<std::string>{ it->second } : std::nullopt;
37 : m_className( className ), m_branchName( branchName ), m_location( location ), m_algName( algName ) {
38 auto leafListTag = getLeafListForType(
m_className );
43 setBranchAddress = []( gsl::not_null<TBranch*> br,
const void** wrappedDataPtr ) {
44 br->SetAddress(
const_cast<void*
>( *wrappedDataPtr ) );
50 setBranchAddress = []( gsl::not_null<TBranch*> br,
const void** wrappedDataPtr ) {
51 br->SetAddress( wrappedDataPtr );
77 m_dataBuffer = baseWrapper ? baseWrapper->payload() : pObj.get();