diff --git a/NPLib/CATS/TCATSPhysics.h b/NPLib/CATS/TCATSPhysics.h index 8d8457dc06cad243f7946c2758c79274eda06ef9..05b64203fcfc724280e74a573d990bac1853d6c3 100644 --- a/NPLib/CATS/TCATSPhysics.h +++ b/NPLib/CATS/TCATSPhysics.h @@ -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 diff --git a/NPLib/MUST2/TMust2Physics.h b/NPLib/MUST2/TMust2Physics.h index 717d00cb5cfcf169fe40e8a57168ab7e25b2372a..2cc6e0fa25346b219e1af1fef57452ed459c8f00 100644 --- a/NPLib/MUST2/TMust2Physics.h +++ b/NPLib/MUST2/TMust2Physics.h @@ -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] ; } ; diff --git a/NPLib/SSSD/TSSSDPhysics.h b/NPLib/SSSD/TSSSDPhysics.h index 4617901d5a00c9ed5183c2651bf1155d5de87f4b..e30982b2d56d927a691124b850d9d6b4586be83e 100644 --- a/NPLib/SSSD/TSSSDPhysics.h +++ b/NPLib/SSSD/TSSSDPhysics.h @@ -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