Skip to content
Snippets Groups Projects
Commit 17993bc5 authored by deserevi's avatar deserevi
Browse files

* Add support for online analysis

   + Add new method SetRawDataPointer(TxxxData*) which gives by hand the 
     TxxxData object to the corresponding TxxxPhysics object
parent 7f166155
No related branches found
No related tags found
No related merge requests found
......@@ -147,8 +147,11 @@ class TCATSPhysics : public TObject, public NPA::VDetector
// Those two method all to clear the Event Physics or Data
void ClearEventPhysics() {Clear();}
void ClearEventData() {EventData->Clear();}
// Give and external TMustData object to TMust2Physics. Needed for online analysis for example.
void SetRawDataPointer(TCATSData* rawDataPointer) {EventData = rawDataPointer;}
private :
// redundant information : could be optimized in the future
......
......@@ -159,6 +159,12 @@ class TMust2Physics : public TObject, public NPA::VDetector
// Use for reading Calibration Run, very simple methods; only apply calibration, no condition
void ReadCalibrationRun();
// Give and external TMustData object to TMust2Physics. Needed for online analysis for example.
void SetRawDataPointer(TMust2Data* rawDataPointer) {m_EventData = rawDataPointer;}
// Retrieve raw and pre-treated data
TMust2Data* GetRawData() const {return m_EventData;}
TMust2Data* GetPreTreatedData() const {return m_PreTreatedData;}
// Use to access the strip position
double GetStripPositionX( const int N , const int X , const int Y ) const{ return m_StripPositionX[N-1][X-1][Y-1] ; } ;
double GetStripPositionY( const int N , const int X , const int Y ) const{ return m_StripPositionY[N-1][X-1][Y-1] ; } ;
......
......@@ -90,7 +90,13 @@ class TSSSDPhysics : public TObject, public NPA::VDetector
void InitializeStandardParameter();
// Read the user configuration file; if no file found, load standard one
void ReadAnalysisConfig();
void ReadAnalysisConfig();
// Give and external TMustData object to TMust2Physics. Needed for online analysis for example.
void SetRawDataPointer(TSSSDData* rawDataPointer) {EventData = rawDataPointer;}
// Retrieve raw and pre-treated data
TSSSDData* GetRawData() const {return EventData;}
TSSSDData* GetPreTreatedData() const {return PreTreatedData;}
private: // Data not written in the tree
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment