CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HBHEMethod0Parameters_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Behavior of "Method 0" depends on the following top-level
4 # HBHEPhase1Reconstructor parameters:
5 #
6 # (bool) tsFromDB
7 # (bool) recoParamsFromDB
8 #
9 # and on the following parameters inside the "algorithm" parameter set,
10 # defined as m0Parameters below:
11 #
12 # (int) firstSampleShift
13 # (int) samplesToAdd
14 # (bool) correctForPhaseContainment
15 # (double) correctionPhaseNS
16 #
17 # The role of "tsFromDB" parameter is to specify whether the
18 # "sample of interest" (SOI) should be taken from the data frame
19 # (in case tsFromDB is False) or from the database (tsFromDB is True).
20 # Once SOI is determined in this manner, the time slice for starting
21 # the ADC charge summation (TSS) is determined by adding SOI and
22 # "firstSampleShift". "firstSampleShift" can be negative, and if
23 # TSS = SOI + firstSampleShift ends up negative, TSS is reset to 0.
24 # If you want to start summation from time slice 0, just set
25 # "firstSampleShift" to some negative number with large magnitude.
26 #
27 # In the old reco code, it used to be possible to configure the TSS
28 # using a parameter value. This is no longer the case for Phase 1
29 # reconstructor.
30 #
31 # The values of the remaining M0 parameters, "samplesToAdd",
32 # "correctForPhaseContainment", and "correctionPhaseNS", will be
33 # taken from the configuration file only if "recoParamsFromDB"
34 # is set to False. If "recoParamsFromDB" is True, the config
35 # file values of these parameters are ignored, and these values
36 # are instead taken from the database. The "samplesToAdd" parameter
37 # defines how many contiguous time slices will be used to calculate
38 # the charge. TSS + samplesToAdd should not exceed the number of
39 # time slices in the data frame, otherwise M0 will still work but
40 # the results will be unreliable.
41 #
42 # Parameter "correctForPhaseContainment" specifies whether
43 # a correction should be made for incomplete HPD signal collection
44 # inside the summed time slices, and "correctionPhaseNS" specifies
45 # the delay (in ns) of the HPD signal w.r.t. the ADC digitization
46 # clock edge. That is, in the reco code, increasing correctionPhaseNS
47 # moves reco window to the left w.r.t. the signal (AFAIK, the behavior
48 # of PhaseDelay QIE11 configuration register is the opposite).
49 #
51 
52 m0Parameters = cms.PSet(
53  firstSampleShift = cms.int32(0),
54  samplesToAdd = cms.int32(2),
55  correctForPhaseContainment = cms.bool(True),
56  correctionPhaseNS = cms.double(6.0),
57  applyFixPCC = PCCUpdate.applyFixPCC
58 )