Package org.jlab.detector.decode
Class CLASDecoder4
java.lang.Object
org.jlab.detector.decode.CLASDecoder4
- Author:
- gavalian
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.jlab.jnp.hipo4.data.Bankstatic CLASDecoderstatic CLASDecoderorg.jlab.jnp.hipo4.data.Bankorg.jlab.jnp.hipo4.data.BankcreateHeaderBank(int nrun, int nevent, Double torus, Double solenoid) org.jlab.jnp.hipo4.data.Bankorg.jlab.jnp.hipo4.data.BankList<org.jlab.jnp.hipo4.data.Bank>createReconScalerBanks(org.jlab.jnp.hipo4.data.Event event) Create the RUN::scaler and HEL::scaler banks Requires: - RAW::scaler - fcup/slm/hel/dsc calibrations from CCDB - event unix time from RUN::config and run start time from RCDB, or a good clock frequency from CCDBorg.jlab.jnp.hipo4.data.EventcreateTaggedEvent(org.jlab.jnp.hipo4.data.Event e, String... banks) static org.jlab.jnp.hipo4.data.EventcreateTaggedEvent(org.jlab.jnp.hipo4.data.SchemaFactory sf, org.jlab.jnp.hipo4.data.Event e, String... banks) org.jlab.jnp.hipo4.data.BankvoidextractPulses(org.jlab.jnp.hipo4.data.Event event) org.jlab.jnp.hipo4.data.BankgetDataBankADC(String name, DetectorType type) org.jlab.jnp.hipo4.data.BankgetDataBankTDC(String name, DetectorType type) org.jlab.jnp.hipo4.data.BankgetDataBankTDCPetiroc(String name, DetectorType type) org.jlab.jnp.hipo4.data.BankgetDataBankTimeStamp(String name, DetectorType type) org.jlab.jnp.hipo4.data.BankgetDataBankUndecodedADC(String name, DetectorType type) org.jlab.jnp.hipo4.data.BankgetDataBankUndecodedSCALER(String name, DetectorType type) org.jlab.jnp.hipo4.data.BankgetDataBankUndecodedTDC(String name, DetectorType type) org.jlab.jnp.hipo4.data.BankgetDataBankUndecodedVTP(String name, DetectorType type) org.jlab.jnp.hipo4.data.BankgetDataBankWF(String name, DetectorType type) org.jlab.jnp.hipo4.data.Eventorg.jlab.jnp.hipo4.data.EventgetDataEvent(DataEvent rawEvent) org.jlab.jnp.hipo4.data.EventgetDecodedEvent(EvioDataEvent rawEvent, int run, int counter, Double torus, Double solenoid) getEntriesADC(DetectorType type) return list of digitized ADC values from internal listgetEntriesADC(DetectorType type, List<DetectorDataDgtz> entries) returns ADC entries from decoded data for given detector TYPEgetEntriesSCALER(DetectorType type) getEntriesSCALER(DetectorType type, List<DetectorDataDgtz> entries) returns VTP entries from decoded data for given detector typegetEntriesTDC(DetectorType type) getEntriesTDC(DetectorType type, List<DetectorDataDgtz> entries) returns TDC entries from decoded data for given detector typegetEntriesVTP(DetectorType type) getEntriesVTP(DetectorType type, List<DetectorDataDgtz> entries) returns VTP entries from decoded data for given detector typeorg.jlab.jnp.hipo4.data.SchemaFactorylongvoidstatic voidvoidsetDebugMode(int mode) voidsetRunNumber(int run) voidsetRunNumber(int run, boolean fixed) voidsetTimestamp(String timestamp) voidsetVariation(String variation) 
- 
Constructor Details- 
CLASDecoder4public CLASDecoder4(boolean development) 
- 
CLASDecoder4public CLASDecoder4()
 
- 
- 
Method Details- 
getSchemaFactorypublic org.jlab.jnp.hipo4.data.SchemaFactory getSchemaFactory()
- 
createDecoder
- 
createDecoderDevel
- 
setVariation
- 
setTimestamp
- 
setDebugModepublic void setDebugMode(int mode) 
- 
setRunNumberpublic void setRunNumber(int run) 
- 
setRunNumberpublic void setRunNumber(int run, boolean fixed) 
- 
getCodaEventDecoder
- 
initEvent
- 
getEntriesADCreturn list of digitized ADC values from internal list- Parameters:
- type- detector type
- Returns:
 
- 
getEntriesADCreturns ADC entries from decoded data for given detector TYPE- Parameters:
- type- detector type
- entries- digitized data list
- Returns:
- list of ADC's for detector type
 
- 
getEntriesTDC
- 
getEntriesTDCreturns TDC entries from decoded data for given detector type- Parameters:
- type- detector type
- entries- digitized data list
- Returns:
- list of ADC's for detector type
 
- 
getEntriesVTP
- 
getEntriesVTPreturns VTP entries from decoded data for given detector type- Parameters:
- type- detector type
- entries- digitized data list
- Returns:
- list of VTP's for detector type
 
- 
getEntriesSCALER
- 
getEntriesSCALERreturns VTP entries from decoded data for given detector type- Parameters:
- type- detector type
- entries- digitized data list
- Returns:
- list of VTP's for detector type
 
- 
extractPulsespublic void extractPulses(org.jlab.jnp.hipo4.data.Event event) 
- 
getDataBankWF
- 
getDataBankADC
- 
getDataBankTDC
- 
getDataBankTDCPetiroc
- 
getDataBankTimeStamp
- 
getDataBankUndecodedADC
- 
getDataBankUndecodedTDC
- 
getDataBankUndecodedVTP
- 
getDataBankUndecodedSCALER
- 
getDecodedEventpublic org.jlab.jnp.hipo4.data.Event getDecodedEvent(EvioDataEvent rawEvent, int run, int counter, Double torus, Double solenoid) 
- 
getDataEvent
- 
getDataEventpublic org.jlab.jnp.hipo4.data.Event getDataEvent()
- 
getTriggerPhasepublic long getTriggerPhase()
- 
createHeaderBank
- 
createOnlineHelicityBankpublic org.jlab.jnp.hipo4.data.Bank createOnlineHelicityBank()
- 
createTriggerBankpublic org.jlab.jnp.hipo4.data.Bank createTriggerBank()
- 
createEpicsBankpublic org.jlab.jnp.hipo4.data.Bank createEpicsBank()
- 
createReconScalerBankspublic List<org.jlab.jnp.hipo4.data.Bank> createReconScalerBanks(org.jlab.jnp.hipo4.data.Event event) Create the RUN::scaler and HEL::scaler banks Requires: - RAW::scaler - fcup/slm/hel/dsc calibrations from CCDB - event unix time from RUN::config and run start time from RCDB, or a good clock frequency from CCDB- Parameters:
- event-
- Returns:
 
- 
createBonusBankpublic org.jlab.jnp.hipo4.data.Bank createBonusBank()
- 
createHelicityDecoderBank
- 
createTaggedEventpublic static org.jlab.jnp.hipo4.data.Event createTaggedEvent(org.jlab.jnp.hipo4.data.SchemaFactory sf, org.jlab.jnp.hipo4.data.Event e, String... banks) 
- 
createTaggedEventpublic org.jlab.jnp.hipo4.data.Event createTaggedEvent(org.jlab.jnp.hipo4.data.Event e, String... banks) 
- 
main
 
-