#include <TSTSProc.h>
Public Member Functions | |
TSTSProc (const char *name=0) | |
virtual | ~TSTSProc () |
virtual void | InitEvent (TGo4EventElement *) |
virtual void | FinalizeEvent () |
TSTSProc (const char *name=0) | |
virtual | ~TSTSProc () |
virtual void | InitEvent (TGo4EventElement *) |
virtual void | FinalizeEvent () |
virtual Bool_t | BuildEvent (TGo4EventElement *) |
virtual void | ProcessSubevent (TGo4MbsSubEvent *subevt) |
Short_t | GetTriggerNumber () const |
Int_t | GetEventNumber () const |
Long_t | ExecuteScript (const char *script_name) |
Protected Member Functions | |
void | ExecSetStsParamMacro () |
void | CreateHistograms () |
void | CreateClusterizers () |
void | CreateHiterizers () |
TRocParam * | GetRocPar () |
Bool_t | CheckScanSetup (uint32_t value, Int_t rocId) |
Int_t | STS_GetStrip (Int_t side, Int_t odd, Int_t nxCh) |
void | ProcessValidMessage (TRocMessageExtended &msg) |
void | EvaluateHits () |
Bool_t | AllRocsHaveEventClosed () |
void | AddSubProcessor (TCBMBeamtimeProc *) |
Protected Attributes | |
std::vector< std::vector< TH1 * > > | fSTSDigiPos |
std::vector< std::vector< TH1 * > > | fSTSDigiAmp |
std::vector< std::vector< TH1 * > > | fSTSDigiTime |
std::vector< std::vector< TH2 * > > | fSTSDigiAmpVsPos |
std::vector< std::vector< TH1 * > > | fSTSClustPos |
std::vector< std::vector< TH1 * > > | fSTSClustAmp |
std::vector< std::vector< TH2 * > > | fSTSClustAmpVsPos |
std::vector< std::vector< TH2 * > > | fSTSClustAmpVsTime |
std::vector< TH2 * > | fSTSHitXY |
std::vector< TH2 * > | fSTSHitXYBinned |
std::vector< std::vector < TSTSClusterizer * > > | fClusterizers |
std::vector< TSTSHiterizer * > | fHiterizers |
TSTSParam * | fSTSPar |
TRocParam * | fRocPar |
TSTSGeometry | fSTSGeometry |
TRocEvent * | fRocInputEvent |
TSTSEvent * | fOutputEvent |
TBeamMonitorEvent * | fBeamEvent |
TFiberHodEvent * | fFiberHodEvent1 |
TFiberHodEvent * | fFiberHodEvent2 |
std::vector< std::vector< TH2 * > > | fSTSDigiPosLaserX |
std::vector< std::vector< TH2 * > > | fSTSDigiPosLaserY |
TH2 * | fLaserPosition |
TH2 * | fNxChannelVsLaserX [MAX_ROC][MAX_NX] |
TH2 * | fNxChannelVsLaserY [MAX_ROC][MAX_NX] |
TSTSParam * | fPar |
TRocParam * | fRocParam |
TSTSTopology | fSTSTopology |
TEpicsEvent * | fEpicsInputEvent |
TCBMBeamtimeEvent * | fFullOutputEvent |
std::vector < TSTSEvent::lasersetup_t > | fLaserSetupBuffer |
TRocEvent * | fRocMessageBuffer |
Bool_t | fOffScanpoint [MAX_ROC] |
Bool_t | fInScanpoint [MAX_ROC] |
Bool_t | fEventClosed [MAX_ROC] |
UInt_t | fNextScanId [MAX_ROC] |
Bool_t | fReplayBuffers |
TCBMBeamtimeEvent * | fBeamtimeEvent |
TGo4MbsEvent * | fMbsInput |
Short_t | fMbsTriggerNumber |
Int_t | fMbsEventNumber |
Friends | |
class | TCBMBeamtimeProc |
Definition at line 19 of file TSTSProc.h.
TSTSProc::TSTSProc | ( | const char * | name = 0 |
) |
Definition at line 23 of file TSTSProc.cxx.
References CreateClusterizers(), CreateHistograms(), CreateHiterizers(), ExecSetStsParamMacro(), fRocPar, fSTSPar, and GetRocPar().
TSTSProc::~TSTSProc | ( | ) | [virtual] |
Definition at line 40 of file TSTSProc.cxx.
References fClusterizers, and fHiterizers.
TSTSProc::TSTSProc | ( | const char * | name = 0 |
) |
virtual TSTSProc::~TSTSProc | ( | ) | [virtual] |
void TCBMBeamtimeProc::AddSubProcessor | ( | TCBMBeamtimeProc * | proc | ) | [protected, inherited] |
Definition at line 41 of file TCBMBeamtimeProc.cxx.
References TCBMBeamtimeProc::fSubProcessors.
Referenced by TCernGem12DetectorProc::TCernGem12DetectorProc(), TCernGem12FinalProc::TCernGem12FinalProc(), TCernGem12UnpackProc::TCernGem12UnpackProc(), TCernOct11DetectorProc::TCernOct11DetectorProc(), TCernOct11UnpackProc::TCernOct11UnpackProc(), TCernOct12DetectorProc::TCernOct12DetectorProc(), TCernOct12FinalProc::TCernOct12FinalProc(), TCernOct12UnpackProc::TCernOct12UnpackProc(), TCosyJan12DetectorProc::TCosyJan12DetectorProc(), TCosyJan12FinalProc::TCosyJan12FinalProc(), TCosyJan12UnpackProc::TCosyJan12UnpackProc(), TCosyNov11DetectorProc::TCosyNov11DetectorProc(), TCosyNov11UnpackProc::TCosyNov11UnpackProc(), TGsiAug12CalibrationProc::TGsiAug12CalibrationProc(), TGsiAug12DetectorProc::TGsiAug12DetectorProc(), TGsiAug12OutputProc::TGsiAug12OutputProc(), TGsiAug12TrackingProc::TGsiAug12TrackingProc(), TGsiAug12UnpackProc::TGsiAug12UnpackProc(), TLaserTest12DetectorProc::TLaserTest12DetectorProc(), and TLaserTest12UnpackProc::TLaserTest12UnpackProc().
Bool_t TSTSProc::AllRocsHaveEventClosed | ( | ) | [inline, protected] |
Definition at line 117 of file TSTSProc.h.
References TRocEvent::ConfigRocs, and fEventClosed.
Referenced by CheckScanSetup().
Bool_t TCBMBeamtimeProc::BuildEvent | ( | TGo4EventElement * | outevnt | ) | [virtual, inherited] |
Reimplemented in TCernNov10Proc, TCosyDec10Proc, TRocProc, and TSpadicProc.
Definition at line 52 of file TCBMBeamtimeProc.cxx.
References TCBMBeamtimeProc::fBeamtimeEvent, TCBMBeamtimeProc::FinalizeEvent(), TCBMBeamtimeProc::fMbsEventNumber, TCBMBeamtimeProc::fMbsInput, TCBMBeamtimeProc::fMbsTriggerNumber, TCBMBeamtimeProc::fProcIterator, TCBMBeamtimeProc::InitEvent(), and TCBMBeamtimeProc::ProcessSubevent().
Bool_t TSTSProc::CheckScanSetup | ( | uint32_t | value, | |
Int_t | rocId | |||
) | [protected] |
Definition at line 337 of file TSTSProc.cxx.
References AllRocsHaveEventClosed(), fEventClosed, fFullOutputEvent, fInScanpoint, fLaserPosition, fLaserSetupBuffer, fNextScanId, fOffScanpoint, fOutputEvent, TSTSEvent::GetLaserSetup(), TSTSEvent::lasersetup_t::ScanId, TSTSEvent::SetLaserSetup(), TSTSEvent::lasersetup_t::Xpos, and TSTSEvent::lasersetup_t::Ypos.
void TSTSProc::CreateClusterizers | ( | ) | [protected] |
Definition at line 125 of file TSTSProc.cxx.
References fClusterizers, TSTSParam::fClusterizerSpaceTolerance, TSTSParam::fClusterizerTimeTolerance, TSTSParam::fClusterizerTimeWindow, fSTSPar, TSTSParam::fSTSTopology, TSTSTopology::GetDetArrSize(), and TSTSTopology::kNSides.
Referenced by TSTSProc().
void TSTSProc::CreateHistograms | ( | ) | [protected] |
Definition at line 79 of file TSTSProc.cxx.
References fSTSClustAmp, fSTSClustAmpVsPos, fSTSClustAmpVsTime, fSTSClustPos, fSTSDigiAmp, fSTSDigiAmpVsPos, fSTSDigiPos, fSTSDigiTime, fSTSHitXY, fSTSHitXYBinned, fSTSPar, TSTSParam::fSTSTopology, TSTSTopology::GetDetArrSize(), TSTSTopology::GetSideName(), TSTSTopology::GetStripArrSize(), TSTSTopology::kNSides, and TSTSTopology::kPSide.
Referenced by TSTSProc().
void TSTSProc::CreateHiterizers | ( | ) | [protected] |
Definition at line 142 of file TSTSProc.cxx.
References fHiterizers, TSTSParam::fHiterizerTimeTolerance, TSTSParam::fHiterizerTimeWindow, fSTSPar, TSTSParam::fSTSTopology, and TSTSTopology::GetDetArrSize().
Referenced by TSTSProc().
void TSTSProc::EvaluateHits | ( | ) | [protected] |
Definition at line 487 of file TSTSProc.cxx.
References TSTSEvent::AddPoint(), fClusterizers, fHiterizers, fOutputEvent, fRocParam, fSTSClustAmp, fSTSClustAmpVsPos, fSTSClustPos, fSTSGeometry, fSTSHitXY, fSTSHitXYBinned, fSTSTopology, TSTSCluster::GetAmplitude(), TSTSCluster::GetMainStrip(), TSTSTopology::GetNDetectors(), TSTSTopology::GetNSides(), TSpacepoint::GetX(), TSpacepoint::GetY(), TSTSGeometry::MakeSpacepoint(), and TRocParam::noTrigger.
void TSTSProc::ExecSetStsParamMacro | ( | ) | [protected] |
Definition at line 64 of file TSTSProc.cxx.
Referenced by TSTSProc().
Long_t TCBMBeamtimeProc::ExecuteScript | ( | const char * | script_name | ) | [inherited] |
Temporary here - will be from 4.5.3 version in distribution
Definition at line 142 of file TCBMBeamtimeProc.cxx.
Referenced by TCernOct12UnpackProc::TCernOct12UnpackProc(), TFaspProc::TFaspProc(), TFiberHodProc::TFiberHodProc(), TSpadicV10Proc::TSpadicV10Proc(), and TTrbProc::TTrbProc().
virtual void TSTSProc::FinalizeEvent | ( | ) | [virtual] |
Reimplemented from TCBMBeamtimeProc.
void TSTSProc::FinalizeEvent | ( | ) | [virtual] |
Reimplemented from TCBMBeamtimeProc.
Definition at line 165 of file TSTSProc.cxx.
References TSTSEvent::AddCluster(), TSTSEvent::AddDigi(), TSTSEvent::AddPoint(), fClusterizers, TRocData::fExtMessages, fHiterizers, fOutputEvent, fRocInputEvent, fRocPar, fSTSClustAmp, fSTSClustAmpVsPos, fSTSClustPos, fSTSDigiAmp, fSTSDigiAmpVsPos, fSTSDigiPos, fSTSDigiTime, fSTSGeometry, fSTSHitXY, fSTSHitXYBinned, fSTSPar, TSTSParam::fSTSTopology, TSTSParam::fTtriGlobalThr, TSTSParam::fTtriThr, TSTSParam::fTtriThrUseGlobal, TSTSCluster::GetAmplitude(), TRocMessageExtended::GetCorrectedNxADC(), TSTSTopology::GetDetArrSize(), TSTSTopology::GetDetector(), TRocMessageExtended::GetFullTime(), TSTSCluster::GetMainStrip(), TRocMessageExtended::GetMessageType(), TRocMessageExtended::GetNxChNum(), TRocMessageExtended::GetNxNumber(), TSTSTopology::GetRocArrSize(), TSTSTopology::GetSide(), TSTSTopology::GetStrip(), TRocMessageExtended::GetTriggerDeltaT(), TSpacepoint::GetX(), TSpacepoint::GetY(), TSTSTopology::IsValidRoc(), TSTSGeometry::MakeSpacepoint(), TRocParam::noTrigger, and TRocParam::ttriMode.
Int_t TCBMBeamtimeProc::GetEventNumber | ( | ) | const [inline, inherited] |
Returns event number of main MBS event
Definition at line 48 of file TCBMBeamtimeProc.h.
References TCBMBeamtimeProc::fMbsEventNumber.
Referenced by TSpadicV10Proc::FinalizeEvent(), TRocProc::FinalizeEvent(), TGet4v1Proc::FinalizeEvent(), TRPCProc::FinalizeEvent(), TGet4v1Proc::ProcessSubevent(), and TGet4v1Proc::ProcessTriggerMessage().
TRocParam * TSTSProc::GetRocPar | ( | ) | [protected] |
Definition at line 154 of file TSTSProc.cxx.
Referenced by TSTSProc().
Short_t TCBMBeamtimeProc::GetTriggerNumber | ( | ) | const [inline, inherited] |
Returns trigger number of main MBS event
Definition at line 45 of file TCBMBeamtimeProc.h.
References TCBMBeamtimeProc::fMbsTriggerNumber.
Referenced by TSpadicV10Proc::FinalizeEvent(), TRocProc::FinalizeEvent(), TTrbProc::ProcessSubevent(), TSpadicV10Proc::ProcessSubevent(), TSpadicProc::ProcessSubevent(), TGet4v1Proc::ProcessSubevent(), and TMbsCrateProc::ProcessSubevent().
virtual void TSTSProc::InitEvent | ( | TGo4EventElement * | ) | [virtual] |
Reimplemented from TCBMBeamtimeProc.
void TSTSProc::InitEvent | ( | TGo4EventElement * | outevnt | ) | [virtual] |
Reimplemented from TCBMBeamtimeProc.
Definition at line 251 of file TSTSProc.cxx.
References fBeamEvent, fFiberHodEvent1, fFiberHodEvent2, fOutputEvent, fRocInputEvent, and TCBMBeamtimeEvent::GetSubEvent().
void TCBMBeamtimeProc::ProcessSubevent | ( | TGo4MbsSubEvent * | subevt | ) | [virtual, inherited] |
Reimplemented in TCernNov10Proc, TMbsCrateProc, TMbsCrateProc, TCosyDec10Proc, TMbsCrateProc, TExploderProc, TMbsCrateProc, TGet4v1Proc, TMbsCrateProc, TMbsCrateProc, TMbsCrateProc, TGet4v1Proc, TMbsCrateProc, TRocProc, TEpicsProc, TFaspProc, TTriglogProc, TRocProc, TSpadicProc, TSpadicV10Proc, and TTrbProc.
Definition at line 46 of file TCBMBeamtimeProc.cxx.
Referenced by TCBMBeamtimeProc::BuildEvent().
void TSTSProc::ProcessValidMessage | ( | TRocMessageExtended & | msg | ) | [protected] |
Definition at line 434 of file TSTSProc.cxx.
References TSTSEvent::AddDigi(), fClusterizers, fHiterizers, fNxChannelVsLaserX, fNxChannelVsLaserY, fOutputEvent, fPar, fRocParam, fSTSDigiAmp, fSTSDigiAmpVsPos, fSTSDigiPos, fSTSDigiPosLaserX, fSTSDigiPosLaserY, fSTSDigiTime, fSTSTopology, TSTSParam::fTtriGlobalThr, TRocMessageExtended::GetCorrectedNxADC(), TSTSTopology::GetDetector(), TRocMessageExtended::GetFullTime(), TSTSEvent::GetLaserSetup(), TSTSTopology::GetNDetectors(), TSTSTopology::GetNSides(), TRocMessageExtended::GetNxChNum(), TRocMessageExtended::GetNxNumber(), TRocMessageExtended::GetRocNumber(), TSTSTopology::GetSide(), TSTSTopology::GetStrip(), TRocMessageExtended::GetTriggerDeltaT(), and TRocParam::ttriMode.
Int_t TSTSProc::STS_GetStrip | ( | Int_t | side, | |
Int_t | odd, | |||
Int_t | nxCh | |||
) | [protected] |
TCBMBeamtimeProc [friend] |
Definition at line 20 of file TSTSProc.h.
TBeamMonitorEvent* TSTSProc::fBeamEvent [protected] |
Definition at line 45 of file TSTSProc.h.
Referenced by InitEvent().
TCBMBeamtimeEvent* TCBMBeamtimeProc::fBeamtimeEvent [protected, inherited] |
Definition at line 60 of file TCBMBeamtimeProc.h.
Referenced by TCBMBeamtimeProc::BuildEvent().
std::vector< std::vector< TSTSClusterizer * > > TSTSProc::fClusterizers [protected] |
Definition at line 34 of file TSTSProc.h.
Referenced by CreateClusterizers(), EvaluateHits(), FinalizeEvent(), ProcessValidMessage(), and ~TSTSProc().
TEpicsEvent* TSTSProc::fEpicsInputEvent [protected] |
Definition at line 95 of file TSTSProc.h.
Bool_t TSTSProc::fEventClosed[MAX_ROC] [protected] |
Definition at line 111 of file TSTSProc.h.
Referenced by AllRocsHaveEventClosed(), and CheckScanSetup().
TFiberHodEvent* TSTSProc::fFiberHodEvent1 [protected] |
Definition at line 46 of file TSTSProc.h.
Referenced by InitEvent().
TFiberHodEvent* TSTSProc::fFiberHodEvent2 [protected] |
Definition at line 47 of file TSTSProc.h.
Referenced by InitEvent().
TCBMBeamtimeEvent* TSTSProc::fFullOutputEvent [protected] |
Definition at line 99 of file TSTSProc.h.
Referenced by CheckScanSetup().
std::vector< TSTSHiterizer * > TSTSProc::fHiterizers [protected] |
Definition at line 35 of file TSTSProc.h.
Referenced by CreateHiterizers(), EvaluateHits(), FinalizeEvent(), ProcessValidMessage(), and ~TSTSProc().
Bool_t TSTSProc::fInScanpoint[MAX_ROC] [protected] |
Definition at line 110 of file TSTSProc.h.
Referenced by CheckScanSetup().
TH2* TSTSProc::fLaserPosition [protected] |
Definition at line 72 of file TSTSProc.h.
Referenced by CheckScanSetup().
std::vector<TSTSEvent::lasersetup_t> TSTSProc::fLaserSetupBuffer [protected] |
Definition at line 103 of file TSTSProc.h.
Referenced by CheckScanSetup().
Int_t TCBMBeamtimeProc::fMbsEventNumber [protected, inherited] |
Definition at line 63 of file TCBMBeamtimeProc.h.
Referenced by TCBMBeamtimeProc::BuildEvent(), TRPCProc::FinalizeEvent(), and TCBMBeamtimeProc::GetEventNumber().
TGo4MbsEvent* TCBMBeamtimeProc::fMbsInput [protected, inherited] |
Definition at line 61 of file TCBMBeamtimeProc.h.
Referenced by TCBMBeamtimeProc::BuildEvent().
Short_t TCBMBeamtimeProc::fMbsTriggerNumber [protected, inherited] |
Definition at line 62 of file TCBMBeamtimeProc.h.
Referenced by TCBMBeamtimeProc::BuildEvent(), and TCBMBeamtimeProc::GetTriggerNumber().
UInt_t TSTSProc::fNextScanId[MAX_ROC] [protected] |
Definition at line 112 of file TSTSProc.h.
Referenced by CheckScanSetup().
TH2* TSTSProc::fNxChannelVsLaserX[MAX_ROC][MAX_NX] [protected] |
Definition at line 73 of file TSTSProc.h.
Referenced by ProcessValidMessage().
TH2* TSTSProc::fNxChannelVsLaserY[MAX_ROC][MAX_NX] [protected] |
Definition at line 74 of file TSTSProc.h.
Referenced by ProcessValidMessage().
Bool_t TSTSProc::fOffScanpoint[MAX_ROC] [protected] |
Definition at line 109 of file TSTSProc.h.
Referenced by CheckScanSetup().
TSTSEvent * TSTSProc::fOutputEvent [protected] |
Definition at line 44 of file TSTSProc.h.
Referenced by CheckScanSetup(), EvaluateHits(), FinalizeEvent(), InitEvent(), and ProcessValidMessage().
TSTSParam* TSTSProc::fPar [protected] |
Definition at line 87 of file TSTSProc.h.
Referenced by ProcessValidMessage().
Bool_t TSTSProc::fReplayBuffers [protected] |
Definition at line 113 of file TSTSProc.h.
TRocEvent * TSTSProc::fRocInputEvent [protected] |
TRocEvent* TSTSProc::fRocMessageBuffer [protected] |
Definition at line 106 of file TSTSProc.h.
TRocParam* TSTSProc::fRocPar [protected] |
Definition at line 38 of file TSTSProc.h.
Referenced by FinalizeEvent(), and TSTSProc().
TRocParam* TSTSProc::fRocParam [protected] |
Definition at line 88 of file TSTSProc.h.
Referenced by EvaluateHits(), and ProcessValidMessage().
std::vector< std::vector< TH1 * > > TSTSProc::fSTSClustAmp [protected] |
Definition at line 28 of file TSTSProc.h.
Referenced by CreateHistograms(), EvaluateHits(), and FinalizeEvent().
std::vector< std::vector< TH2 * > > TSTSProc::fSTSClustAmpVsPos [protected] |
Definition at line 29 of file TSTSProc.h.
Referenced by CreateHistograms(), EvaluateHits(), and FinalizeEvent().
std::vector< std::vector< TH2 * > > TSTSProc::fSTSClustAmpVsTime [protected] |
Definition at line 30 of file TSTSProc.h.
Referenced by CreateHistograms().
std::vector< std::vector< TH1 * > > TSTSProc::fSTSClustPos [protected] |
Definition at line 27 of file TSTSProc.h.
Referenced by CreateHistograms(), EvaluateHits(), and FinalizeEvent().
std::vector< std::vector< TH1 * > > TSTSProc::fSTSDigiAmp [protected] |
Definition at line 24 of file TSTSProc.h.
Referenced by CreateHistograms(), FinalizeEvent(), and ProcessValidMessage().
std::vector< std::vector< TH2 * > > TSTSProc::fSTSDigiAmpVsPos [protected] |
Definition at line 26 of file TSTSProc.h.
Referenced by CreateHistograms(), FinalizeEvent(), and ProcessValidMessage().
std::vector< std::vector< TH1 * > > TSTSProc::fSTSDigiPos [protected] |
Definition at line 23 of file TSTSProc.h.
Referenced by CreateHistograms(), FinalizeEvent(), and ProcessValidMessage().
std::vector< std::vector< TH2 * > > TSTSProc::fSTSDigiPosLaserX [protected] |
Definition at line 70 of file TSTSProc.h.
Referenced by ProcessValidMessage().
std::vector< std::vector< TH2 * > > TSTSProc::fSTSDigiPosLaserY [protected] |
Definition at line 71 of file TSTSProc.h.
Referenced by ProcessValidMessage().
std::vector< std::vector< TH1 * > > TSTSProc::fSTSDigiTime [protected] |
Definition at line 25 of file TSTSProc.h.
Referenced by CreateHistograms(), FinalizeEvent(), and ProcessValidMessage().
TSTSGeometry TSTSProc::fSTSGeometry [protected] |
Definition at line 40 of file TSTSProc.h.
Referenced by EvaluateHits(), and FinalizeEvent().
std::vector< TH2 * > TSTSProc::fSTSHitXY [protected] |
Definition at line 31 of file TSTSProc.h.
Referenced by CreateHistograms(), EvaluateHits(), and FinalizeEvent().
std::vector< TH2 * > TSTSProc::fSTSHitXYBinned [protected] |
Definition at line 32 of file TSTSProc.h.
Referenced by CreateHistograms(), EvaluateHits(), and FinalizeEvent().
TSTSParam* TSTSProc::fSTSPar [protected] |
Definition at line 37 of file TSTSProc.h.
Referenced by CreateClusterizers(), CreateHistograms(), CreateHiterizers(), FinalizeEvent(), and TSTSProc().
TSTSTopology TSTSProc::fSTSTopology [protected] |
Definition at line 90 of file TSTSProc.h.
Referenced by EvaluateHits(), and ProcessValidMessage().