-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more processes and metadata #1
base: master
Are you sure you want to change the base?
Conversation
@@ -1,5 +1,7 @@ | |||
set(LibraryVersion "1.0") | |||
add_definitions(-DLIBRARY_VERSION="${LibraryVersion}") | |||
|
|||
COMPILELIB("") | |||
set(deps detector) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that is conceptually wrong to add dependencies to any legacy class or library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, probably we just need the data members and the name of the class being preserved for data being read from previous ROOT files.
|
||
#include "TRestDetectorDriftVolume.h" | ||
|
||
typedef TRestDetectorDriftVolume TRestDriftVolume; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class has been renamed? Not quite understand this class
|
||
#include "TRestDetectorGainMap.h" | ||
|
||
typedef TRestDetectorGainMap TRestGainMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here? The typedef
shouldn't be included in TRestDetectorGainMap.h
?
|
||
#include "TRestDetectorGas.h" | ||
|
||
typedef TRestDetectorGas TRestGas; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
|
||
//! An event data type that register a vector of TRestHits, | ||
//! allowing us to save a 3-coordinate position and energy. | ||
class TRestHitsEvent : public TRestEvent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that TRestHitsEvent
should inherit from TRestLegacyEvent
with some protection added
@@ -52,4 +52,23 @@ class TRestLegacyProcess : public TRestEventProcess { | |||
|
|||
ClassDefOverride(TRestLegacyProcess, 0); | |||
}; | |||
|
|||
#define LegacyProcessDef(thisname, newname, n) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not fan of macros and I don't understand the need of a macro here
@@ -26,7 +26,7 @@ | |||
#include "TRestLegacyProcess.h" | |||
|
|||
//! A process to identify signal and remove baseline noise from a TRestRawSignalEvent. | |||
class TRestRawZeroSuppresionProcess : public TRestLegacyProcess { | |||
class TRestRawZeroSuppresionProcess : public TRestEventProcess { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TRestRawZeroSuppresionProcess
should inherit from TRestLegacyProcess
#include <TString.h> | ||
#include <TVector2.h> | ||
|
||
class TRestSignal : public TObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TRestSignal
seems quite obsolete, what is the need of implemented inside legacylib
?
#include "TRestEvent.h" | ||
#include "TRestSignal.h" | ||
|
||
class TRestSignalEvent : public TRestEvent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here TRestSignalEvent
looks extremelly old, do we have a real need to keep in legacylib
?
Also, I think that any legacy
class shouldn't implement any data processing, it is just for compatibility with old root files.
#include "TRestLegacyProcess.h" | ||
|
||
//! A process to identify signal and remove baseline noise from a TRestRawSignalEvent. | ||
class TRestSignalZeroSuppresionProcess : public TRestEventProcess { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TRestSignalZeroSuppresionProcess
looks quite similar to TRestRawZeroSuppresionProcess
a typedef
cannot be used here?
I dont understand, |
added v2.2 readout and v2.2 process: TRestSignalZeroSuppresionProcess
use preprocessor to define legacy processes members, instead of inheriting TRestLegacyProcess. This prevents a warning: