Instructions to produce all the calibration databases

Complete: 5
By Giorgia Mila & Sara Bolognesi

The Calibration cfg files contain the correct parameters to produce all the DT Calibration databases. To use them, it's necessary to change only the name of

  • the input data file
  • the input databases (if needed, e.g. previous t0 and noise DB are needed to compute the ttrig DB)
Be careful about the correctness of the tag associated to the input DB, which can be different from the default value already set in the configuration file.
To check the tag of a file.db database, you can type these commands:
sqlite3 database.db
select name from metadata;
.q
Note also that to open old databases with CMSSW_2_0_0_pre3 yuo have to edit a file metadataupdate_200.txt with these two lines:
ALTER TABLE "METADATA" ADD COLUMN "TIMETYPE" INT;
UPDATE "METADATA" SET "TIMETYPE"=0;
and type the command:
sqlite3 database.db<metadataupdate_200.txt

STEP1: t0 database

To create the t0 database, edit DTT0Calibration_fromData.cfg with the correct name of :
  • data file
  • channel mapping database (with its correct tag)
NOTE!
The number of the analyzed events should be bigger than 10000, or at least bigger than the sum of these 2 cards:
  • uint32 eventsForLayerT0 = 2000
  • uint32 eventsForWireT0 = 5000
If you want to save the TP Time Boxes of only a set of cells you can switch on this card :
  • untracked vstring cellsWithHisto = {"-1 8 1 1 3 48","-1 8 1 1 3 49"}
type the command : cmsRun DTT0Calibration_fromData.cfg
at the end you will produce :
  • t0.db (the t0 database)
  • DTTestPulses.root (which contains TP Time Boxes per layer)

STEP2: noisy channel database

To produce the noisy channel database edit DTNoiseAnalyzer.cfg with the correct name of :
  • data file
  • channel mapping database (with its correct tag)
NOTE!
If you want to compute the noise database using cosmic runs you have also to set :
  • untracked bool cosmicRun = true
in this case you take into account of hits registered before the Time Box rising edge.
You can choose to use a tTrig defalut value by setting:
  • untracked bool readDB = false
  • untracked int32 defaultTtrig = 4000
or to read the tTrig database by setting :
  • untracked bool readDB = true
  • the tTrig database (with its correct tag)
type the command : cmsRun DTNoiseAnalyzer.cfg
at the end you will produce :
  • noise.db (the noise database)
  • DTNoiseCalib.root (which contains all plots with the wire average noise)

STEP3: tTrig database

To produce the tTrig database, edit DTTTrigCalibration_fromData.cfg with the correct name of :
  • data file
  • channel mapping database (with its correct tag)
  • t0 database (with its correct tag)
  • noise database (with its correct tag)
type the command : cmsRun DTTTrigCalibration_fromData.cfg
at the end you will produce :
  • tTrig.db (the tTrig database)
  • DTTimeBoxes.root (which contains all the occupancy plots per layer and all the Time Boxes per SL)
  • DTTimeBoxesFitter.root (it's a service file not useful for users)

STEP4: vDrift database

To create the vdrift database, edit DTVDriftCalibration_fromData.cfg with the correct name of :
  • data file
  • channel mapping database (with its correct tag)
  • t0 database (with its correct tag)
  • tTrig database (with its correct tag)
type the command : cmsRun DTVDriftCalibration_fromData.cfg
at the end you will produce :
  • vDrift.db (the vDrift database)
  • DTTMaxHistosFromData.root (which contains all the TMax distributions separated for each segment pattern)
  • DTMeanTimeFitter.root (it's a service file not useful for users)

STEP5: TP Dead Channel database

To produce a database with the TP Dead Channel list, edit DTTPDeadWriter.cfg with the correct name of :
  • t0 database (with its correct tag)
type the command : cmsRun DTTPDeadWriter.cfg
at the end you will produce :
  • tpDead.db (the Dead Channel database)

-- GiorgiaMila - 04 Mar 2008

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2008-06-04 - GiorgiaMila
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic 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