Skip to content
Snippets Groups Projects

Remove TObject from the top of hierarchy, minor CMake tweaks

Merged Evgeny Kashirin requested to merge tobject_inheritance into master
5 files
+ 36
34
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 1
4
@@ -22,7 +22,7 @@ class ChannelDetector : public IndexedObject, protected IndexAccessor {
public:
ChannelDetector() = default;
ChannelDetector(Int_t id) : IndexedObject(id) {}
~ChannelDetector() override {
~ChannelDetector() {
// FIXME delete operator causes segfault,
// as a solution for now ClearChannel() is called
ClearChannels();
@@ -53,11 +53,8 @@ class ChannelDetector : public IndexedObject, protected IndexAccessor {
/**
* This function creates TClonesArray for channels and it is called
* in ctor
*
* UPD: Calling virtual method in ctor is a very dangerous procedure
*/
virtual void InitChannels() {
Fatal("InitChannels()", "InitChannels must be overwritten by user class");
}
void ClearChannels() {
Loading