ECAL detector analysis with David Petyt

David's info CMS web-based monitoring home page ECAL summary page
CMSSW code browser

ROOT tricks (using dcctcc.root):

> root -l dcctcc.root
> gStyle->SetPalette(1)

1) draw fedid number for EE+

> tccmap->Draw("iy-0.5:ix-0.5>>a(100,0,100,100,0,100)","fedid*(fedid>645)");
> a->SetMinimum(645);
> a->Draw("colz")

To draw strips, replace "fedid*(fedid>645")" with "strip*(fedid>645)") in the above

2) print out fed, ccu, strip, xtal, tcc, tt for a given ix,iy,iz:

> tccmap->Scan("fedid:ccuid:strip:xtalinstrip:tccid:ttid","ix==20 && iy==71 && iz==1","colsize=6")

output should be:

****************************************************************
* Row * fedid * ccuid * strip * xtalin * tccid * ttid *
****************************************************************
* 13584 * 650 * 9 * 4 * 5 * 80 * 16 *
****************************************************************

Making ntuple/plots from WBM pedestal data

1) get pedestal data from ECAL summary -

click on "MON_PEDESTALS_DAT" link -> save as "MON_PEDESTAL.dat"

add a line of "-1s" to the bottom of the file - end of file marker used by reader macro.

"-1 -1 -1 -1 -1 -1 -1 -1 -1" (9 x "-1")

2) have the following files in the same directory:

a) MON_PEDESTAL.dat b) rootlogon.C c) wbmreader_ee.C

3) run macro c)

> root -l wbmreader_ee.C

will produce:

+ 2 .gif files "ee_pedmean.gif", "ee_pedrms.gif" -> pedestal mean and rms maps, G12 + "PEDESTAL_ntuple.C" ROOT tree containing pedestal info for each channel

4) look inside ntuple:

> root -l PEDESTAL_ntuple.C > TBrowser t

> click "ROOT files" -> "PEDESTAL_ntuple.root" -> "pedestal"

> click on leaves to draw quantities

command line:

> pedestal->Draw("rms12","fedid==649") noise G12 for EE+01

-- DavidCockerill - 25-Nov-2009

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-11-25 - DavidCockerill
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

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