art-framework-suite / art

The implementation of the art physics event processing framework
Other
2 stars 7 forks source link

Request a new variant of T* TFileDirectory::makeAndRegister<T> #54

Open knoepfel opened 3 years ago

knoepfel commented 3 years ago

This issue has been migrated from https://cdcvs.fnal.gov/redmine/issues/13050 (FNAL account required) Originally created by @kutschke on 2016-06-25 21:13:56


Julia Yarba sent a question to the artists mailing list the other day and I answered it. My answer did not solve her problem.

When we first developed TFileDirectory::makeAndRegister we presumed that all objects being created by this call would have both names and titles; that is the class being instantiated has member functions SetName and SetTitle.

In Julia's use case the class as SetName but not SetTitle.

I believe that we should provide another variant for objects that have SetName but not SetTitle. The only difference in the two implementations would be removing the call to SetTitle.

I don't know if makes sense to have a variant for a class without SetName - how would one retrieve an unnamed object from the root file?

I have not thought about whether we can do this with a new overload of makeAndRegister or if we need a new name.

knoepfel commented 3 years ago

Comment by @knoepfel on 2016-06-27 17:17:38


We will provide a make(AndRegister) overload that does not require a title.