QwAnalysis
|
F1TDCs configuration and reference siganls container. More...
#include <QwF1TDContainer.h>
Inherits TObject.
Public Member Functions | |
QwF1TDContainer () | |
virtual | ~QwF1TDContainer () |
void | SetSystemName (const TString name) |
const TString | GetSystemName () const |
void | AddQwF1TDC (QwF1TDC *in) |
void | Print (const Option_t *options=0) const |
Int_t | GetSize () const |
Int_t | Size () const |
Int_t | HowManyF1TDCs () const |
EQwDetectorType | GetDetectorType () const |
EQwRegionID | GetRegion () const |
QwF1TDC * | GetF1TDC (Int_t roc, Int_t slot) |
QwF1TDC * | GetF1TDCwithIndex (Int_t tdc_index) |
QwF1TDC * | GetF1TDCwithBankIndexSLOT (Int_t bank_index, Int_t slot) |
Double_t | GetF1TDCOneResolution () const |
Double_t | DoneF1TDCsConfiguration () |
Double_t | ReturnTimeCalibration (Double_t time_arb_unit) |
Int_t | GetF1TDCChannelNumber () |
Double_t GetF1TDCResolution();. More... | |
const TH2F * | GetF1TDCErrorHist () |
void | AddSYN (Int_t roc, Int_t slot, Int_t channel) |
void | AddEMM (Int_t roc, Int_t slot, Int_t channel) |
void | AddSEU (Int_t roc, Int_t slot, Int_t channel) |
void | AddTFO (Int_t roc, Int_t slot, Int_t channel) |
void | AddRLF (Int_t roc, Int_t slot, Int_t channel) |
void | AddHFO (Int_t roc, Int_t slot, Int_t channel) |
void | AddOFO (Int_t roc, Int_t slot, Int_t channel) |
void | AddFDF (Int_t roc, Int_t slot, Int_t channel) |
void | AddS30 (Int_t roc, Int_t slot, Int_t channel) |
Bool_t | CheckDataIntegrity (const UInt_t roc_id, UInt_t *buffer, UInt_t num_words) |
const MQwF1TDC | GetF1TDCDecoder () const |
Double_t | ReferenceSignalCorrection (Double_t raw_time, Double_t ref_time, Int_t bank_index, Int_t slot) |
void | PrintErrorSummary () |
void | WriteErrorSummary (Bool_t hist_flag=true) |
Data Fields | |
Int_t | fNQwF1TDCs |
TObjArray * | fQwF1TDCList |
EQwDetectorType | fDetectorType |
EQwRegionID | fRegion |
TString | fSystemName |
TH2F * | fError2DHist |
Private Member Functions | |
Double_t | GetF1TDCsResolution () |
TList * | GetErrorSummary () |
TString | PrintNoF1TDC (Int_t roc, Int_t slot) |
TString | PrintNoF1TDC (Int_t tdc_index) |
Bool_t | CheckRegisteredF1 (Int_t roc, Int_t slot) |
Double_t | GetF1TDCTriggerRollover () |
void | SetErrorHistOptions () |
Bool_t | CheckSlot20Chan30 (Int_t slot, Int_t chan) |
ClassDef (QwF1TDContainer, 1) | |
Private Attributes | |
MQwF1TDC | fF1TDCDecoder |
Bool_t | fLocalF1RawDecodeDebug |
Bool_t | fLocalF1DecodeDebug |
Bool_t | fLocalDebug |
Bool_t | fLocalF1ErrorDebug |
Double_t | fF1TDCOneResolutionNS |
Double_t | fF1TDCTriggerRollover |
F1TDCs configuration and reference siganls container.
This would be used to be a configuration and reference signal(s) container for F1TDCs which are used in one subsystem. The subsystem has one QwF1TDContaier that have DetectorType, Region, and QwF1TDC(s)
Definition at line 266 of file QwF1TDContainer.h.
QwF1TDContainer::QwF1TDContainer | ( | ) |
Definition at line 770 of file QwF1TDContainer.cc.
References fDetectorType, fError2DHist, fLocalDebug, fLocalF1DecodeDebug, fLocalF1ErrorDebug, fLocalF1RawDecodeDebug, fNQwF1TDCs, fQwF1TDCList, fRegion, kRegionIDNull, and kTypeNull.
|
virtual |
void QwF1TDContainer::AddEMM | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 932 of file QwF1TDContainer.cc.
References QwF1TDC::AddEMM(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
Referenced by CheckDataIntegrity().
void QwF1TDContainer::AddFDF | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 1033 of file QwF1TDContainer.cc.
References QwF1TDC::AddFDF(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
Referenced by CheckDataIntegrity().
void QwF1TDContainer::AddHFO | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 1000 of file QwF1TDContainer.cc.
References QwF1TDC::AddHFO(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
Referenced by CheckDataIntegrity().
void QwF1TDContainer::AddOFO | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 1016 of file QwF1TDContainer.cc.
References QwF1TDC::AddOFO(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
Referenced by CheckDataIntegrity().
void QwF1TDContainer::AddQwF1TDC | ( | QwF1TDC * | in | ) |
Definition at line 813 of file QwF1TDContainer.cc.
References fLocalDebug, fNQwF1TDCs, and fQwF1TDCList.
Referenced by QwTriggerScintillator::ProcessConfigurationBuffer(), QwSciFiDetector::ProcessConfigurationBuffer(), QwMainDetector::ProcessConfigurationBuffer(), QwDriftChamber::ProcessConfigurationBuffer(), and QwScanner::ProcessConfigurationBuffer().
void QwF1TDContainer::AddRLF | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 983 of file QwF1TDContainer.cc.
References QwF1TDC::AddRLF(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
Referenced by CheckDataIntegrity().
void QwF1TDContainer::AddS30 | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 1051 of file QwF1TDContainer.cc.
References QwF1TDC::AddS30(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
void QwF1TDContainer::AddSEU | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 949 of file QwF1TDContainer.cc.
References QwF1TDC::AddSEU(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
Referenced by CheckDataIntegrity().
void QwF1TDContainer::AddSYN | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 916 of file QwF1TDContainer.cc.
References QwF1TDC::AddSYN(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
Referenced by CheckDataIntegrity().
void QwF1TDContainer::AddTFO | ( | Int_t | roc, |
Int_t | slot, | ||
Int_t | channel | ||
) |
Definition at line 966 of file QwF1TDContainer.cc.
References QwF1TDC::AddTFO(), fLocalF1ErrorDebug, GetF1TDC(), QwF1TDC::PrintChannelErrorCounter(), and PrintNoF1TDC().
Referenced by CheckDataIntegrity().
Bool_t QwF1TDContainer::CheckDataIntegrity | ( | const UInt_t | roc_id, |
UInt_t * | buffer, | ||
UInt_t | num_words | ||
) |
Definition at line 1405 of file QwF1TDContainer.cc.
References AddEMM(), AddFDF(), AddHFO(), AddOFO(), AddRLF(), AddSEU(), AddSYN(), AddTFO(), CheckRegisteredF1(), CheckSlot20Chan30(), MQwF1TDC::DecodeTDCWord(), QwLog::endl(), fError2DHist, fF1TDCDecoder, fLocalDebug, fLocalF1DecodeDebug, fLocalF1RawDecodeDebug, GetF1TDCTriggerRollover(), GetSystemName(), MQwF1TDC::GetTDCChannelAddress(), MQwF1TDC::GetTDCChannelNumber(), MQwF1TDC::GetTDCChipAddress(), MQwF1TDC::GetTDCEventNumber(), MQwF1TDC::GetTDCHeaderEventNumber(), MQwF1TDC::GetTDCHeaderTriggerTime(), MQwF1TDC::GetTDCSlotNumber(), MQwF1TDC::GetTDCTriggerTime(), MQwF1TDC::IsFakeData(), MQwF1TDC::IsHeaderword(), MQwF1TDC::IsHeaderXorSetup(), MQwF1TDC::IsHitFIFOOverFlow(), MQwF1TDC::IsNotHeaderTrigFIFO(), MQwF1TDC::IsOutputFIFOOverFlow(), MQwF1TDC::IsResolutionLock(), MQwF1TDC::IsValidDataSlot(), and QwMessage.
Referenced by QwSciFiDetector::ProcessEvBuffer(), QwTriggerScintillator::ProcessEvBuffer(), QwDriftChamber::ProcessEvBuffer(), QwMainDetector::ProcessEvBuffer(), and QwScanner::ProcessEvBuffer().
|
private |
Definition at line 1887 of file QwF1TDContainer.cc.
References GetF1TDC().
Referenced by CheckDataIntegrity().
|
private |
Definition at line 1898 of file QwF1TDContainer.cc.
Referenced by CheckDataIntegrity().
|
private |
Double_t QwF1TDContainer::DoneF1TDCsConfiguration | ( | ) |
Definition at line 1907 of file QwF1TDContainer.cc.
References fF1TDCOneResolutionNS, and GetF1TDCsResolution().
Referenced by QwTriggerScintillator::ProcessConfigurationBuffer(), QwSciFiDetector::ProcessConfigurationBuffer(), QwMainDetector::ProcessConfigurationBuffer(), QwDriftChamber::ProcessConfigurationBuffer(), and QwScanner::ProcessConfigurationBuffer().
|
inline |
Definition at line 288 of file QwF1TDContainer.h.
References fDetectorType.
Referenced by Print().
|
private |
Definition at line 1368 of file QwF1TDContainer.cc.
References fQwF1TDCList, and QwF1TDC::GetErrorCounter().
Referenced by WriteErrorSummary().
QwF1TDC * QwF1TDContainer::GetF1TDC | ( | Int_t | roc, |
Int_t | slot | ||
) |
Definition at line 828 of file QwF1TDContainer.cc.
References fQwF1TDCList, QwF1TDC::GetROCNumber(), and QwF1TDC::GetSlotNumber().
Referenced by AddEMM(), AddFDF(), AddHFO(), AddOFO(), AddRLF(), AddS30(), AddSEU(), AddSYN(), AddTFO(), and CheckRegisteredF1().
Int_t QwF1TDContainer::GetF1TDCChannelNumber | ( | ) |
Double_t GetF1TDCResolution();.
Definition at line 1310 of file QwF1TDContainer.cc.
References fQwF1TDCList, QwF1TDC::GetChannelNumber(), GetSystemName(), QwF1TDC::PrintContact(), and QwF1TDC::PrintF1TDCConfigure().
|
inline |
Definition at line 326 of file QwF1TDContainer.h.
References fF1TDCDecoder.
Referenced by QwDriftChamber::QwDriftChamber(), QwMainDetector::QwMainDetector(), QwScanner::QwScanner(), QwSciFiDetector::QwSciFiDetector(), and QwTriggerScintillator::QwTriggerScintillator().
const TH2F * QwF1TDContainer::GetF1TDCErrorHist | ( | ) |
Definition at line 1811 of file QwF1TDContainer.cc.
References fError2DHist, and SetErrorHistOptions().
|
inline |
Definition at line 295 of file QwF1TDContainer.h.
References fF1TDCOneResolutionNS.
|
private |
Definition at line 1231 of file QwF1TDContainer.cc.
References fQwF1TDCList, QwF1TDC::GetF1TDC_resolution(), GetSystemName(), QwF1TDC::PrintContact(), and QwF1TDC::PrintF1TDCConfigure().
Referenced by DoneF1TDCsConfiguration().
|
private |
Definition at line 1272 of file QwF1TDContainer.cc.
References fLocalDebug, fQwF1TDCList, QwF1TDC::GetF1TDC_trig_t_offset(), GetSystemName(), QwF1TDC::PrintContact(), and QwF1TDC::PrintF1TDCConfigure().
Referenced by CheckDataIntegrity().
QwF1TDC * QwF1TDContainer::GetF1TDCwithBankIndexSLOT | ( | Int_t | bank_index, |
Int_t | slot | ||
) |
Definition at line 888 of file QwF1TDContainer.cc.
References fQwF1TDCList, QwF1TDC::GetF1BankIndex(), and QwF1TDC::GetSlotNumber().
Referenced by ReferenceSignalCorrection().
QwF1TDC * QwF1TDContainer::GetF1TDCwithIndex | ( | Int_t | tdc_index | ) |
Definition at line 863 of file QwF1TDContainer.cc.
References fQwF1TDCList, and QwF1TDC::GetF1TDCIndex().
|
inline |
Definition at line 289 of file QwF1TDContainer.h.
References fRegion.
Referenced by Print().
|
inline |
Definition at line 285 of file QwF1TDContainer.h.
References fNQwF1TDCs.
Referenced by Print().
|
inline |
Definition at line 280 of file QwF1TDContainer.h.
References fSystemName.
Referenced by CheckDataIntegrity(), GetF1TDCChannelNumber(), GetF1TDCsResolution(), GetF1TDCTriggerRollover(), Print(), PrintNoF1TDC(), and WriteErrorSummary().
|
inline |
void QwF1TDContainer::Print | ( | const Option_t * | options = 0 | ) | const |
Definition at line 1139 of file QwF1TDContainer.cc.
References QwLog::endl(), fQwF1TDCList, GetDetectorType(), GetRegion(), GetSize(), GetSystemName(), and QwMessage.
Referenced by QwTriggerScintillator::ProcessConfigurationBuffer(), QwSciFiDetector::ProcessConfigurationBuffer(), QwMainDetector::ProcessConfigurationBuffer(), QwDriftChamber::ProcessConfigurationBuffer(), and QwScanner::ProcessConfigurationBuffer().
void QwF1TDContainer::PrintErrorSummary | ( | ) |
Definition at line 1351 of file QwF1TDContainer.cc.
References fQwF1TDCList.
Referenced by QwScanner::FillHardwareErrorSummary().
|
private |
|
private |
Definition at line 1180 of file QwF1TDContainer.cc.
References GetSystemName().
Double_t QwF1TDContainer::ReferenceSignalCorrection | ( | Double_t | raw_time, |
Double_t | ref_time, | ||
Int_t | bank_index, | ||
Int_t | slot | ||
) |
Definition at line 1068 of file QwF1TDContainer.cc.
References GetF1TDCwithBankIndexSLOT(), and QwF1TDC::ReferenceSignalCorrection().
Referenced by QwTriggerScintillator::ProcessEvent(), QwMainDetector::ProcessEvent(), QwScanner::ProcessEvent(), QwDriftChamberHDC::SubtractReferenceTimes(), QwDriftChamberVDC::SubtractReferenceTimes(), QwSciFiDetector::SubtractReferenceTimes(), QwMainDetector::SubtractReferenceTimes(), QwTriggerScintillator::SubtractReferenceTimes(), and QwScanner::SubtractReferenceTimes().
|
inline |
Definition at line 298 of file QwF1TDContainer.h.
References fF1TDCOneResolutionNS.
Referenced by QwTriggerScintillator::ProcessEvent(), QwMainDetector::ProcessEvent(), and QwScanner::ProcessEvent().
|
private |
Definition at line 1795 of file QwF1TDContainer.cc.
References fError2DHist.
Referenced by GetF1TDCErrorHist(), and WriteErrorSummary().
void QwF1TDContainer::SetSystemName | ( | const TString | name | ) |
Definition at line 1089 of file QwF1TDContainer.cc.
References QwLog::endl(), fDetectorType, fError2DHist, fRegion, fSystemName, kRegionID1, kRegionID2, kRegionID3, kRegionIDCer, kRegionIDNull, kRegionIDScanner, kRegionIDTrig, kTypeCerenkov, kTypeDriftHDC, kTypeDriftVDC, kTypeNull, kTypeScanner, kTypeSciFiber, kTypeTrigscint, and QwWarning.
|
inline |
void QwF1TDContainer::WriteErrorSummary | ( | Bool_t | hist_flag = true | ) |
Definition at line 1821 of file QwF1TDContainer.cc.
References fError2DHist, fLocalDebug, GetErrorSummary(), GetSystemName(), and SetErrorHistOptions().
Referenced by QwScanner::FillHardwareErrorSummary().
EQwDetectorType QwF1TDContainer::fDetectorType |
Definition at line 338 of file QwF1TDContainer.h.
Referenced by GetDetectorType(), QwF1TDContainer(), and SetSystemName().
TH2F* QwF1TDContainer::fError2DHist |
Definition at line 342 of file QwF1TDContainer.h.
Referenced by CheckDataIntegrity(), GetF1TDCErrorHist(), QwF1TDContainer(), SetErrorHistOptions(), SetSystemName(), WriteErrorSummary(), and ~QwF1TDContainer().
|
private |
Definition at line 347 of file QwF1TDContainer.h.
Referenced by CheckDataIntegrity(), and GetF1TDCDecoder().
|
private |
Definition at line 355 of file QwF1TDContainer.h.
Referenced by DoneF1TDCsConfiguration(), GetF1TDCOneResolution(), and ReturnTimeCalibration().
|
private |
Definition at line 366 of file QwF1TDContainer.h.
|
private |
Definition at line 352 of file QwF1TDContainer.h.
Referenced by AddQwF1TDC(), CheckDataIntegrity(), GetF1TDCTriggerRollover(), QwF1TDContainer(), and WriteErrorSummary().
|
private |
Definition at line 350 of file QwF1TDContainer.h.
Referenced by CheckDataIntegrity(), and QwF1TDContainer().
|
private |
|
private |
Definition at line 349 of file QwF1TDContainer.h.
Referenced by CheckDataIntegrity(), and QwF1TDContainer().
Int_t QwF1TDContainer::fNQwF1TDCs |
Definition at line 270 of file QwF1TDContainer.h.
Referenced by AddQwF1TDC(), GetSize(), HowManyF1TDCs(), QwF1TDContainer(), and Size().
TObjArray* QwF1TDContainer::fQwF1TDCList |
Definition at line 271 of file QwF1TDContainer.h.
Referenced by AddQwF1TDC(), GetErrorSummary(), GetF1TDC(), GetF1TDCChannelNumber(), GetF1TDCsResolution(), GetF1TDCTriggerRollover(), GetF1TDCwithBankIndexSLOT(), GetF1TDCwithIndex(), Print(), PrintErrorSummary(), QwF1TDContainer(), and ~QwF1TDContainer().
EQwRegionID QwF1TDContainer::fRegion |
Definition at line 339 of file QwF1TDContainer.h.
Referenced by GetRegion(), QwF1TDContainer(), and SetSystemName().
TString QwF1TDContainer::fSystemName |
Definition at line 340 of file QwF1TDContainer.h.
Referenced by GetSystemName(), and SetSystemName().