Re: flag for different data structures [message #18882 is a reply to message #18879] |
Tue, 12 January 2016 15:43 |
Dmytro Kresan
Messages: 166 Registered: June 2004
|
first-grade participant |
From: 93.77.23*
|
|
Hi Michael,
There is no feature included yet.
I propose a following solution. According to the UCESB interface design we will have 2 separate readers for Tacquila and Tamex. So we can have 2 different data classes, which will be stored in TClonesArray by a reader. During the next stage, the TCAL calibration task will recognise which class is stored in the array, will do a cast to proper type and handle it accordingly. So no flag in the macro is needed.
In addition, if there are 2 - 3 common data members for Tacquila and Tamex data classes - it makes sense to create a common base class.
For the moment, you can create additional data class for Tamex. Then I will modify TCAL calibration tasks. Later we will decide wether a base class is needed.
Cheers,
Dima
|
|
|