User Tools

Site Tools


instruction_febv1.1b_1020

Data taking FEBV1

Connect to lyocmsmu01

* Check job control is running

 sudo /opt/dhcal/bin/ljcd status
    * /opt/zdaq/bin/ljc is running

* Restart it if stopped :

 sudo  /opt/dhcal/bin/ljcd start
 

Check your environment :

  MGDBLOGIN=xxxx/xxxxx@lyocmsmu04:27017@LYONROC  => MongoDB access
  DAQSETUP=CMS_RPC  => experiment name (for runs db)
  DAQMONGO=testcmsnew:1 => Process configuration testcmsnew_1.json in /dev/shm/mgroc (see MongoDB wiki)
  

Everything is in .daqsetup

Put LVON

   >>> import genesys
   >>> s=genesys.genesys("/dev/ttyUSB1",1)
   /dev/ttyUSB1
   OK
   >>> s.status(0)
   [u'WMV(0.0021)', u'PV(5.0027)', u'MC(000.00)', u'PC(015.33)', u'SR(04)', u'FR(00)\r']
   >>> s.setOn(0)
   WOK
   >>> s.status(0)
   [u'MV(5.0030)', u'PV(5.0027)', u'MC(005.91)', u'PC(015.33)', u'SR(05)', u'FR(00)\r']
   >>> 

Start a DAQ

Spy process of the FEB

In a separate shell

   alias spyv1='ps -laef | grep lydaq |grep FEBV1 | awk '\''{print "tail -f /tmp/fsmjobPID"$4".log"}'\'' | /bin/bash - '
   

When processes are started , just type spyv1

Start process and configure them

JOBSTART

and to view the processes status

VIEW or VIEW -v

Initialise DAQ

 INIT (if not repowered FEB)
 
 INIT --dead 7000 ( Send a reset TDC from MDC and wait 7. s before initialising FEB)
 

LUT Calibration

If power was cycled you have to recalculate LUT fro all channels of FEB and set the measurement masks (./do_lut_calibration)

 #!/bin/bash
 source .daqsetup
 echo " You must have run before 'START;INIT --dead 10000'"
 # LUT calib
 combdaq --feb-lutcalib --channel=56 --tdc=0
  # Measurement mask
  # 34 channels , channel 19 masked on FEB 15 (adapter issue)
  combdaq --feb-lutmask --tdc=0 --mask=0x7fff7ffff --feb 15
  # 34 channels
  combdaq --feb-lutmask --tdc=0 --mask=0x7ffffffff --feb 14

CONFIGURE the ASICs

Download the version you want to use

  mgroc --states (to see the version)
  combdaq --daq-download --dbstate=CMSRPC_DOME --dbversion=29 --name TDCSERVER

CONFIGURE

   CONFIGURE
   

Information on the DAQ

INFO

Start a pedestal run

   RUN --comment " One test of Pedestal for Ecce and Konstantin channel/channel)"
   combdaq -M SCURVE -A TDCSERVER -P '{"last":510,"first":450,"channel":1023,"step":2}'
   INFO ( when no data are received anymore you can stop)
   STOP

Analysis pedestal

 cd /opt/TdcAnalysis
 export PYTHONPATH=./scripts/:$PYTHONPATH 
 export LD_LIBRARY_PATH=./lib:$ROOTSYS/lib:/opt/dhcal/lib:$LD_LIBRARY_PATH 
 bin/tdcr  -d/data/local/Oct2020/ -g/opt/TdcAnalysis/dome_geom.json -r1307
 python -c 'import fitscurve;fitscurve.fitped(1307,14,452,530,2,34)'

Cosmic data taking

In set_running_cosmic

#!/bin/bash
source .daqsetup
# Turn normal run MDCC
combdaq -M CALIBON -A MDCCSERVER -P '{"value":0}'
combdaq -M CALIBOFF -A MDCCSERVER -P '{}'
combdaq -M SETCALIBCOUNT -A MDCCSERVER -P '{"nclock":0}'
combdaq -M SPILLOFF -A MDCCSERVER -P '{"nclock":100}'
combdaq -M SPILLON -A MDCCSERVER -P '{"nclock":20000000}'
combdaq -M SETEXTERNAL -A MDCCSERVER -P '{"value":0}'
combdaq -M SETSPILLREGISTER -A MDCCSERVER -P '{"value":32}'
# Set Thresholds mode and delays
combdaq --daq-download --dbstate=CMSRPC_DOME --dbversion=29 --name TDCSERVER
combdaq --daq-configure 
combdaq -M SETVTHTIME -A TDCSERVER -P '{"value":520}'
combdaq --daq-configure
combdaq -M SETMODE -A TDCSERVER -P '{"value":0}'
combdaq -M SETDELAY -A TDCSERVER -P '{"value":3}'
combdaq -M SETDURATION -A TDCSERVER -P '{"value":3}'

The you can start

RUN --comment " Mon run a moi qui est super et tres beau"
RESUME
INFO
PAUSE
STOP

Spying the ASIC parameters

less /dev/shm/mgroc/CMSRPC_DOME_29.json 
instruction_febv1.1b_1020.txt · Last modified: 2021/07/10 23:21 (external edit)