CMS 3D CMS Logo

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

Functions

def customise_DigiTkOnly
 
def TkOnlyDigi
 

Function Documentation

def TkOnlyDigi_cff.customise_DigiTkOnly (   process)

Definition at line 11 of file TkOnlyDigi_cff.py.

Referenced by TkOnlyDigi().

11 
12 def customise_DigiTkOnly(process):
13  process.load('Configuration.StandardSequences.Digi_cff')
14  process.doAllDigi = cms.Sequence()
15  process.load('SimGeneral.MixingModule.mixObjects_cfi')
16  process.digitisationTkOnly_step.remove(process.mix.mixObjects.mixCH)
17  del process.simCastorDigis
18  del process.simEcalUnsuppressedDigis
19  del process.simHcalUnsuppressedDigis
20  process.mix.digitizers = cms.PSet(process.theDigitizersValid)
21  del process.mix.digitizers.ecal
22  del process.mix.digitizers.hcal
23  del process.mix.digitizers.castor
24  process.digitisationTkOnly_step.remove(process.mix.digitizers.pixel)
25  process.load('SimTracker.SiPhase2Digitizer.phase2TrackerDigitizer_cfi')
26  process.mix.digitizers.pixel=process.phase2TrackerDigitizer
27  process.mix.digitizers.strip.ROUList = cms.vstring("g4SimHitsTrackerHitsPixelBarrelLowTof",
28  'g4SimHitsTrackerHitsPixelEndcapLowTof')
29  #Check if mergedtruth is in the sequence first, could be taken out depending on cmsDriver options
30  if hasattr(process.mix.digitizers,"mergedtruth") :
31  process.mix.digitizers.mergedtruth.simHitCollections.muon = cms.VInputTag( )
32  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTIBLowTof"))
33  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTIBHighTof"))
34  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTOBLowTof"))
35  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTOBHighTof"))
36  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTECLowTof"))
37  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTECHighTof"))
38  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTIDLowTof"))
39  process.mix.digitizers.mergedtruth.simHitCollections.tracker.remove( cms.InputTag("g4SimHits","TrackerHitsTIDHighTof"))
40 
41  # keep new digis
42  alist=['FEVTDEBUG','FEVTDEBUGHLT','FEVT']
43  for a in alist:
44  b=a+'output'
45  if hasattr(process,b):
46  getattr(process,b).outputCommands.append('keep Phase2TrackerDigiedmDetSetVector_*_*_*')
47  return process
48 
def TkOnlyDigi_cff.TkOnlyDigi (   process)

Definition at line 4 of file TkOnlyDigi_cff.py.

References customise_DigiTkOnly(), and print().

4 
5 def TkOnlyDigi(process):
6  print("!!! Special version of the digitization for tracker only !!!")
7  if hasattr(process,'digitisationTkOnly_step'):
8  process=customise_DigiTkOnly(process)
9 
10  return process
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47