11#ifndef o2_framework_AnalysisHelpers_H_DEFINED
12#define o2_framework_AnalysisHelpers_H_DEFINED
37 std::shared_ptr<arrow::DataType>
type = [](
IndexKind kind) -> std::shared_ptr<arrow::DataType> {
41 return arrow::int32();
43 return arrow::fixed_size_list(arrow::int32(), 2);
45 return arrow::list(arrow::int32());
53 return (this->label ==
other.label) && (this->columnLabel ==
other.columnLabel) && (this->kind ==
other.kind) && (this->pos ==
other.pos);
56 std::shared_ptr<arrow::Field>
field()
const
63 static std::vector<framework::IndexColumnBuilder>
makeBuilders(std::vector<std::shared_ptr<arrow::Table>>&& tables, std::vector<soa::IndexRecord>
const&
records);
64 static void resetBuilders(std::vector<framework::IndexColumnBuilder>& builders, std::vector<std::shared_ptr<arrow::Table>>&& tables);
66 static std::shared_ptr<arrow::Table>
materialize(std::vector<framework::IndexColumnBuilder>& builders, std::vector<std::shared_ptr<arrow::Table>>&& tables, std::vector<soa::IndexRecord>
const&
records, std::shared_ptr<arrow::Schema>
const&
schema,
bool exclusive);
74template <soa::is_table T>
81template <soa::TableRef R>
88template <
typename... Cs>
95template <aod::is_aod_hash D>
102std::shared_ptr<arrow::Table>
spawnerHelper(std::shared_ptr<arrow::Table>
const& fullTable, std::shared_ptr<arrow::Schema> newSchema,
size_t nColumns,
105std::shared_ptr<arrow::Table>
spawnerHelper(std::shared_ptr<arrow::Table>
const& fullTable, std::shared_ptr<arrow::Schema> newSchema,
106 const char*
name,
size_t nColumns,
107 const std::shared_ptr<gandiva::Projector>& projector);
110template <aod::is_aod_hash D>
111 requires(soa::has_extension<typename o2::aod::MetadataTrait<D>::metadata>)
114 if (fullTable->num_rows() == 0) {
115 return makeEmptyTable<D>(
name);
117 constexpr auto Ncol = []<
typename M>() {
127template <
typename... C>
130 std::array<const char*, 1>
labels{
"original"};
132 if (fullTable->num_rows() == 0) {
146 std::vector<framework::ConcreteDataMatcher>
matchers;
148 std::shared_ptr<gandiva::Projector>
projector =
nullptr;
149 std::shared_ptr<arrow::Schema>
schema =
nullptr;
162 std::vector<framework::ConcreteDataMatcher>
matchers;
169 std::shared_ptr<std::vector<framework::IndexColumnBuilder>>
builders =
nullptr;
181 std::string{
"input:"} + o2::aod::label<R>(),
183 aod::sourceSpec<R>(),
191 std::string{
"input-schema:"} + o2::aod::label<R>(),
199template <soa::with_sources T>
200inline constexpr auto getSources()
202 return []<
size_t N, std::array<soa::TableRef, N> refs>() {
203 return []<
size_t... Is>(std::index_sequence<Is...>) {
204 return std::vector{soa::tableRef2ConfigParamSpec<refs[Is]>()...};
205 }(std::make_index_sequence<N>());
206 }.template operator()<T::sources.size(), T::sources>();
209template <soa::with_sources T>
210inline constexpr auto getSourceSchemas()
212 return []<
size_t N, std::array<soa::TableRef, N> refs>() {
213 return []<
size_t... Is>(std::index_sequence<Is...>) {
214 return std::vector{soa::tableRef2Schema<refs[Is]>()...};
215 }(std::make_index_sequence<N>());
216 }.template operator()<T::sources.size(), T::sources>();
219template <soa::with_ccdb_urls T>
220inline constexpr auto getCCDBUrls()
222 std::vector<framework::ConfigParamSpec>
result;
223 for (
size_t i = 0;
i < T::ccdb_urls.size(); ++
i) {
224 result.push_back({std::string{
"ccdb:"} + std::string{T::ccdb_bindings[
i]},
233 requires(std::same_as<T, int>)
240 requires(std::is_bounded_array_v<T>)
247 requires(framework::is_specialization_v<T, std::vector>)
253template <soa::with_index_pack T>
254inline constexpr auto getIndexMapping()
256 std::vector<IndexRecord>
idx;
257 using indices = T::index_pack_t;
259 [&
idx]<
size_t... Is>(std::index_sequence<Is...>)
mutable {
260 constexpr auto refs = T::sources;
261 ([&
idx]<TableRef
ref,
typename C>()
mutable {
263 if constexpr (
pos == -1) {
266 idx.emplace_back(o2::aod::label<ref>(), o2::aod::matcher<ref>(), C::columnLabel(), getIndexKind<typename C::type>(),
pos);
268 }.template operator()<refs[Is],
typename framework::pack_element_t<Is, indices>>(),
275template <soa::with_sources T>
276constexpr auto getInputMetadata() -> std::vector<framework::ConfigParamSpec>
278 std::vector<framework::ConfigParamSpec> inputMetadata;
280 auto inputSources = getSources<T>();
281 std::sort(inputSources.begin(), inputSources.end(), [](framework::ConfigParamSpec
const&
a, framework::ConfigParamSpec
const&
b) { return a.name < b.name; });
282 auto last = std::unique(inputSources.begin(), inputSources.end(), [](framework::ConfigParamSpec
const&
a, framework::ConfigParamSpec
const&
b) { return a.name == b.name; });
283 inputSources.erase(last, inputSources.end());
284 inputMetadata.insert(inputMetadata.end(), inputSources.begin(), inputSources.end());
286 auto inputSchemas = getSourceSchemas<T>();
287 std::sort(inputSchemas.begin(), inputSchemas.end(), [](framework::ConfigParamSpec
const&
a, framework::ConfigParamSpec
const&
b) { return a.name < b.name; });
288 last = std::unique(inputSchemas.begin(), inputSchemas.end(), [](framework::ConfigParamSpec
const&
a, framework::ConfigParamSpec
const&
b) { return a.name == b.name; });
289 inputSchemas.erase(last, inputSchemas.end());
290 inputMetadata.insert(inputMetadata.end(), inputSchemas.begin(), inputSchemas.end());
292 return inputMetadata;
296 requires(!soa::with_sources<T>)
297constexpr auto getInputMetadata() -> std::vector<framework::ConfigParamSpec>
302template <soa::with_ccdb_urls T>
303constexpr auto getCCDBMetadata() -> std::vector<framework::ConfigParamSpec>
305 std::vector<framework::ConfigParamSpec> results = getCCDBUrls<T>();
306 std::sort(results.begin(), results.end(), [](framework::ConfigParamSpec
const&
a, framework::ConfigParamSpec
const&
b) { return a.name < b.name; });
307 auto last = std::unique(results.begin(), results.end(), [](framework::ConfigParamSpec
const&
a, framework::ConfigParamSpec
const&
b) { return a.name == b.name; });
308 results.erase(last, results.end());
313constexpr auto getCCDBMetadata() -> std::vector<framework::ConfigParamSpec>
318template <soa::with_expression_pack T>
319constexpr auto getExpressionMetadata() -> std::vector<framework::ConfigParamSpec>
321 using expression_pack_t = T::expression_pack_t;
323 auto projectors = []<
typename...
C>(framework::pack<
C...>) -> std::vector<framework::expressions::Projector> {
324 std::vector<framework::expressions::Projector>
result;
325 (
result.emplace_back(std::move(C::Projector())), ...);
327 }(expression_pack_t{});
334 requires(!soa::with_expression_pack<T>)
335constexpr auto getExpressionMetadata() -> std::vector<framework::ConfigParamSpec>
340template <soa::with_index_pack T>
341constexpr auto getIndexMetadata() -> std::vector<framework::ConfigParamSpec>
343 auto map = getIndexMapping<T>();
349 requires(!soa::with_index_pack<T>)
350constexpr auto getIndexMetadata() -> std::vector<framework::ConfigParamSpec>
360 std::vector<framework::ConfigParamSpec> metadata;
362 metadata.insert(metadata.end(),
m.begin(),
m.end());
364 metadata.insert(metadata.end(), ccdbMetadata.begin(), ccdbMetadata.end());
366 metadata.insert(metadata.end(), p.begin(), p.end());
368 metadata.insert(metadata.end(), idx.begin(), idx.end());
375 o2::aod::origin<R>(),
376 o2::aod::description(o2::aod::signature<R>()),
378 framework::Lifetime::Timeframe,
387 o2::aod::origin<R>(),
388 o2::aod::description(o2::aod::signature<R>()),
396 o2::aod::origin<R>(),
397 o2::aod::description(o2::aod::signature<R>()),
423template <is_producable T>
429 template <
typename...
Ts>
431 requires(
sizeof...(Ts) ==
framework::pack_size(
typename persistent_table_t::persistent_columns_t{}))
434 cursor(0, extract(args)...);
445 mBuilder = std::move(builder);
453 mBuilder->setLabel(
label);
460 mBuilder->reserve(
typename persistent_table_t::column_types{},
size);
473 return arg.globalIndex();
476 template <
typename A>
478 static decltype(
auto) extract(
A&& arg)
491template <soa::is_table T>
496template <soa::is_iterator T>
497consteval auto typeWithRef() ->
typename T::parent_t
502 requires soa::is_table<T> || soa::is_iterator<T>
509 return OutputSpec{
OutputLabel{aod::label<table_t::ref>()}, o2::aod::origin<table_t::ref>(), o2::aod::description(o2::aod::signature<table_t::ref>()), table_t::ref.version};
514 return OutputRef{aod::label<table_t::ref>(), table_t::ref.version};
522template <is_producable T>
527concept is_produces =
requires(T t) {
typename T::cursor_t;
typename T::persistent_table_t; &T::cursor; };
544template <soa::is_metadata M, soa::TableRef Ref>
549 template <soa::TableRef R>
552 return soa::tableRef2InputSpec<R>();
557 return []<
size_t... Is>(std::index_sequence<Is...>) {
558 return std::array{base_spec<sources[Is]>()...};
559 }(std::make_index_sequence<
sources.size()>{});
564 return soa::tableRef2OutputSpec<Ref>();
569 return soa::tableRef2Output<Ref>();
572 static constexpr auto ref()
574 return soa::tableRef2OutputRef<Ref>();
586template <is_spawnable T>
593template <is_spawnable T>
594struct Spawns : decltype(transformBase<T>()) {
615 std::shared_ptr<typename T::table_t>
table =
nullptr;
619 return {{std::move(C::Projector())...}};
622 std::shared_ptr<gandiva::Projector>
projector =
nullptr;
623 std::shared_ptr<arrow::Schema>
schema = []() {
625 s->WithMetadata(std::make_shared<arrow::KeyValueMetadata>(std::vector{std::string{
"label"}}, std::vector{std::string{o2::aod::label<T::ref>()}}));
632 typename T::metadata;
633 typename T::expression_pack_t;
634 requires std::same_as<
decltype(t.projector), std::shared_ptr<gandiva::Projector>>;
642template <is_dynamically_spawnable T,
bool DELAYED = false>
643struct Defines : decltype(transformBase<T>()) {
664 std::shared_ptr<typename T::table_t>
table =
nullptr;
667 std::array<o2::framework::expressions::Projector, N>
projectors;
668 std::shared_ptr<gandiva::Projector>
projector =
nullptr;
669 std::shared_ptr<arrow::Schema>
schema = []() {
671 s->WithMetadata(std::make_shared<arrow::KeyValueMetadata>(std::vector{std::string{
"label"}}, std::vector{std::string{o2::aod::label<T::ref>()}}));
684template <is_dynamically_spawnable T>
689 typename T::metadata;
690 typename T::placeholders_pack_t;
691 requires std::same_as<
decltype(t.projector), std::shared_ptr<gandiva::Projector>>;
692 requires std::same_as<
decltype(t.needRecompilation),
bool>;
707template <soa::is_index_table T>
714template <soa::is_index_table T>
715struct Builds : decltype(transformBase<T>()) {
718 using Key = metadata::Key;
719 using H =
typename T::first_t;
720 using Ts =
typename T::rest_t;
723 std::shared_ptr<arrow::Schema>
outputSchema = []() {
return std::make_shared<arrow::Schema>(
soa::createFieldsFromColumns(
index_pack_t{}))->WithMetadata(std::make_shared<arrow::KeyValueMetadata>(std::vector{std::string{
"label"}}, std::vector{std::string{o2::aod::label<T::ref>()}})); }();
725 std::vector<soa::IndexRecord>
map = soa::getIndexMapping<metadata>();
727 std::vector<framework::IndexColumnBuilder>
builders;
740 return table->asArrowTable();
749 auto build(std::vector<std::shared_ptr<arrow::Table>>&& tables)
752 return (this->table !=
nullptr);
758 typename T::metadata;
760 requires std::same_as<
decltype(t.map), std::vector<soa::IndexRecord>>;
794 object = std::make_shared<T>(t);
795 object->SetName(
label.c_str());
800 object = std::make_shared<T>(t);
801 object->SetName(
label.c_str());
807 object->SetName(
label.c_str());
813 object->SetName(
label.c_str());
826 std::memset(desc.str,
'_', 16);
828 s << std::hex << lhash;
830 s << std::hex << reinterpret_cast<uint64_t>(
this);
831 std::memcpy(desc.str, s.str().c_str(), 12);
842 return *
object.get();
863 requires std::same_as<
decltype(t.operator->()),
typename T::obj_t*>;
864 requires std::same_as<
decltype(t.object), std::shared_ptr<typename T::obj_t>>;
875 decltype(
auto) operator->()
const
887 requires std::same_as<
decltype(t.service),
typename T::service_t*>;
893 return std::make_unique<
o2::soa::Filtered<std::decay_t<
decltype(table)>>>(std::vector{table}, std::forward<soa::SelectionVector>(selection));
898 return std::make_unique<
o2::soa::Filtered<std::decay_t<
decltype(table)>>>(std::vector{table.asArrowTable()}, std::forward<soa::SelectionVector>(selection));
930 template <
typename...
Ts>
934 mFiltered->bindExternalIndices(tables...);
938 template <
typename E>
961 template <
typename T1>
977 template <
typename T1,
typename Policy,
bool OPT>
984 std::unique_ptr<o2::soa::Filtered<T>>
mFiltered =
nullptr;
985 gandiva::NodePtr
tree =
nullptr;
1016template <
typename T>
1018 &T::updatePlaceholders;
1019 requires std::same_as<
decltype(t.filter), expressions::Filter>;
1032 static std::shared_ptr<gandiva::Projector> projector =
nullptr;
1043 return output_t{{table.asArrowTable()}, table.offset()};
std::vector< o2::soa::IndexRecord > records
std::vector< expressions::Projector > projectors
std::vector< std::shared_ptr< gandiva::Expression > > expressions
std::vector< std::string > labels
o2::monitoring::tags::Key Key
std::shared_ptr< arrow::Schema > schema
std::unique_ptr< expressions::Node > node
constexpr uint32_t runtime_hash(char const *str)
T::template iterator_template_o< FilteredIndexPolicy, self_t > iterator
Helper to check if a type T is an iterator.
GLuint const GLchar * name
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * value
GLint GLint GLsizei GLint GLenum GLenum type
GLuint GLsizei const GLchar * label
GLsizei GLenum const void * indices
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLboolean GLboolean GLboolean GLboolean a
std::shared_ptr< gandiva::Filter > FilterPtr
std::variant< OriginValueMatcher, DescriptionValueMatcher, SubSpecificationTypeValueMatcher, std::unique_ptr< DataDescriptorMatcher >, ConstantValueMatcher, StartTimeValueMatcher > Node
std::shared_ptr< gandiva::Projector > createProjectorHelper(size_t nColumns, expressions::Projector *projectors, std::shared_ptr< arrow::Schema > schema, std::vector< std::shared_ptr< arrow::Field > > const &fields)
gandiva::Selection createSelection(std::shared_ptr< arrow::Table > const &table, Filter const &expression)
Function for creating gandiva selection from our internal filter tree.
void updatePlaceholders(Filter &filter, InitContext &context)
Update placeholder nodes from context.
Defining PrimaryVertex explicitly as messageable.
auto spawner(std::shared_ptr< arrow::Table > const &fullTable, const char *name, o2::framework::expressions::Projector *projectors, std::shared_ptr< gandiva::Projector > &projector, std::shared_ptr< arrow::Schema > const &schema)
Expression-based column generator to materialize columns.
std::string serializeSchema(std::shared_ptr< arrow::Schema > schema)
std::string serializeProjectors(std::vector< framework::expressions::Projector > &projectors)
std::shared_ptr< arrow::Table > spawnerHelper(std::shared_ptr< arrow::Table > const &fullTable, std::shared_ptr< arrow::Schema > newSchema, size_t nColumns, expressions::Projector *projectors, const char *name, std::shared_ptr< gandiva::Projector > &projector)
constexpr std::size_t pack_size(pack< Ts... > const &)
template function to determine number of types in a pack
constexpr auto transformBase()
This helper struct allows you to declare index tables to be created in a task.
std::string serializeIndexRecords(std::vector< o2::soa::IndexRecord > &irs)
memfun_type< decltype(&F::operator())>::type FFL(F const &func)
auto getTableFromFilter(soa::is_filtered_table auto const &table, soa::SelectionVector &&selection)
std::vector< std::shared_ptr< arrow::Table > > extractSources(ProcessingContext &pc, std::vector< std::string > const &labels)
consteval auto typeWithRef() -> T
Helper to define output for a Table.
OutputObjHandlingPolicy
Policy enum to determine OutputObj handling when writing.
void initializePartitionCaches(std::set< uint32_t > const &hashes, std::shared_ptr< arrow::Schema > const &schema, expressions::Filter const &filter, gandiva::NodePtr &tree, gandiva::FilterPtr &gfilter)
std::shared_ptr< arrow::Table > makeEmptyTableImpl(const char *name, std::shared_ptr< arrow::Schema > &schema)
auto createFieldsFromColumns(framework::pack< C... >)
SelectionVector selectionToVector(gandiva::Selection const &sel)
constexpr auto tableRef2InputSpec()
constexpr auto tableRef2Output()
std::vector< int64_t > SelectionVector
auto Attach(T const &table)
constexpr auto tableRef2Schema()
constexpr auto tableRef2ConfigParamSpec()
auto Extend(T const &table)
On-the-fly adding of expression columns.
constexpr auto tableRef2OutputSpec()
constexpr auto tableRef2OutputRef()
Defining DataPointCompositeObject explicitly as copiable.
header::DataDescription description
std::vector< o2::soa::IndexRecord > records
std::vector< std::string > labels
std::vector< framework::ConcreteDataMatcher > matchers
header::DataOrigin origin
std::shared_ptr< std::vector< framework::IndexColumnBuilder > > builders
header::DataHeader::SubSpecificationType version
std::shared_ptr< arrow::Schema > outputSchema
std::shared_ptr< arrow::Table > materialize(ProcessingContext &pc)
std::shared_ptr< T > table
auto build(std::vector< std::shared_ptr< arrow::Table > > &&tables)
std::vector< soa::IndexRecord > map
std::vector< framework::IndexColumnBuilder > builders
std::shared_ptr< arrow::Schema > outputSchema
T const & operator*() const
metadata::index_pack_t index_pack_t
decltype(transformBase< T >())::metadata metadata
std::shared_ptr< typename T::table_t > table
T::table_t const & operator*() const
decltype(transformBase< T >())::metadata metadata
typename metadata::extension_table_t extension_t
std::array< o2::framework::expressions::Projector, N > projectors
std::shared_ptr< extension_t > extension
std::shared_ptr< arrow::Schema > inputSchema
std::shared_ptr< arrow::Schema > schema
static constexpr bool delayed
static constexpr size_t N
typename metadata::placeholders_pack_t placeholders_pack_t
T::table_t * operator->()
std::shared_ptr< gandiva::Projector > projector
static OutputSpec const spec()
aod::MetadataTrait< o2::aod::Hash< table_t::ref.desc_hash > >::metadata metadata
decltype(typeWithRef< T >()) table_t
OutputObj(T &&t, OutputObjHandlingPolicy policy_=OutputObjHandlingPolicy::AnalysisObject, OutputObjSourceType sourceType_=OutputObjSourceType::OutputObjSource)
void setObject(std::shared_ptr< T > t)
OutputObjSourceType sourceType
OutputRef ref(uint16_t index, uint16_t max)
std::shared_ptr< T > object
void setObject(T const &t)
OutputObj(std::string const &label_, OutputObjHandlingPolicy policy_=OutputObjHandlingPolicy::AnalysisObject, OutputObjSourceType sourceType_=OutputObjSourceType::OutputObjSource)
OutputObjHandlingPolicy policy
void setHash(uint32_t hash)
Partition(expressions::Node &&filter_, T const &table)
typename o2::soa::Filtered< T >::const_iterator filtered_const_iterator
void bindTable(T const &table)
filtered_const_iterator begin() const
auto rawSliceBy(o2::framework::Preslice< T1 > const &container, int value) const
auto sliceByCached(framework::expressions::BindingNode const &node, int value, o2::framework::SliceCache &cache) const
void intializeCaches(std::set< uint32_t > const &hashes, std::shared_ptr< arrow::Schema > const &schema)
Partition(expressions::Node &&filter_)
typename o2::soa::Filtered< T >::iterator filtered_iterator
o2::soa::Filtered< T > * operator->()
typename o2::soa::Filtered< T >::iterator iterator
auto sliceBy(o2::framework::PresliceBase< T1, Policy, OPT > const &container, int value) const
std::shared_ptr< arrow::Table > asArrowTable() const
o2::soa::RowViewSentinel end() const
void updatePlaceholders(InitContext &context)
std::unique_ptr< o2::soa::Filtered< T > > mFiltered
void bindInternalIndicesTo(E *ptr)
expressions::Filter filter
o2::soa::RowViewSentinel end()
auto sliceByCachedUnsorted(framework::expressions::BindingNode const &node, int value, o2::framework::SliceCache &cache) const
typename o2::soa::Filtered< T >::const_iterator const_iterator
gandiva::FilterPtr gfilter
void bindExternalIndices(Ts *... tables)
filtered_iterator begin()
header::DataDescription description
std::vector< std::string > labels
std::vector< std::shared_ptr< gandiva::Expression > > expressions
std::shared_ptr< gandiva::Projector > projector
header::DataOrigin origin
std::vector< framework::ConcreteDataMatcher > matchers
header::DataHeader::SubSpecificationType version
std::shared_ptr< arrow::Schema > schema
std::shared_ptr< arrow::Table > materialize(ProcessingContext &pc) const
std::shared_ptr< arrow::Schema > inputSchema
T::table_t * operator->()
std::shared_ptr< gandiva::Projector > projector
std::shared_ptr< extension_t > extension
T::table_t const & operator*() const
static constexpr size_t N
std::shared_ptr< arrow::Schema > schema
typename metadata::expression_pack_t expression_pack_t
std::array< o2::framework::expressions::Projector, N > projectors
decltype(transformBase< T >())::metadata metadata
std::shared_ptr< typename T::table_t > table
typename metadata::extension_table_t extension_t
int64_t lastIndex()
Last index inserted in the table.
decltype(FFL(std::declval< cursor_t >())) cursor
bool resetCursor(LifetimeHolder< TableBuilder > builder)
void setLabel(const char *label)
void operator()(Ts &&... args)
void reserve(int64_t size)
decltype([]() { if constexpr(soa::is_iterator< T >) { return typename T::parent_t{nullptr} persistent_table_t
decltype(std::declval< TableBuilder >().cursor< persistent_table_t >()) cursor_t
An expression tree node corresponding to a column binding.
A struct, containing the root of the expression tree.
static std::shared_ptr< arrow::Table > joinTables(std::vector< std::shared_ptr< arrow::Table > > &&tables, std::span< const char *const > labels)
static void resetBuilders(std::vector< framework::IndexColumnBuilder > &builders, std::vector< std::shared_ptr< arrow::Table > > &&tables)
static std::vector< framework::IndexColumnBuilder > makeBuilders(std::vector< std::shared_ptr< arrow::Table > > &&tables, std::vector< soa::IndexRecord > const &records)
static std::shared_ptr< arrow::Table > materialize(std::vector< framework::IndexColumnBuilder > &builders, std::vector< std::shared_ptr< arrow::Table > > &&tables, std::vector< soa::IndexRecord > const &records, std::shared_ptr< arrow::Schema > const &schema, bool exclusive)
std::shared_ptr< arrow::Field > field() const
auto operator==(IndexRecord const &other) const
framework::ConcreteDataMatcher matcher
VectorOfTObjectPtrs other
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))