Belle II Software
release-08-01-10
|
The PXDUnpacker module. More...
#include <PXDUnpackerModule.h>
Public Types | |
enum | EModulePropFlags { c_Input = 1 , c_Output = 2 , c_ParallelProcessingCertified = 4 , c_HistogramManager = 8 , c_InternalSerializer = 16 , c_TerminateInAllProcesses = 32 , c_DontCollectStatistics = 64 } |
Each module can be tagged with property flags, which indicate certain features of the module. More... | |
typedef ModuleCondition::EAfterConditionPath | EAfterConditionPath |
Forward the EAfterConditionPath definition from the ModuleCondition. | |
Public Member Functions | |
PXDUnpackerModule () | |
Constructor defining the parameters. | |
virtual std::vector< std::string > | getFileNames (bool outputFiles) |
Return a list of output filenames for this modules. More... | |
virtual void | endRun () |
This method is called if the current run ends. More... | |
const std::string & | getName () const |
Returns the name of the module. More... | |
const std::string & | getType () const |
Returns the type of the module (i.e. More... | |
const std::string & | getPackage () const |
Returns the package this module is in. | |
const std::string & | getDescription () const |
Returns the description of the module. | |
void | setName (const std::string &name) |
Set the name of the module. More... | |
void | setPropertyFlags (unsigned int propertyFlags) |
Sets the flags for the module properties. More... | |
LogConfig & | getLogConfig () |
Returns the log system configuration. | |
void | setLogConfig (const LogConfig &logConfig) |
Set the log system configuration. | |
void | setLogLevel (int logLevel) |
Configure the log level. | |
void | setDebugLevel (int debugLevel) |
Configure the debug messaging level. | |
void | setAbortLevel (int abortLevel) |
Configure the abort log level. | |
void | setLogInfo (int logLevel, unsigned int logInfo) |
Configure the printed log information for the given level. More... | |
void | if_value (const std::string &expression, const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
Add a condition to the module. More... | |
void | if_false (const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
A simplified version to add a condition to the module. More... | |
void | if_true (const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
A simplified version to set the condition of the module. More... | |
bool | hasCondition () const |
Returns true if at least one condition was set for the module. | |
const ModuleCondition * | getCondition () const |
Return a pointer to the first condition (or nullptr, if none was set) | |
const std::vector< ModuleCondition > & | getAllConditions () const |
Return all set conditions for this module. | |
bool | evalCondition () const |
If at least one condition was set, it is evaluated and true returned if at least one condition returns true. More... | |
std::shared_ptr< Path > | getConditionPath () const |
Returns the path of the last true condition (if there is at least one, else reaturn a null pointer). More... | |
Module::EAfterConditionPath | getAfterConditionPath () const |
What to do after the conditional path is finished. More... | |
std::vector< std::shared_ptr< Path > > | getAllConditionPaths () const |
Return all condition paths currently set (no matter if the condition is true or not). | |
bool | hasProperties (unsigned int propertyFlags) const |
Returns true if all specified property flags are available in this module. More... | |
bool | hasUnsetForcedParams () const |
Returns true and prints error message if the module has unset parameters which the user has to set in the steering file. | |
const ModuleParamList & | getParamList () const |
Return module param list. | |
template<typename T > | |
ModuleParam< T > & | getParam (const std::string &name) const |
Returns a reference to a parameter. More... | |
bool | hasReturnValue () const |
Return true if this module has a valid return value set. | |
int | getReturnValue () const |
Return the return value set by this module. More... | |
std::shared_ptr< PathElement > | clone () const override |
Create an independent copy of this module. More... | |
std::shared_ptr< boost::python::list > | getParamInfoListPython () const |
Returns a python list of all parameters. More... | |
Static Public Member Functions | |
static int | nr5bits (int i) |
helper function to "count" nr of set bits within lower 5 bits. More... | |
static void | dump_dhp (void *data, unsigned int frame_len) |
dump to a file, helper function for debugging. | |
static void | dump_roi (void *data, unsigned int frame_len) |
dump to a file, helper function for debugging. | |
static void | exposePythonAPI () |
Exposes methods of the Module class to Python. | |
Protected Member Functions | |
virtual void | def_initialize () |
Wrappers to make the methods without "def_" prefix callable from Python. More... | |
virtual void | def_beginRun () |
Wrapper method for the virtual function beginRun() that has the implementation to be used in a call from Python. | |
virtual void | def_event () |
Wrapper method for the virtual function event() that has the implementation to be used in a call from Python. | |
virtual void | def_endRun () |
This method can receive that the current run ends as a call from the Python side. More... | |
virtual void | def_terminate () |
Wrapper method for the virtual function terminate() that has the implementation to be used in a call from Python. | |
void | setDescription (const std::string &description) |
Sets the description of the module. More... | |
void | setType (const std::string &type) |
Set the module type. More... | |
template<typename T > | |
void | addParam (const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue) |
Adds a new parameter to the module. More... | |
template<typename T > | |
void | addParam (const std::string &name, T ¶mVariable, const std::string &description) |
Adds a new enforced parameter to the module. More... | |
void | setReturnValue (int value) |
Sets the return value for this module as integer. More... | |
void | setReturnValue (bool value) |
Sets the return value for this module as bool. More... | |
void | setParamList (const ModuleParamList ¶ms) |
Replace existing parameter list. | |
Private Member Functions | |
void | initialize () override final |
Initialize the module. More... | |
void | beginRun () override final |
Begin Run. | |
void | event () override final |
do the unpacking | |
void | terminate () override final |
Terminate the module. | |
void | unpack_rawpxd (RawPXD &px, int inx) |
Unpack one event (several frames) stored in RawPXD object. More... | |
void | unpack_dhc_frame_v01 (void *data, const int length, const int Frame_Number, const int Frames_in_event, PXDDAQPacketStatus &daqpktstat) |
==== the functions for the "old" firmware ==== More... | |
void | unpack_dhp_v01 (void *data, unsigned int length, unsigned int dhe_first_readout_frame_lo, unsigned int dhe_ID, unsigned dhe_DHPport, unsigned dhe_reformat, VxdID vxd_id, PXDDAQPacketStatus &daqpktstat) |
Unpack DHP data within one DHE frame. More... | |
void | unpack_dhc_frame_v10 (void *data, const int length, const int Frame_Number, const int Frames_in_event, PXDDAQPacketStatus &daqpktstat) |
==== the functions for the "new" firmware ==== More... | |
void | unpack_dhp_v10 (void *data, unsigned int length, unsigned int dhe_first_readout_frame_lo, unsigned int dhe_ID, unsigned dhe_DHPport, unsigned dhe_reformat, VxdID vxd_id, PXDDAQPacketStatus &daqpktstat) |
Unpack DHP data within one DHE frame. More... | |
void | unpack_dhp_raw (void *data, unsigned int length, unsigned int dhe_ID, unsigned dhe_DHPport, VxdID vxd_id) |
==== more firmware version independent functions ==== More... | |
void | unpack_fce (unsigned short *data, unsigned int length, VxdID vxd_id) |
Unpack DHP/FCE data within one DHE frame Not fully implemented as cluster format not 100% fixed. More... | |
std::list< ModulePtr > | getModules () const override |
no submodules, return empty list | |
std::string | getPathString () const override |
return the module name. | |
void | setParamPython (const std::string &name, const boost::python::object &pyObj) |
Implements a method for setting boost::python objects. More... | |
void | setParamPythonDict (const boost::python::dict &dictionary) |
Implements a method for reading the parameter values from a boost::python dictionary. More... | |
Private Attributes | |
std::string | m_RawPXDsName |
The name of the StoreArray of processed RawPXDs. | |
std::string | m_PXDDAQEvtStatsName |
The name of the StoreObjPtr of PXDDAQStatus to be generated. | |
std::string | m_PXDRawHitsName |
The name of the StoreArray of PXDRawHits to be generated. | |
std::string | m_PXDRawAdcsName |
The name of the StoreArray of PXDRawAdcs to be generated. | |
std::string | m_PXDRawROIsName |
The name of the StoreArray of PXDRawROIs to be generated. | |
bool | m_doNotStore {false} |
Only unpack, but Do Not Store anything to file. | |
bool | m_checkPaddingCRC {false} |
Check for susp. More... | |
bool | m_forceMapping {false} |
Force Mapping even if DHH bit is not requesting it. | |
bool | m_forceNoMapping {false} |
Force No Mapping even if DHH bit is requesting it. | |
unsigned int | m_maxDHPFrameDiff {0} |
Maximum DHP frame difference until error is reported. | |
int | m_firmware {0} |
Firmware version, must be read from database on run change. | |
PXDError::PXDErrorFlags | m_criticalErrorMask {} |
Critical error mask which defines return value of task. | |
PXDError::PXDErrorFlags | m_suppressErrorMask {} |
Mask for suppressing selected error messages. | |
PXDError::PXDErrorFlags | m_errorSkipPacketMask {} |
Mask for error which stop package unpacking directly. | |
unsigned long | m_meta_event_nr {0} |
Event Number from MetaInfo. | |
unsigned long | m_meta_run_nr {0} |
Run Number from MetaInfo. | |
unsigned long | m_meta_subrun_nr {0} |
Subrun Number from MetaInfo. | |
unsigned long | m_meta_experiment {0} |
Experiment from MetaInfo. | |
unsigned long long int | m_meta_time {0} |
Time(Tag) from MetaInfo. | |
unsigned int | m_meta_sec {0} |
Time(Tag) from MetaInfo, seconds (masked to lower bits) | |
unsigned int | m_meta_ticks {0} |
Time(Tag) from MetaInfo, Ticks of 127MHz. | |
unsigned int | m_unpackedEventsCount {0} |
Event counter. | |
unsigned int | m_errorCounter [PXDError::ONSEN_MAX_TYPE_ERR] {} |
Error counters. | |
bool | m_verbose {false} |
give verbose unpacking information | |
bool | m_continueOnError {false} |
flag continue unpacking of frames even after error (for debugging) | |
StoreArray< RawPXD > | m_storeRawPXD |
Input array for PXD Raw. | |
StoreObjPtr< EventMetaData > | m_eventMetaData |
Input ptr for EventMetaData. | |
StoreArray< PXDRawHit > | m_storeRawHits |
Output array for Raw Hits. | |
StoreArray< PXDRawROIs > | m_storeROIs |
Output array for Raw ROIs. | |
StoreObjPtr< PXDDAQStatus > | m_storeDAQEvtStats |
Output array for DAQ Status. | |
StoreArray< PXDRawAdc > | m_storeRawAdc |
Output array for Raw Adcs. | |
PXDError::PXDErrorFlags | m_errorMask {0} |
Error Mask set per packet / frame. | |
PXDError::PXDErrorFlags | m_errorMaskDHE {0} |
Error Mask set per packet / DHE. | |
PXDError::PXDErrorFlags | m_errorMaskDHC {0} |
Error Mask set per packet / DHC. | |
PXDError::PXDErrorFlags | m_errorMaskPacket {0} |
Error Mask set per packet / packet. | |
PXDError::PXDErrorFlags | m_errorMaskEvent {0} |
Error Mask set per packet / event. | |
unsigned int | m_notaccepted {0} |
counter for not accepted events... More... | |
unsigned int | m_sendrois {0} |
counter for send debug rois | |
unsigned int | m_sendunfiltered {0} |
counter for send unfiltered | |
bool | m_formatBonnDAQ {false} |
flag ONSEN or BonnDAQ format | |
int | m_last_dhp_readout_frame_lo [4] { -1} |
some workaround check for continouous frame ids | |
OptionalDBObjPtr< PXDDHHFirmwareVersionPar > | m_firmwareFromDB {"PXDDHHFirmwareVersion"} |
firmware version from DB. | |
int | m_overrideFirmwareVersion {0} |
override firmware version from DB. | |
std::string | m_name |
The name of the module, saved as a string (user-modifiable) | |
std::string | m_type |
The type of the module, saved as a string. | |
std::string | m_package |
Package this module is found in (may be empty). | |
std::string | m_description |
The description of the module. | |
unsigned int | m_propertyFlags |
The properties of the module as bitwise or (with |) of EModulePropFlags. | |
LogConfig | m_logConfig |
The log system configuration of the module. | |
ModuleParamList | m_moduleParamList |
List storing and managing all parameter of the module. | |
bool | m_hasReturnValue |
True, if the return value is set. | |
int | m_returnValue |
The return value. | |
std::vector< ModuleCondition > | m_conditions |
Module condition, only non-null if set. | |
The PXDUnpacker module.
This module is responsible for unpacking the Raw PXD data to Pixels in v_cellID and u_cellID (global tracking coordinates system) Doing that, sophisticated error and consistency checking is done from the lowest data level on
Definition at line 44 of file PXDUnpackerModule.h.
|
inherited |
Each module can be tagged with property flags, which indicate certain features of the module.
Enumerator | |
---|---|
c_Input | This module is an input module (reads data). |
c_Output | This module is an output module (writes data). |
c_ParallelProcessingCertified | This module can be run in parallel processing mode safely (All I/O must be done through the data store, in particular, the module must not write any files.) |
c_HistogramManager | This module is used to manage histograms accumulated by other modules. |
c_InternalSerializer | This module is an internal serializer/deserializer for parallel processing. |
c_TerminateInAllProcesses | When using parallel processing, call this module's terminate() function in all processes(). This will also ensure that there is exactly one process (single-core if no parallel modules found) or at least one input, one main and one output process. |
c_DontCollectStatistics | No statistics is collected for this module. |
|
overridevirtualinherited |
Create an independent copy of this module.
Note that parameters are shared, so changing them on a cloned module will also affect the original module.
Implements PathElement.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
Wrappers to make the methods without "def_" prefix callable from Python.
Overridden in PyModule. Wrapper method for the virtual function initialize() that has the implementation to be used in a call from Python.
Reimplemented in PyModule.
|
inlinevirtualinherited |
This method is called if the current run ends.
Use this method to store information, which should be aggregated over one run.
This method can be implemented by subclasses.
Reimplemented in DQMHistOutputToEPICSModule, DQMHistAnalysisTRGModule, DQMHistAnalysisRooFitExampleModule, DQMHistAnalysisPXDTrackChargeModule, DQMHistAnalysisPXDChargeModule, DQMHistAnalysisEpicsOutputModule, DQMHistAnalysisDeltaTestModule, DQMHistAnalysisDeltaEpicsMonObjExampleModule, vxdDigitMaskingModule, TrackSetEvaluatorHopfieldNNDEVModule, SVDUnpackerDQMModule, PyModule, DQMHistSnapshotsModule, DQMHistDeltaHistoModule, DQMHistComparitorModule, DQMHistAnalysisTRGGDLModule, DQMHistAnalysisTRGECLModule, DQMHistAnalysisTOPModule, DQMHistAnalysisSVDOnMiraBelleModule, DQMHistAnalysisSVDGeneralModule, DQMHistAnalysisSVDEfficiencyModule, DQMHistAnalysisSVDDoseModule, DQMHistAnalysisPXDFitsModule, DQMHistAnalysisOutputRelayMsgModule, DQMHistAnalysisOutputMonObjModule, DQMHistAnalysisOutputFileModule, DQMHistAnalysisMonObjModule, DQMHistAnalysisMiraBelleModule, DQMHistAnalysisKLM2Module, DQMHistAnalysisKLMModule, DQMHistAnalysisInputTestModule, DQMHistAnalysisInputPVSrvModule, DQMHistAnalysisHLTMonObjModule, DQMHistAnalysisExampleFlagsModule, DQMHistAnalysisExampleModule, DQMHistAnalysisEpicsExampleModule, DQMHistAnalysisECLSummaryModule, DQMHistAnalysisECLShapersModule, DQMHistAnalysisECLOutOfTimeDigitsModule, DQMHistAnalysisECLConnectedRegionsModule, DQMHistAnalysisECLModule, DQMHistAnalysisDAQMonObjModule, DQMHistAnalysisCDCMonObjModule, DQMHistAnalysisCDCDedxModule, DQMHistAnalysisARICHMonObjModule, DQMHistAnalysisARICHModule, TRGRAWDATAModule, TRGTOPWaveformPlotterModule, TRGTOPUnpackerWaveformModule, TRGTOPUnpackerModule, TRGTOPTRD2TTSConverterModule, TRGTOPDQMModule, KLMTriggerModule, TRGGRLUnpackerModule, TRGGRLDQMModule, TRGGRLProjectsModule, TRGGRLModule, TRGGRLMatchModule, TRGGDLUnpackerModule, TRGGDLSummaryModule, TRGGDLDSTModule, TRGGDLDQMModule, TRGGDLModule, TRGECLUnpackerModule, TRGECLTimingCalModule, TRGECLRawdataAnalysisModule, TRGECLQAMModule, TRGECLDQMModule, TRGECLBGTCHitModule, TRGECLModule, TRGECLFAMModule, MCMatcherTRGECLModule, TRGCDCTSStreamModule, TRGCDCTSFUnpackerModule, TRGCDCTSFDQMModule, TRGCDCT3DUnpackerModule, TRGCDCT3DDQMModule, TRGCDCT3DConverterModule, TRGCDCT2DDQMModule, TRGCDCETFUnpackerModule, TRGCDCModule, CDCTriggerNDFinderModule, CDCTriggerNeuroDQMOnlineModule, CDCTriggerNeuroDQMModule, FindletModule< AFindlet >, FindletModule< TrackFinderAutomaton >, FindletModule< FacetCreator >, FindletModule< CKFToCDCFromEclFindlet >, FindletModule< AxialTrackCreatorMCTruth >, FindletModule< AxialStraightTrackFinder >, FindletModule< CKFToCDCFindlet >, FindletModule< CKFToSVDSeedFindlet >, FindletModule< SegmentLinker >, FindletModule< TrackCreatorSegmentTripleAutomaton >, FindletModule< TrackCreatorSegmentPairAutomaton >, FindletModule< SegmentOrienter >, FindletModule< SegmentCreatorFacetAutomaton >, FindletModule< TrackFinderSegmentTripleAutomaton >, FindletModule< SegmentFinderFacetAutomaton >, FindletModule< CKFToSVDFindlet >, FindletModule< TrackRejecter >, FindletModule< SegmentCreatorMCTruth >, FindletModule< TrackFinderCosmics >, FindletModule< TrackExporter >, FindletModule< SuperClusterCreator >, FindletModule< AsicBackgroundLibraryCreator >, FindletModule< HitBasedT0Extractor >, FindletModule< TrackFinderSegmentPairAutomaton >, FindletModule< ClusterPreparer >, FindletModule< AxialTrackFinderHough >, FindletModule< CosmicsTrackMergerFindlet >, FindletModule< TrackOrienter >, FindletModule< TrackLinker >, FindletModule< TrackFinder >, FindletModule< SegmentPairCreator >, FindletModule< MonopoleAxialTrackFinderLegendre >, FindletModule< HitReclaimer >, FindletModule< ClusterRefiner< BridgingWireHitRelationFilter > >, FindletModule< AxialTrackFinderLegendre >, FindletModule< AxialTrackCreatorSegmentHough >, FindletModule< TrackQualityEstimator >, FindletModule< StereoHitFinder >, FindletModule< CKFToPXDFindlet >, FindletModule< WireHitPreparer >, FindletModule< TrackFlightTimeAdjuster >, FindletModule< TrackCreatorSingleSegments >, FindletModule< SegmentRejecter >, FindletModule< SegmentFitter >, FindletModule< SegmentTripleCreator >, FindletModule< SegmentTrackCombiner >, FindletModule< vxdHoughTracking::SVDHoughTracking >, FindletModule< MCVXDCDCTrackMergerFindlet >, FindletModule< TrackCombiner >, FindletModule< MonopoleStereoHitFinder >, FindletModule< DATCONFPGAFindlet >, FindletModule< WireHitBackgroundDetector >, FindletModule< AxialSegmentPairCreator >, FindletModule< WireHitCreator >, FindletModule< TrackQualityAsserter >, FindletModule< MonopoleStereoHitFinderQuadratic >, FindletModule< ClusterBackgroundDetector >, FindletModule< CDCTrackingEventLevelMdstInfoFillerFindlet >, VXDTFTrainingDataCollectorModule, SectorMapBootstrapModule, NoKickCutsEvalModule, VXDSimpleClusterizerModule, TrackFinderVXDAnalizerModule, SecMapTrainerVXDTFModule, SecMapTrainerBaseModule, V0findingPerformanceEvaluationModule, TrackingPerformanceEvaluationModule, HitXPModule, EffPlotsModule, TrackFinderMCTruthRecoTracksModule, SVDROIFinderModule, SVDROIFinderAnalysisModule, SVDROIDQMModule, SPTCvirtualIPRemoverModule, SPTCmomentumSeedRetrieverModule, RT2SPTCConverterModule, PXDROIFinderModule, MCSlowPionPXDROICreatorModule, MuidModule, MCTrackCandClassifierModule, MCV0MatcherModule, GenfitVisModule, ExtModule, TOPXTalkChargeShareSetterModule, TOPWaveformQualityPlotterModule, TOPWaveformFeatureExtractorModule, TOPUnpackerModule, TOPTimeBaseCalibratorModule, TOPTBCComparatorModule, TOPRawDigitConverterModule, TOPPackerModule, TOPNtupleModule, TOPMCTrackMakerModule, TOPLaserCalibratorModule, TOPInterimFENtupleModule, TOPLaserHitSelectorModule, TOPGainEfficiencyCalculatorModule, TOPDoublePulseGeneratorModule, TOPTriggerDigitizerModule, TOPChannelT0MCModule, TOPBackgroundModule, SVDUnpackerModule, SVDTriggerQualityGeneratorModule, SVD3SamplesEmulatorModule, SVDRecoDigitCreatorModule, SVDDataFormatCheckModule, SVDCoGTimeEstimatorModule, SVDClusterizerModule, SVDShaperDigitsFromTracksModule, SVDPerformanceModule, SVDOccupancyAnalysisModule, SVDClusterFilterModule, SVDClusterEvaluationTrueInfoModule, SVDClusterEvaluationModule, SVDB4CommissioningPlotsModule, SVDPackerModule, svdDumpModule, SVDTimeCalibrationsMonitorModule, SVDPositionErrorScaleFactorImporterModule, SVDLocalCalibrationsMonitorModule, SVDLatencyCalibrationModule, SVDHotStripFinderModule, SVDClusterCalibrationsMonitorModule, SVDBackgroundModule, FullSimModule, PIDNtupleModule, MdstPIDModule, KlongValidationModule, DataWriterModule, CDCDedxValidationModule, CDCDedxDQMModule, Root2BinaryModule, PrintEventRateModule, PrintDataModule, Convert2RawDetModule, PXDPerformanceModule, PXDClustersFromTracksModule, PXDBackgroundModule, AWESOMEBasicModule, KLMUnpackerModule, KLMScintillatorSimulatorModule, KLMReconstructorModule, KLMPackerModule, KLMDQM2Module, KLMDQMModule, KLMDigitizerModule, KLMClustersReconstructorModule, KLMClusterEfficiencyModule, EKLMDataCheckerModule, BKLMTrackingModule, BKLMSimHistogrammerModule, BKLMDigitAnalyzerModule, BKLMAnaModule, OverrideGenerationFlagsModule, EvtGenDecayModule, ZMQTxWorkerModule, ZMQTxInputModule, TxModule, RxModule, SeqRootOutputModule, SeqRootInputModule, StatisticsSummaryModule, HistoManagerModule, RandomBarrierModule, EventInfoPrinterModule, SwitchDataStoreModule, SubEventModule, HistoModule, ECLWaveformFitModule, ECLUnpackerModule, ECLSplitterN2Module, ECLSplitterN1Module, ECLShowerShapeModule, ECLShowerCorrectorModule, ECLShowerCalibratorModule, ECLPackerModule, ECLLOMModule, ECLLocalRunCalibratorModule, ECLLocalMaximumFinderModule, ECLHitDebugModule, ECLFinalizerModule, ECLDQMEXTENDEDModule, ECLDQMModule, EclDisplayModule, ECLDigitizerPureCsIModule, ECLDigitizerModule, ECLDigitCalibratorModule, ECLDataAnalysisModule, ECLCRFinderModule, ECLCovarianceMatrixModule, ECLClusterPSDModule, ECLChargedPIDDataAnalysisValidationModule, ECLChargedPIDDataAnalysisModule, ECLChargedPIDModule, ECLBackgroundModule, PhysicsObjectsMiraBelleModule, PhysicsObjectsMiraBelleHadronModule, PhysicsObjectsMiraBelleDstModule, PhysicsObjectsMiraBelleDst2Module, PhysicsObjectsMiraBelleBhabhaModule, PhysicsObjectsDQMModule, DQMHistAnalysisInputModule, StorageSerializerModule, StorageRootOutputModule, StorageDeserializerModule, SeqRootMergerModule, PartialSeqRootReaderModule, Ds2RawFileModule, Rbuf2RbufModule, Rbuf2DsModule, RawInputModule, Raw2DsModule, FastRbuf2DsModule, EvReductionModule, Ds2RbufModule, Ds2RawModule, CertifyParallelModule, SerializerModule, Root2RawModule, MonitorDataCOPPERModule, GenRawSendModule, DeSerializerPXDModule, ElapsedTimeModule, HLTDs2ZMQModule, HLTDQM2ZMQModule, ReceiveEventModule, Ds2SampleModule, TrackAnaModule, MonitorDataModule, DqmHistoManagerModule, TxSocketModule, RxSocketModule, DAQPerfModule, CDCUnpackerModule, CDCRecoTrackFilterModule, CDCPackerModule, CDCDQMModule, cdcDQM7Module, CDCCRTestModule, CDCCosmicAnalysisModule, QcsmonitorStudyModule, QcsmonitorDigitizerModule, PlumeDigitizerModule, PindiodeStudyModule, PinDigitizerModule, TPCStudyModule, TpcDigitizerModule, MicrotpcStudyModule, He3tubeStudyModule, He3DigitizerModule, FANGSStudyModule, FANGSDigitizerModule, DosiStudyModule, DosiDigitizerModule, CsIStudyModule, CsiStudy_v2Module, CsiModule, CsIDigitizerModule, CsiDigitizer_v2Module, ClawsStudyModule, ClawsDigitizerModule, ClawStudyModule, ClawDigitizerModule, BgoStudyModule, BgoDigitizerModule, BeamDigitizerModule, BeamabortStudyModule, ReprocessorModule, NtuplePhase1_v6Module, AnalysisPhase1StudyModule, BGOverlayInputModule, BeamBkgTagSetterModule, BeamBkgMixerModule, BeamBkgHitRateMonitorModule, BeamBkgGeneratorModule, BelleMCOutputModule, B2BIIMdstInputModule, B2BIIConvertMdstModule, B2BIIMCParticlesMonitorModule, ARICHDQMModule, arichBtestModule, LowEnergyPi0VetoExpertModule, LowEnergyPi0IdentificationExpertModule, CurlTaggerModule, CosmicsAlignmentValidationModule, AlignDQMModule, CalibrationCollectorModule, GetEventFromSocketModule, SrsensorModule, QcsmonitorModule, PlumeModule, PindiodeModule, Ph1sustrModule, Ph1bpipeModule, MicrotpcModule, He3tubeModule, FANGSModule, DosiModule, CLAWSModule, ClawModule, CaveModule, BgoModule, and BeamabortModule.
|
inherited |
If at least one condition was set, it is evaluated and true returned if at least one condition returns true.
If no condition or result value was defined, the method returns false. Otherwise, the condition is evaluated and true returned, if at least one condition returns true. To speed up the evaluation, the condition strings were already parsed in the method if_value().
|
inherited |
|
inherited |
|
inlinevirtualinherited |
Return a list of output filenames for this modules.
This will be called when basf2 is run with "--dry-run" if the module has set either the c_Input or c_Output properties.
If the parameter outputFiles
is false (for modules with c_Input) the list of input filenames should be returned (if any). If outputFiles
is true (for modules with c_Output) the list of output files should be returned (if any).
If a module has sat both properties this member is called twice, once for each property.
The module should return the actual list of requested input or produced output filenames (including handling of input/output overrides) so that the grid system can handle input/output files correctly.
This function should return the same value when called multiple times. This is especially important when taking the input/output overrides from Environment as they get consumed when obtained so the finalized list of output files should be stored for subsequent calls.
Reimplemented in RootOutputModule, StorageRootOutputModule, and RootInputModule.
|
inlineinherited |
Returns the name of the module.
This can be changed via e.g. set_name() in the steering file to give more useful names if there is more than one module of the same type.
For identifying the type of a module, using getType() (or type() in Python) is recommended.
|
inherited |
Returns a python list of all parameters.
Each item in the list consists of the name of the parameter, a string describing its type, a python list of all default values and the description of the parameter.
|
inlineinherited |
Return the return value set by this module.
This value is only meaningful if hasReturnValue() is true
|
inherited |
|
inherited |
|
inherited |
A simplified version to add a condition to the module.
Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.
Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.
It is equivalent to the if_value() method, using the expression "<1". This method is meant to be used together with the setReturnValue(bool value) method.
path | Shared pointer to the Path which will be executed if the return value is false. |
afterConditionPath | What to do after executing 'path'. |
|
inherited |
A simplified version to set the condition of the module.
Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.
Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.
It is equivalent to the if_value() method, using the expression ">=1". This method is meant to be used together with the setReturnValue(bool value) method.
path | Shared pointer to the Path which will be executed if the return value is true. |
afterConditionPath | What to do after executing 'path'. |
|
inherited |
Add a condition to the module.
Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.
See https://confluence.desy.de/display/BI/Software+ModCondTut or ModuleCondition for a description of the syntax.
Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.
expression | The expression of the condition. |
path | Shared pointer to the Path which will be executed if the condition is evaluated to true. |
afterConditionPath | What to do after executing 'path'. |
|
finaloverrideprivatevirtual |
Initialize the module.
actually, later we do not want to store ROIs and raw ADC into output file ... aside from debugging
Reimplemented from Module.
Definition at line 80 of file PXDUnpackerModule.cc.
|
static |
helper function to "count" nr of set bits within lower 5 bits.
It does not need the class object, thus static.
too lazy to count the bits myself, thus using a small lookup table
Definition at line 2483 of file PXDUnpackerModule.cc.
|
protectedinherited |
|
inherited |
Configure the printed log information for the given level.
logLevel | The log level (one of LogConfig::ELogLevel) |
logInfo | What kind of info should be printed? ORed combination of LogConfig::ELogInfo flags. |
|
inlineinherited |
|
privateinherited |
Implements a method for setting boost::python objects.
The method supports the following types: list, dict, int, double, string, bool The conversion of the python object to the C++ type and the final storage of the parameter value is done in the ModuleParam class.
name | The unique name of the parameter. |
pyObj | The object which should be converted and stored as the parameter value. |
|
privateinherited |
Implements a method for reading the parameter values from a boost::python dictionary.
The key of the dictionary has to be the name of the parameter and the value has to be of one of the supported parameter types.
dictionary | The python dictionary from which the parameter values are read. |
|
inherited |
|
protectedinherited |
Sets the return value for this module as bool.
The bool value is saved as an integer with the convention 1 meaning true and 0 meaning false. The value can be used in the steering file to divide the analysis chain into several paths.
value | The value of the return value. |
|
protectedinherited |
|
protectedinherited |
|
private |
==== the functions for the "old" firmware ====
Unpack one frame (within an event).
data | pointer to frame |
length | length of frame |
Frame_Number | current frame number |
Frames_in_event | number of frames in PxdRaw object (subevent) |
daqpktstat | Daq Packet Status Object |
The following STATIC variables are used to save some state or count some things while depacking the frames. they are in most cases (re)set on the first frame or ONSEN trg frame Most could put in as a class member, but they are only needed within this function
We reset the counters on the first event
invalid
TODO here we should check full(!) Event Number, Run Number, Subrun Nr and Exp Number of this frame against the one from MEta Event Info
refering to BelleII Note Nr 0010, the numbers run from ... to unsigned int layer, ladder, sensor; layer= vxdid.getLayerNumber();/// 1 ... 2 ladder= vxdid.getLadderNumber();/// 1 ... 8 and 1 ... 12 sensor= vxdid.getSensorNumber();/// 1 ... 2 dhe_id = ((layer-1)<<5) | ((ladder)<<1) | (sensor-1);
Attention: Firmware might be changed such, that ghostframe come for all DHPs, not only active ones...
TODO how to handle error flags set in in DHC_END?
invalid
TODO how to handle error flags set in in DHE_END?
invalid
CRC is without the DHC header, see reason in function
Check that ONSEN Trg is first Frame
Check that there is no other DHC Start
Check that DHC Start is first Frame
Check that there is no other DHC Start
Check that DHC End is last Frame
As we now have processed the whole event, we can do some more consistency checks!
Check that there is no other DHC End
Check that (if there is at least one active DHE) the second Frame is DHE Start, actually this is redundant if the other checks work
Definition at line 911 of file PXDUnpackerModule.cc.
|
private |
==== the functions for the "new" firmware ====
Unpack one frame (within an event).
data | pointer to frame |
length | length of frame |
Frame_Number | current frame number |
Frames_in_event | number of frames in PxdRaw object (subevent) |
daqpktstat | Daq Packet Status Object |
The following STATIC variables are used to save some state or count some things while depacking the frames. they are in most cases (re)set on the first frame or ONSEN trg frame Most could put in as a class member, but they are only needed within this function
We reset the counters on the first event
invalid
TODO here we should check full(!) Event Number, Run Number, Subrun Nr and Exp Number of this frame against the one from MEta Event Info
refering to BelleII Note Nr 0010, the numbers run from ... to unsigned int layer, ladder, sensor; layer= vxdid.getLayerNumber();/// 1 ... 2 ladder= vxdid.getLadderNumber();/// 1 ... 8 and 1 ... 12 sensor= vxdid.getSensorNumber();/// 1 ... 2 dhe_id = ((layer-1)<<5) | ((ladder)<<1) | (sensor-1);
Attention: Firmware might be changed such, that ghostframe come for all DHPs, not only active ones...
TODO how to handle error flags set in in DHC_END?
invalid
TODO how to handle error flags set in in DHE_END?
invalid
CRC is without the DHC header, see reason in function
Check that ONSEN Trg is first Frame
Check that there is no other DHC Start
Check that DHC Start is first Frame
Check that there is no other DHC Start
Check that DHC End is last Frame
As we now have processed the whole event, we can do some more consistency checks!
Check that there is no other DHC End
Check that (if there is at least one active DHE) the second Frame is DHE Start, actually this is redundant if the other checks work
Definition at line 1686 of file PXDUnpackerModule.cc.
|
private |
==== more firmware version independent functions ====
Unpack DHP RAW data within one DHE frame (pedestals, etc)
data | pointer to dhp data |
length | length of dhp data |
dhe_ID | raw DHE ID from DHC frame |
dhe_DHPport | raw DHP port from DHC frame |
vxd_id | vertex Detector ID |
Important Remark: Up to now the format for Raw frames as well as size etc is not well defined. It will most likely change! E.g. not the whole mem is dumped, but only a part of it.
Endian Swapping is done in Contructors of Raw Objects!
Definition at line 319 of file PXDUnpackerModule.cc.
|
private |
Unpack DHP data within one DHE frame.
data | pointer to dhp data |
length | length of dhp data |
dhe_first_readout_frame_lo | 16 bit of the first readout frame from DHE Start |
dhe_ID | raw DHE ID from DHC frame |
dhe_DHPport | raw DHP port from DHC frame |
dhe_reformat | flag if DHE did reformatting |
vxd_id | vertex Detector ID |
daqpktstat | Daq Packet Status Object |
FIXME TODO set an error bit ... but define one first
Definition at line 463 of file PXDUnpackerModule.cc.
|
private |
Unpack DHP data within one DHE frame.
data | pointer to dhp data |
length | length of dhp data |
dhe_first_readout_frame_lo | 16 bit of the first readout frame from DHE Start |
dhe_ID | raw DHE ID from DHC frame |
dhe_DHPport | raw DHP port from DHC frame |
dhe_reformat | flag if DHE did reformatting |
vxd_id | vertex Detector ID |
daqpktstat | Daq Packet Status Object |
FIXME TODO set an error bit ... but define one first
Definition at line 683 of file PXDUnpackerModule.cc.
|
private |
Unpack DHP/FCE data within one DHE frame Not fully implemented as cluster format not 100% fixed.
data | pointer to dhp data |
length | length of dhp data |
vxd_id | vertex Detector ID |
Important Remark: Up to now the format for cluster is not well defined. We need to wait for the final hardware implementation. Then the following code must be re-checked TODO
Definition at line 380 of file PXDUnpackerModule.cc.
|
private |
Unpack one event (several frames) stored in RawPXD object.
in bytes ... rounded up to next 32bit boundary
NEW format
len of frame in bytes
round up to next 32 bit boundary
1–9 is reserved for old firmware
10– is used for new firmware
no rounding needed
Definition at line 186 of file PXDUnpackerModule.cc.
|
private |
Check for susp.
Padding/CRC, default off because of many false positive
Definition at line 70 of file PXDUnpackerModule.h.
|
private |
counter for not accepted events...
should not happen TODO discussion ongoing with DAQ group
Definition at line 137 of file PXDUnpackerModule.h.