- BEMC
- EEMC
- 2007 run, hardware changes
- 2008 run preparation
- Calibrations
- 2007 EEMC Tower Gains
- Calculating EEMC pedestal and status tables
- Calculating EEMC tower ideal gains and expected MIP response
- EEMC Calibration Docs
- EEMC Tower Swaps
- Overview for generating EEMC pedestals and status tables
- Producing ADC distributions for the EMCs from raw DAQ files
- Run 10 EEMC Calibrations
- Run 11 EEMC Calibrations
- Run 12 EEMC Calibrations
- Run 13 EEMC Calibrations
- Run 15 EEMC Calibrations
- Run 17 EEMC Calibrations
- Run 8 EEMC calibrations
- Run 9 EEMC calibrations
- Uploading EEMC Pedestal, Status and Gain Calibrations to the DB
- EEMC Maintenance/Operations Documents
- Endcap Geometry
- Endcap Geometry update (2009)
- Log of tower base and fee issues
- eemc as-built info and proto tests
- emc2-hn minutes (by Jan)
- how-to by Jan
- slow controls archive viewer
- trash
- ETOF
- FCS
- FGT
- FPD & FMS & FPS
- FTPC
- FTT
- HLT
- L3
- PMD
- PP2PP
- RICH
- Roman Pot Phase II*
- SSD
- SVT
- Slow Controls
- TPC
- TRG
- Trigger Detectors
- VPD
- test
Producing ADC distributions for the EMCs from raw DAQ files
Updated on Wed, 2013-08-21 09:36 by aohlson. Originally created by stevens4 on 2012-12-11 14:27.
Under:
For calibrations of the EMCs (eg. pedestals, status, relative gains) it is often useful to look at raw ADC distributions from a sample of minimum bias events. This can be done simply by analyzing the MuDsts once production has occured, but if one wants to proceed with calibrations before production occurs it often faster to use the raw DAQ files to produce these simple ADC distributions summed over many events. The instructions below describe an adaptation of the general daq reader (provided by Tonko et. al.) used specifically to produce these distributions.
So for example, for the emc-check runs in Run 13,
the line should be trigID[2]={1024,0};
For calibrations of the EMCs (eg. pedestals, status, relative gains) it is often useful to look at raw ADC distributions from a sample of minimum bias events. This can be done simply by analyzing the MuDsts once production has occured, but if one wants to proceed with calibrations before production occurs it often faster to use the raw DAQ files to produce these simple ADC distributions summed over many events. The instructions below describe an adaptation of the general daq reader (provided by Tonko et. al.) used specifically to produce these distributions.
The general daq reader for all STAR subsystems can be found in StRoot/RTS/src/RTS_EXAMPLE/rts_example.C, however for EMC purposes not all of the functionality provided there are necessary. The macro used here, emchist.C, uses the relevant pieces of the general daq reader to retrieve raw ADC information on a crate/channel level from the daq files and store them in ROOT histograms. These histograms are useful for many QA and other tasks including timing scans, pedstals, status tables, relative gains (from slopes), etc.
If one is interested in only events from a specific trigger to increment the raw ADC histograms, then this can be specified in the emchist.C macro by using
int trigID[2]={A,B};
where A is the "DAQ trigger ID" for events to be incremented in the histograms and B is another trigger which is only implemented as a counter. These trigger IDs can be found in the RunLog browser, but then they need to be converted to get the numbers A and B in trigID[]. The mapping pattern is
1 2 4 8 16 32 64 128 256 512 1024 2048... 1 2 4 8 10 20 40 80 100 200 400 800...
So for example, for the emc-check runs in Run 13,
the line should be trigID[2]={1024,0};
Instructions:
1) Check out the macro from cvs:
2) Copy the relevant macros and scripts to your working directory:
3) Compile the macro by using the compile.sh script:
1) Check out the macro from cvs:
% cvs co StRoot/StEEmcPool/macros/DaqReader
2) Copy the relevant macros and scripts to your working directory:
% cp StRoot/StEEmcPool/macros/DaqReader/compile.sh ./ % cp StRoot/StEEmcPool/macros/DaqReader/emchist.C ./ % cp StRoot/StEEmcPool/macros/DaqReader/submitAll.sh ./ % cp StRoot/StEEmcPool/macros/DaqReader/addFiles.sh ./
3) Compile the macro by using the compile.sh script:
% ./compile.sh emchist.C
which produces an executable emchist* which reads the daq file by executing
./emchist /star/data03/daq/2012/100/13100049w_js/st_W_13100049_raw_1340001.daq
for the daq file of interest.
To process all the daq files for a given run which are stored on some NFS disk space there is a script provided (submitAll.sh) which loops over a given runList to do this. Finally, you can add all the histograms for a given run using the addFiles.sh script.
»
- Printer-friendly version
- Login or register to post comments