Difference: AMC13RawDataAnalysis (17 vs. 18)

Revision 1823 Oct 2015 - DanielArcaro

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"

New analysis code being developed for 2014 data format

Line: 24 to 24
  The two options for file types processed by this code are binary and root files. The code to switch from one to another or vice versa is here:
Changed:
<
<
Binary to Root: https://github.com/elaird/hcalraw
>
>
Binary to Root: https://github.com/elaird/hcalraw (From Ted Laird)
  • The main tool for making badcoffee binary files is hcalraw/cpp/badcoffee.cpp. Usage is cat a.dat | ./badcoffee fed#.

Root to Binary: http://edf.bu.edu/svn/edf/arcaro/cms/trunk/pythontools/rootdumper/ or http://edf.bu.edu/svn/edf/arcaro/cms/trunk/analyzer/dumpraw/

  • The dumpraw code is a cmssw analyzer and requires a cmssw environment. The rootdumper only requires root.
  • The rootdumper is built by running the Makefile in rootdumper/cpp.
    • Run the code using ./oneRun.py --rootFile=HTB_007850.root --feds=928 --nEvents=101 --outputFile=data1.dat
  • The dumpraw analyzer can be built with the same directions as the CMSSW section below.
    • Run the code using cmsRun .../python/ConfFile_cfg.py
 
Deleted:
<
<
Root to Binary: http://edf.bu.edu/svn/edf/arcaro/cms/trunk/pythontools/rootdumper/ or http://edf.bu.edu/svn/edf/arcaro/cms/trunk/analyzer/dumpraw/
 

Unpacker

Line: 34 to 41
  Class documentation: http://ohm.bu.edu/~djarcaro/Documentation/unpacker.pdf
Changed:
<
<

Build and Run Instructions:

>
>

Unpacker Build and Run Instructions

 Check out and build:
Line: 55 to 62
 The dump software has also been implemented in a cmssw analyzer to extract raw data from global/local root files and unpack it. This requires a cmssw environment (most likely lxplus). The code can be found here http://edf.bu.edu/svn/edf/arcaro/cms/trunk/analyzer/ and .../trunk/cmsswtools. General instructions to make an analyzer can be found here: https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookWriteFrameworkModule.

Recipe to build the analyzer code:

Changed:
<
<
>
>
 $ cmsrel CMSSW_#_#_# ($ scram list if you want to see the version choices) (The version should match the one that created the root file. Use edmProvDump name.root to check the version.)
Deleted:
<
<
 $ cd CMSSW_#_#_#/src
Deleted:
<
<
 $ cmsenv (equivalent: eval `scramv1 runtime -csh`)
Deleted:
<
<
 $ svn co http://edf.bu.edu/svn/edf/arcaro/cms/trunk/analyzer/
Deleted:
<
<
 $ svn co http://edf.bu.edu/svn/edf/arcaro/cms/trunk/cmsswtools
Deleted:
<
<
 $ scram b
Added:
>
>
  To run the analyzer first set the parameters in the python file analyzer/parse/python/ConfFile_cfg.py. The most important parameters (besides the file name) are the HcalTBSource vs PoolSource and the rootType string input. Change these to correspond to either a local or global root file. The python script is set to run over multiple files in a directory. To then run the analyzer:
Added:
>
>
 $ cmsRun analyzer/parse/python/ConfFile_cfg.py.
Added:
>
>
  All of this should be done using the same version of CMSSW as what the root file was produced with. To determine this use $ edmProvDump rootfile.root to see the CMSSW version number and other attributes of the file. There are also other edm functions that are quite useful (of course only on lxplus).
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback