00001 #ifndef TROOTCONVERTERPARAM_H 00002 #define TROOTCONVERTERPARAM_H 00003 00004 #include "TGo4Parameter.h" 00005 00006 #include "MBSUNPACK/TMbsCrateEvent.h" 00007 00008 #define MAX_HV_CHAN_SC 12 00009 00010 class TRootConverterParam : public TGo4Parameter { 00011 public: 00012 // default constructor - important for parameter streaming 00013 TRootConverterParam(); 00014 00015 TRootConverterParam(const char* name); 00016 00017 virtual ~TRootConverterParam(); 00018 00019 virtual Bool_t UpdateFrom(TGo4Parameter *); 00020 00021 Int_t PrintOptions(); 00022 00023 // Options readout from setup file or assigned from #define 00024 UInt_t uRootDisplay; // No Online Change - Enable/Disable root tree display in GO4 interface 00025 UInt_t uCleanOuputEnable; // No Online Change - Enable/Disable the generation of a cleaned data root file 00026 UInt_t uEventsUntilReset; // When tree displayed but not saved, number of events in Tree before periodic reset 00027 TString sOutputFilename; // No Online Change - Filename for the output of the Cleanning/Unpack step 00028 // TRIGLOG 00029 UInt_t uTriglogInputInTree; // No Online Change - Enable/Disable the triglog input scalers data in the TTree root output 00030 UInt_t uTriglogFullEvent; // No Online Change - Save full Triglog event instead of only selected info 00031 // CAEN TDC general mode 00032 UInt_t uCaenInTree; // No Online Change - Enable/Disable the CAEN TDC data in the TTree root output 00033 UInt_t uCaenMode; // No Online Change - Caen Output mode 00034 UInt_t uCaenMulti; // No Online Change - Enable/disable multi hits support for caen in general mode 00035 UInt_t uGeneralCaenTdcEnabled[MAX_1290]; // No Online Change - Active Output Caen Board in General mode 00036 // CAEN TDC Cosy like mode 00037 Int_t iPmtTdc; // No Online Change - Index of the Caen TDC containing the PMT data 00038 Int_t iPmtQdc; // No Online Change - Index of the Lecroy Qdc containing the PMT data 00039 Int_t iRpcTdcLeading; // No Online Change - Index of the Caen TDC containing the RPC leading edge data 00040 Int_t iRpcTdcTrailing; // No Online Change - Index of the Caen TDC containing the RPC trailing edge data 00041 // VFTX 00042 UInt_t uVftxInTree; // No Online Change - Enable/Disable the Vftx (Fpga TDC) data in the TTree root output 00043 UInt_t uVftxFullDataMode; // No Online Change - Enable/Disable the full (raw+calib) data in tree 00044 UInt_t uVftxEnabled[MAX_FPGA_TDC]; // No Online Change - Enable/Disable specific Vftx boards in output 00045 // GET4 v1.0 00046 UInt_t uGet4InTree; // No Online Change - Enable/Disable the Get4 data in the TTree root output 00047 // UInt_t uGet4Enabled[MAX_FPGA_TDC]; // No Online Change - Enable/Disable specific Vftx boards in output 00048 Int_t iReferenceTdc; // No Online Change - Index of the Caen TDC containing the t0 hybrid reference time 00049 Int_t iReferenceChannel1; // No Online Change - Index of the 1st channel containing the t0 hybrid reference time 00050 Int_t iReferenceChannel2; // No Online Change - Index of the 2nd channel containing the t0 hybrid reference time 00051 // RPC 00052 UInt_t uRpcHdInTree; // No Online Change - Enable/Disable the HdRpc data in the TTree root output 00053 UInt_t uRpcBucInTree; // No Online Change - Enable/Disable the Buc Rpc data in the TTree root output 00054 UInt_t uRpcBucM1InTree; // No Online Change - Enable/Disable the Buc Module 1 Rpc data in the TTree root output 00055 UInt_t uRpcBucM2InTree; // No Online Change - Enable/Disable the Buc Module 2 data in the TTree root output 00056 UInt_t uRpcBucM3InTree; // No Online Change - Enable/Disable the Buc Module 3 data in the TTree root output 00057 UInt_t uRpcBucM4InTree; // No Online Change - Enable/Disable the Buc Module 4 data in the TTree root output 00058 // Plastics 00059 UInt_t uPlasticsInTree; // No Online Change - Enable/Disable the Plastics data in the TTree root output 00060 // Pad RPC 00061 UInt_t uPadRpcInTree; // No Online Change - Enable/Disable the Pad Rpc data in the TTree root output 00062 // SCALORMU 00063 UInt_t uScalOrMuInTree; // No Online Change - Enable/Disable the Scaler Or Multiplicity scaler data in TTree root output 00064 UInt_t uScalOrMu2InTree; // TODO No Online Change - Enable/Disable the second ScalOrMu data in TTree root output 00065 // Matching 00066 UInt_t uMatchingInTree; // No Online Change - Enable/Disable the Matching data in the TTree root output 00067 // Hodoscope 00068 UInt_t uHodoInputInTree; // No Online Change - Enable/Disable the fiber hodoscope data in the TTree root output 00069 UInt_t uHodoDebugHisto; // No Online Change - Enable/Disable the fiber hodoscope ddebug histograms 00070 // Slow control 00071 UInt_t uSlowControlInTree; // No Online Change - Enable/Disable inclusion of slow control data for HDRPC in Tree 00072 UInt_t uNbSlowControlChan; // No Online Change - Number of HV channels Slow Control to be saved in the tree 00073 UInt_t uSlowControlChans[MAX_HV_CHAN_SC];// No Online Change - List of HV channels saved in data 00074 TString sScInputNamePosI[MAX_HV_CHAN_SC]; // No Online Change - Input name of HV channels saved in tree, I in PosHV 00075 TString sScOutputNamePosI[MAX_HV_CHAN_SC];// No Online Change - Output name of HV channels saved in tree, I in PosHV 00076 TString sScInputNamePosU[MAX_HV_CHAN_SC]; // No Online Change - Input name of HV channels saved in tree, U in PosHV 00077 TString sScOutputNamePosU[MAX_HV_CHAN_SC];// No Online Change - Output name of HV channels saved in tree, U in PosHV 00078 TString sScInputNameNegI[MAX_HV_CHAN_SC]; // No Online Change - Input name of HV channels saved in tree, I in PosHV 00079 TString sScOutputNameNegI[MAX_HV_CHAN_SC];// No Online Change - Output name of HV channels saved in tree, I in PosHV 00080 TString sScInputNameNegU[MAX_HV_CHAN_SC]; // No Online Change - Input name of HV channels saved in tree, U in PosHV 00081 TString sScOutputNameNegU[MAX_HV_CHAN_SC];// No Online Change - Output name of HV channels saved in tree, U in PosHV 00082 00083 private: 00084 Bool_t ReadOptions(); 00085 00086 ClassDef(TRootConverterParam,1) 00087 }; 00088 00089 #endif