Skip to content
Snippets Groups Projects

revisit the FASP simulator software

Merged Alexandru Bercuci requested to merge a.bercuci/cbmroot:trd2dDigiTime into master
2 unresolved threads

Update for the FASP simulator software

  • fix confusion wrt usage of DAQ time [clk] and physics time [ns] in digi time definition.
  • add system time offset to equilibrate wrt to reference detectors (T0, ToF).
  • use data from mCBM22 to calibrate TRD2D time resolution and offset for both EbyE and TB modes
  • fix flushing of data during TB sumulations (still to be optimized wrt the event rate)

Time based simulations for mCBM22

  • setup = setup_mcbm_beam_2022_05_23_nickel.C
  • event rate = 1.e5 Hz
  • time slice length = 1.4e5 ns TB_TRD2D-ToF_nickelSim

Event by event simulations (same as above) EbyE_TRD2D-ToF_nickelSim

Example of FASP simulator going from:

  • physics energy deposits / read-out area pad (markers)
  • amplifier shaper (black)
  • analogue output (red) FASP5090_sim *) the calibration and mappings from the actual data taking are used to generate the detector response.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
124
125 // FASP graphic support
126 int fNgraph = 1; ///< No of graphs generated
127 int fAsicId[2] = {-1, -1}; ///< identifier of FASP(s) in module
128 int fChId[2] = {-1, -1}; ///< FASP channels being processed
129 std::vector<Float_t> fOut = {0.}; ///< analog output for the current channel
130 std::map<int, std::array<int, NFASPCH>>
131 fGraphMap; ///< map of ASIC_id and (ch_id, output_id of FASP signals graphs) pairs
132 TGraph* fGraph[NGRAPH] = {nullptr}; ///< graph representations of analog FASP response
133 TGraph* fGraphShp[NGRAPH] = {nullptr}; ///< graph representations of FASP shaper
134 TGraph* fGraphPhys[NGRAPH] = {nullptr}; ///< graph representations of physics digi
135 TLine* fGthr = nullptr; ///< graph representation of various thresholds
136 TCanvas* fMonitor = nullptr; ///< monitor canvas when drawing
134 137
135 138 // CADENCE parameters
136 139 static const Int_t fgkNDB = 53; ///< DB shaper size
  • 86 86 virtual void ResetCounters() { ; }
    87 87 virtual void SetMessageConverter(CbmTrdRawToDigiR* conv = NULL) = 0;
    88 88 virtual void SetQA(CbmTrdCheckUtil* qa = NULL) = 0;
    89 virtual void SetTimeSysOffset(int dt) { fTimeSysOffset = dt; }
    89 90
    90 91 protected:
    91 92 // definitions of MC input
    92 93 Int_t fPointId; ///< MC point id being processed
    93 94 Int_t fEventId; ///< MC event id being processed
    94 95 Int_t fInputId; ///< MC input file number
    96 Int_t fTimeSysOffset = 0; ///< Time offset of TRD digis to align them with other detectors (T0, ToF)
    Please register or sign in to reply
    Loading