test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HCAL Namespace Reference

Functions

def customise
 

Function Documentation

def HCAL.customise (   process)

Definition at line 2 of file HCAL.py.

References reco.return().

2 
3 def customise(process):
4 
5 # extend the particle gun acceptance
6 
7  process.generator.AddAntiParticle = cms.bool(False)
8 
9 # no magnetic field
10 
11  process.g4SimHits.UseMagneticField = cms.bool(False)
12  process.UniformMagneticFieldESProducer = cms.ESProducer("UniformMagneticFieldESProducer",
13  ZFieldInTesla = cms.double(0.0)
14  )
15 
16  process.prefer("UniformMagneticFieldESProducer")
17 
18 # modify the content
19 
20  process.output.outputCommands.append("keep *_simHcalUnsuppressedDigis_*_*")
21 
22 # user schedule: use only calorimeters digitization and local reconstruction
23 
24  del process.schedule[:]
25 
26  process.schedule.append(process.generation_step)
27  process.schedule.append(process.simulation_step)
28 
29  delattr(process,"hbhereco")
30  process.hbhereco = process.hbheprereco.clone()
31  process.hcalLocalRecoSequence.replace(process.hbheprereco,process.hbhereco)
32  process.hbhereco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis")
33  process.horeco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis")
34  process.hfreco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis")
35 
36  process.local_digireco = cms.Path(process.mix * process.hcalDigiSequence * process.hbhereco * process.hfreco * process.horeco )
37 
38  process.schedule.append(process.local_digireco)
39 
40  process.load("Validation/Configuration/hcalSimValid_cff")
41 
42  process.AllRecHitsValidation.ecalselector = cms.untracked.string('no')
43 
44  process.local_validation = cms.Path(process.hcalSimHitStudy+process.hcalDigisValidationSequence+process.hcalRecHitsValidationSequence)
45  process.schedule.append(process.local_validation)
46 
47  process.schedule.append(process.endjob_step)
48  process.schedule.append(process.out_step)
49 
50  return(process)
def customise
Definition: HCAL.py:2
return(e1-e2)*(e1-e2)+dp *dp