CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
HGCalRecHit_cfi Namespace Reference

Functions

def calcWeights
 

Variables

tuple dEdX
 
tuple dEdX_v16
 
float dummy_weight = 0.0
 
tuple HGCalRecHit
 
 layerWeights = dEdX_v16.weights)
 
float sciThicknessCorrection = 0.69
 
list thicknessCorrection = [0.75, 0.76, 0.75, 0.85, 0.85, 0.84]
 
tuple weightsPerLayer_V16
 

Function Documentation

def HGCalRecHit_cfi.calcWeights (   weightsPerLayer)

Definition at line 9 of file HGCalRecHit_cfi.py.

References ComparisonHelper.zip().

9 
10 def calcWeights(weightsPerLayer): res = [sum(wei)/2. for wei in zip(weightsPerLayer[:], weightsPerLayer[1:] + [weightsPerLayer[-1]])]; res[0] = dummy_weight; return res;
11 
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)

Variable Documentation

tuple HGCalRecHit_cfi.dEdX

Definition at line 62 of file HGCalRecHit_cfi.py.

Referenced by hgcal::EGammaPCAHelper.setdEdXWeights().

tuple HGCalRecHit_cfi.dEdX_v16
Initial value:
1 = cms.PSet(
2  weights = cms.vdouble(calcWeights(weightsPerLayer_V16)),
3 
4  weightsNose = cms.vdouble(0.0, # there is no layer zero
5  39.500245, # MeV
6  39.756638,
7  39.756638,
8  39.756638,
9  39.756638,
10  66.020266,
11  92.283895,
12  92.283895)
13 )

Definition at line 129 of file HGCalRecHit_cfi.py.

float HGCalRecHit_cfi.dummy_weight = 0.0

Definition at line 8 of file HGCalRecHit_cfi.py.

tuple HGCalRecHit_cfi.HGCalRecHit

Definition at line 144 of file HGCalRecHit_cfi.py.

HGCalRecHit_cfi.layerWeights = dEdX_v16.weights)

Definition at line 213 of file HGCalRecHit_cfi.py.

float HGCalRecHit_cfi.sciThicknessCorrection = 0.69

Definition at line 212 of file HGCalRecHit_cfi.py.

list HGCalRecHit_cfi.thicknessCorrection = [0.75, 0.76, 0.75, 0.85, 0.85, 0.84]

Definition at line 211 of file HGCalRecHit_cfi.py.

Referenced by HGCalTriggerNtupleHGCTriggerCells.calibrate().

tuple HGCalRecHit_cfi.weightsPerLayer_V16

Definition at line 12 of file HGCalRecHit_cfi.py.