ATLAS Offline Software
TileD3PDObject.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 #
4 # File: TileAnalysisD3PDObject.py
5 # Author: Marco van Woerden <mvanwoer@cern.ch>
6 # Creation date: September 2012
7 # Update: August 2013
8 #
9 
10 # IMPORT MODULES
11 import D3PDMakerCoreComps
12 from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
13 
14 
15 # VECTORFILLER DEFINITIONS
16 def make_Cell_D3PDVectorFiller(name, prefix, object_name, getter = None,sgkey = None,label = None):
17 
18  # GET STOREGATE DATAVECTORS FOR CALOCELLS AND MUONS
19  calocell_getter = D3PDMakerCoreComps.SGDataVectorGetterTool('cell_getter', TypeName = 'CaloCellContainer',\
20  SGKey = "SelectedCells",Label = "cells_")
21  # CREATE SELECTED
22  return D3PDMakerCoreComps.VectorFillerTool('cell_Getter',Prefix = 'cells_',Getter = calocell_getter,
23  ObjectName = 'calocells',SaveMetadata = D3PDMakerFlags.SaveObjectMetadata())
24 
25 def make_MBTS_D3PDVectorFiller(name, prefix, object_name, getter = None,sgkey = None,label = None):
26 
27  # GET STOREGATE DATAVECTORS FOR CALOCELLS AND MUONS
28  calombts_getter = D3PDMakerCoreComps.SGDataVectorGetterTool('mbts_getter', TypeName = 'TileCellContainer',\
29  SGKey = "MBTSContainer",Label = "mbts_")
30  # CREATE SELECTED
31  return D3PDMakerCoreComps.VectorFillerTool('mbts_Getter',Prefix = 'mbts_',Getter = calombts_getter,
32  ObjectName = 'calombtss',SaveMetadata = D3PDMakerFlags.SaveObjectMetadata())
33 
34 
35 def make_Track_D3PDVectorFiller(name, prefix, object_name, getter = None,sgkey = None,label = None):
36 
37  # GET STOREGATE DATAVECTORS FOR TRACKS
38  trackparticle_getter = D3PDMakerCoreComps.SGDataVectorGetterTool('track_getter', TypeName = 'Rec::TrackParticleContainer',\
39  SGKey = "SelectedTracks",Label = "tracks_")
40 
41  # CREATE SELECTED
42  return D3PDMakerCoreComps.VectorFillerTool('track_Getter',Prefix = 'tracks_',Getter = trackparticle_getter,
43  ObjectName = 'trackparticles',SaveMetadata = D3PDMakerFlags.SaveObjectMetadata())
44 
45 
46 def make_Cluster_D3PDVectorFiller(name, prefix, object_name, getter = None,sgkey = None,label = None):
47 
48  # GET STOREGATE DATAVECTORS FOR CLUSTERS
49  calocluster_getter = D3PDMakerCoreComps.SGDataVectorGetterTool('cluster_getter', TypeName = 'CaloClusterContainer',\
50  SGKey = "CaloCalTopoCluster",Label = "clusters_")
51 
52  # CREATE SELECTED
53  return D3PDMakerCoreComps.VectorFillerTool('cluster_Getter',Prefix = 'clusters_',Getter = calocluster_getter,
54  ObjectName = 'caloclusters',SaveMetadata = D3PDMakerFlags.SaveObjectMetadata())
python.TileD3PDObject.make_MBTS_D3PDVectorFiller
def make_MBTS_D3PDVectorFiller(name, prefix, object_name, getter=None, sgkey=None, label=None)
Definition: TileD3PDObject.py:25
python.TileD3PDObject.make_Track_D3PDVectorFiller
def make_Track_D3PDVectorFiller(name, prefix, object_name, getter=None, sgkey=None, label=None)
Definition: TileD3PDObject.py:35
python.TileD3PDObject.make_Cell_D3PDVectorFiller
def make_Cell_D3PDVectorFiller(name, prefix, object_name, getter=None, sgkey=None, label=None)
Definition: TileD3PDObject.py:16
python.TileD3PDObject.make_Cluster_D3PDVectorFiller
def make_Cluster_D3PDVectorFiller(name, prefix, object_name, getter=None, sgkey=None, label=None)
Definition: TileD3PDObject.py:46