From 3bc150807027685a9a0fa1a5911c2b0b2dcf997a Mon Sep 17 00:00:00 2001 From: deserevi <deserevi@nptool> Date: Thu, 14 Apr 2011 13:46:35 +0000 Subject: [PATCH] + Add method BuildOnlinePhysicalEvent() dedicated to online use --- NPLib/CATS/TCATSPhysics.h | 5 ++++- NPLib/Chio/TChio_anPhysics.h | 3 +++ NPLib/Chio/TChio_digPhysics.h | 3 +++ NPLib/MUST2/TMust2Physics.h | 3 +++ NPLib/Plastic/TPlasticPhysics.h | 3 +++ NPLib/SSSD/TSSSDPhysics.h | 4 +++- 6 files changed, 19 insertions(+), 2 deletions(-) diff --git a/NPLib/CATS/TCATSPhysics.h b/NPLib/CATS/TCATSPhysics.h index 05b64203f..85ae1bc58 100644 --- a/NPLib/CATS/TCATSPhysics.h +++ b/NPLib/CATS/TCATSPhysics.h @@ -143,7 +143,10 @@ class TCATSPhysics : public TObject, public NPA::VDetector // This method aimed to be used for analysis performed during experiment, when speed is requiered. // NB: This method can eventually be the same as BuildPhysicalEvent. void BuildSimplePhysicalEvent(); - + + // Same as above but for online analysis + void BuildOnlinePhysicalEvent() {BuildPhysicalEvent();}; + // Those two method all to clear the Event Physics or Data void ClearEventPhysics() {Clear();} void ClearEventData() {EventData->Clear();} diff --git a/NPLib/Chio/TChio_anPhysics.h b/NPLib/Chio/TChio_anPhysics.h index 9cb2b8d8b..7497d5c68 100644 --- a/NPLib/Chio/TChio_anPhysics.h +++ b/NPLib/Chio/TChio_anPhysics.h @@ -107,6 +107,9 @@ class TChio_anPhysics : public TObject, public NPA::VDetector // NB: This method can eventually be the same as BuildPhysicalEvent. void BuildSimplePhysicalEvent(); + // Same as above but for online analysis + void BuildOnlinePhysicalEvent() {BuildPhysicalEvent();}; + // Those two method all to clear the Event Physics or Data void ClearEventPhysics() {Clear();} void ClearEventData() {EventData->Clear();} diff --git a/NPLib/Chio/TChio_digPhysics.h b/NPLib/Chio/TChio_digPhysics.h index 4b075c69d..07be930de 100644 --- a/NPLib/Chio/TChio_digPhysics.h +++ b/NPLib/Chio/TChio_digPhysics.h @@ -107,6 +107,9 @@ class TChio_digPhysics : public TObject, public NPA::VDetector // NB: This method can eventually be the same as BuildPhysicalEvent. void BuildSimplePhysicalEvent(); + // Same as above but for online analysis + void BuildOnlinePhysicalEvent() {BuildPhysicalEvent();}; + // Those two method all to clear the Event Physics or Data void ClearEventPhysics() {Clear();} void ClearEventData() {EventData->Clear();} diff --git a/NPLib/MUST2/TMust2Physics.h b/NPLib/MUST2/TMust2Physics.h index 2cc6e0fa2..2e3f4feb0 100644 --- a/NPLib/MUST2/TMust2Physics.h +++ b/NPLib/MUST2/TMust2Physics.h @@ -119,6 +119,9 @@ class TMust2Physics : public TObject, public NPA::VDetector // NB: This method can eventually be the same as BuildPhysicalEvent. void BuildSimplePhysicalEvent() ; + // Same as above but for online analysis + void BuildOnlinePhysicalEvent() {BuildPhysicalEvent();}; + // Those two method all to clear the Event Physics or Data void ClearEventPhysics() {Clear();} void ClearEventData() {m_EventData->Clear();} diff --git a/NPLib/Plastic/TPlasticPhysics.h b/NPLib/Plastic/TPlasticPhysics.h index 4c56cadae..51eced527 100644 --- a/NPLib/Plastic/TPlasticPhysics.h +++ b/NPLib/Plastic/TPlasticPhysics.h @@ -76,6 +76,9 @@ class TPlasticPhysics : public TObject, public NPA::VDetector // NB: This method can eventually be the same as BuildPhysicalEvent. void BuildSimplePhysicalEvent(); + // Same as above but for online analysis + void BuildOnlinePhysicalEvent() {BuildPhysicalEvent();}; + // Give and external TPlasticData object to TPlasticPhysics. Needed for online analysis for example. void SetRawDataPointer(TPlasticData* rawDataPointer) {EventData = rawDataPointer;} diff --git a/NPLib/SSSD/TSSSDPhysics.h b/NPLib/SSSD/TSSSDPhysics.h index e30982b2d..c5e5481a5 100644 --- a/NPLib/SSSD/TSSSDPhysics.h +++ b/NPLib/SSSD/TSSSDPhysics.h @@ -67,12 +67,14 @@ class TSSSDPhysics : public TObject, public NPA::VDetector // This method is called at each event read from the Input Tree. Aime is to build treat Raw dat in order to extract physical parameter. void BuildPhysicalEvent(); - // Same as above, but only the simplest event and/or simple method are used (low multiplicity, faster algorythm but less efficient ...). // This method aimed to be used for analysis performed during experiment, when speed is requiered. // NB: This method can eventually be the same as BuildPhysicalEvent. void BuildSimplePhysicalEvent(); + // Same as above but for online analysis + void BuildOnlinePhysicalEvent() {BuildSimplePhysicalEvent();}; + // Those two method all to clear the Event Physics or Data void ClearEventPhysics() {Clear();} void ClearEventData() {EventData->Clear();} -- GitLab