The Gaudi Framework  v36r13 (995e4364)
EvtColWrite Namespace Reference

Classes

class  EvtColEx
 

Functions

def _evtcolsvc_ (self, name="EvtTupleSvc")
 
def configure (gaudi=None)
 

Variables

 __author__
 (c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE". More...
 
 Rndm
 
 Numbers
 
 SUCCESS
 
 Catalogs
 
 gaudi
 

Function Documentation

◆ _evtcolsvc_()

def EvtColWrite._evtcolsvc_ (   self,
  name = "EvtTupleSvc" 
)
private

Definition at line 83 of file EvtColWrite.py.

83 def _evtcolsvc_(self, name="EvtTupleSvc"):
84  svc = GaudiPython.Helper.service(self._svcloc, name, False)
85  return GaudiPython.iNTupleSvc(name, svc)
86 
87 
88 GaudiPython.AppMgr.evtcolsvc = _evtcolsvc_
89 
90 # =============================================================================
91 # job configuration
92 # =============================================================================
93 
94 

◆ configure()

def EvtColWrite.configure (   gaudi = None)
Configuration of the job

Definition at line 95 of file EvtColWrite.py.

95 def configure(gaudi=None):
96  """Configuration of the job"""
97 
98  if not gaudi:
99  gaudi = GaudiPython.AppMgr()
100 
101  gaudi.HistogramPersistency = "ROOT"
102  gaudi.DLLs += ["GaudiAlg", "RootHistCnv"]
103  gaudi.ExtSvc += ["RndmGenSvc", "NTupleSvc", "TagCollectionSvc/EvtTupleSvc"]
104 
105  alg = EvtColEx("Fill")
106  gaudi.setAlgorithms([alg])
107 
108  alg.EvtColLUN = "EVTTAGS"
109  alg.EvtColsProduce = True
110  alg.EvtColsPrint = True
111  alg.NTupleProduce = False
112  alg.HistoProduce = False
113 
114  gaudi.OutStream = ["EvtCollectionStream/TagsWriter"]
115  tagsWriter = gaudi.algorithm("TagsWriter")
116  tagsWriter.ItemList = ["/NTUPLES/EVTTAGS/Fill/COL1"]
117  tagsWriter.EvtDataSvc = "EvtTupleSvc"
118 
119  evtColSvc = gaudi.evtcolsvc()
120  evtColSvc.defineOutput({"EVTTAGS": "PFN:EvtTags1.root"}, typ="Gaudi::RootCnvSvc")
121  evtColSvc.OutputLevel = 2
122 
123  evtSel = gaudi.evtSel()
124  evtSel.PrintFreq = 1000
125  evtSel.open(["EvtColsEx.dst"])
126 
127  return SUCCESS
128 
129 
130 # =============================================================================
131 # The actual job excution
132 # =============================================================================

Variable Documentation

◆ __author__

EvtColWrite.__author__
private

(c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE".

# # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. #


Definition at line 22 of file EvtColWrite.py.

◆ Catalogs

EvtColWrite.Catalogs

Definition at line 140 of file EvtColWrite.py.

◆ gaudi

EvtColWrite.gaudi

Definition at line 143 of file EvtColWrite.py.

◆ Numbers

EvtColWrite.Numbers

Definition at line 28 of file EvtColWrite.py.

◆ Rndm

EvtColWrite.Rndm

Definition at line 27 of file EvtColWrite.py.

◆ SUCCESS

EvtColWrite.SUCCESS

Definition at line 29 of file EvtColWrite.py.

EvtColWrite._evtcolsvc_
def _evtcolsvc_(self, name="EvtTupleSvc")
Definition: EvtColWrite.py:83
GaudiPython.Bindings.AppMgr
Definition: Bindings.py:869
EvtColWrite.configure
def configure(gaudi=None)
Definition: EvtColWrite.py:95
GaudiPython::Helper::service
static IService * service(ISvcLocator *svcloc, const std::string &name, bool createif=false)
Definition: Helpers.h:106
GaudiPython.Bindings.iNTupleSvc
Definition: Bindings.py:768