ATLAS Offline Software
Loading...
Searching...
No Matches
D3PD::TileTrackFillerTool Class Reference

#include <TileTrackFillerTool.h>

Inheritance diagram for D3PD::TileTrackFillerTool:
Collaboration diagram for D3PD::TileTrackFillerTool:

Public Member Functions

 TileTrackFillerTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode initialize ()
virtual StatusCode book ()
 Declare tuple variables.
virtual StatusCode fill (const xAOD::TrackParticle &p)
 Fill one block — type-safe version.
 BlockFillerToolImpl (const std::string &type, const std::string &name, const IInterface *parent)
 Standard Gaudi tool constructor.
virtual StatusCode configureD3PD (IAddVariable *tree, const std::type_info &ti)
 Configure during initialization: type-check.
StatusCode configureD3PD (IAddVariable *tree)
 Configure the parent tree.
virtual StatusCode fillUntyped (const void *p, bool again=false)
 Fill one block.
virtual StatusCode fillAgain (const xAOD::TrackParticle &p)
 Fill one block, after AGAIN has been returned (type-safe).
virtual StatusCode addVariable (const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
 Add a variable to the tuple.
StatusCode addVariable (const std::string &name, xAOD::TrackParticle *&ptr, const std::string &docstring="")
 Make the template implementation from IAddVariable visible.
StatusCode addVariable (const std::string &name, xAOD::TrackParticle *&ptr, const std::string &docstring, const U &defval)
 Make the template implementation from IAddVariable visible.
virtual StatusCode addDimensionedVariable (const std::string &name, const std::type_info &ti, void *&ptr, const std::string &dim, const std::string &docstring="", const void *defval=0)
 Add a variable to the tuple.
StatusCode addDimensionedVariable (const std::string &name, xAOD::TrackParticle *&ptr, const std::string &dim, const std::string &docstring="")
 Add a variable to the tuple.
StatusCode addDimensionedVariable (const std::string &name, xAOD::TrackParticle *&ptr, const std::string &dim, const std::string &docstring, const U &defval)
 Add a variable to the tuple.

Protected Member Functions

StatusCode configureImpl (IAddVariable *tree, const std::type_info &ti, const std::type_info &fill_ti)
 Configure during initialization: type-check.
StatusCode configureImpl (IAddVariable *tree, const std::type_info &ti, const std::vector< const std::type_info * > &tis, size_t &which)
 Configure during initialization: type-check.
StatusCode convert (void const *&p) const
 Do type conversion.

Protected Attributes

ObjectMetadata m_metadata
 Metadata about the variables created by this object.

Private Attributes

float m_defaultValue
int m_trkParType
std::string m_standalone
short m_LevelOfDetails
int * m_nucone05
int * m_nucone10
int * m_nucone20
int * m_nucone30
int * m_nucone40
int * m_numberOfBLayerHits
int * m_numberOfPixelHits
int * m_numberOfSCTHits
int * m_numberOfTRTHits
int * m_numberOfTRTHighThresholdHits
int * m_numberOfBLayerSharedHits
int * m_numberOfPixelSharedHits
int * m_numberOfPixelHoles
int * m_numberOfSCTSharedHits
int * m_numberOfSCTHoles
int * m_numberOfTRTOutliers
int * m_numberOfTRTHighThresholdOutliers
int * m_numberOfGangedPixels
int * m_numberOfOutliersOnTrack
int * m_numberOfTrackSummaryTypes
float * m_ptcone10
float * m_ptcone20
float * m_ptcone30
float * m_ptcone40
float * m_ptcone45
float * m_pt
float * m_p
float * m_vtxX
float * m_vtxY
float * m_vtxZ
float * m_d0
float * m_z0
float * m_phi0
float * m_theta
float * m_qOverP
std::vector< float > * m_eta
std::vector< float > * m_phi
std::vector< float > * m_x
std::vector< float > * m_y
std::vector< float > * m_z
ToolHandle< ITrackToolsm_trackInCalo
ToolHandle< Reco::ITrackToVertexm_trackToVertexTool
std::string m_calocellContainerName
std::string m_MCeventCollection
std::string m_prefix
 Property: the variable prefix for this block.
std::string m_suffix
 Property: the variable prefix for this block.
std::string m_blockName
 Property: the name of this block.
TypeConverter m_converter
 Helper to do type conversions.
IAddVariablem_tree
 Reference to the block name.

Static Private Attributes

static const std::string s_emptyString
 Used to provide a default value for blockName.

Detailed Description

Definition at line 34 of file TileTrackFillerTool.h.

Constructor & Destructor Documentation

◆ TileTrackFillerTool()

D3PD::TileTrackFillerTool::TileTrackFillerTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 30 of file TileTrackFillerTool.cxx.

33: D3PD::BlockFillerTool<xAOD::TrackParticle>(type,name,parent),
34m_trackToVertexTool("Reco::TrackToVertex"){
35 //=========================================================================
36
37 TileTrackFillerTool::book().ignore(); // AVOID COVERITY WARNINGS
38 declareProperty("LevelOfDetails", m_LevelOfDetails);
39 declareProperty("CellsName", m_calocellContainerName="SelectedCells" );
40 declareProperty("TrackTools", m_trackInCalo);
41 declareProperty("TrackToVertexTool", m_trackToVertexTool, "tool to map track to vertex");
42 declareProperty("TrackParType", m_trkParType = 1);
43
44} // TileTrackFillerTool::TileTrackFillerTool
ToolHandle< ITrackTools > m_trackInCalo
ToolHandle< Reco::ITrackToVertex > m_trackToVertexTool
virtual StatusCode book()
Declare tuple variables.

Member Function Documentation

◆ addDimensionedVariable() [1/3]

StatusCode D3PD::AddVariable::addDimensionedVariable ( const std::string & name,
const std::type_info & ti,
void *& ptr,
const std::string & dim,
const std::string & docstring = "",
const void * defval = 0 )
virtualinherited

Add a variable to the tuple.

Parameters
nameThe name of the variable.
typeThe type of the variable.
ptrPointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill().
dimDimension for the variable. (Presently unimplemented!)
docstringDocumentation string for this variable.
defvalPointer to the default value to use for this variable. Null for no default (generally means to fill with zeros). Of the type given by ti. Only works for basic types.

If called from the constructor, the only effect is to clear ptr.

Definition at line 119 of file AddVariable.cxx.

129{
130 if (!m_tree) {
131 // Called from constructor --- just initialize pointer.
132 ptr = 0;
133 return StatusCode::SUCCESS;
134 }
135
137 ti, ptr, dim,
138 docstring, defval ) );
140 ti, ptr, dim,
142}
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode addDimensionedVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &dim, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.
Type-safe wrapper for block filler tools.

◆ addDimensionedVariable() [2/3]

StatusCode D3PD::IAddVariable::addDimensionedVariable ( const std::string & name,
xAOD::TrackParticle *& ptr,
const std::string & dim,
const std::string & docstring,
const U & defval )
inherited

Add a variable to the tuple.

Parameters
nameThe name of the variable.
ptrPointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill().
dimDimension for the variable. (Presently unimplemented!)
docstringDocumentation string for this variable.
defvalPointer to the default value to use for this variable. Only works for basic types.

If called from the constructor, the only effect is to clear ptr.

◆ addDimensionedVariable() [3/3]

StatusCode D3PD::IAddVariable::addDimensionedVariable ( const std::string & name,
xAOD::TrackParticle *& ptr,
const std::string & dim,
const std::string & docstring = "" )
inherited

Add a variable to the tuple.

Parameters
nameThe name of the variable.
ptrPointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill().
dimDimension for the variable. (Presently unimplemented!)
docstringDocumentation string for this variable.

If called from the constructor, the only effect is to clear ptr.

◆ addVariable() [1/3]

StatusCode D3PD::AddVariable::addVariable ( const std::string & name,
const std::type_info & ti,
void *& ptr,
const std::string & docstring = "",
const void * defval = 0 )
virtualinherited

Add a variable to the tuple.

Parameters
nameThe name of the variable.
typeThe type of the variable.
ptrPointer to the type of the variable. The pointer need not be initialized; the D3PD software will set the pointer prior to calling fill().
docstringDocumentation string for this variable.
defvalPointer to the default value to use for this variable. Null for no default (generally means to fill with zeros). Of the type given by ti. Only works for basic types.

If called from the constructor, the only effect is to clear ptr.

Definition at line 93 of file AddVariable.cxx.

90{
91 if (!m_tree) {
92 // Called from constructor --- just initialize pointer.
93 ptr = 0;
95 }
96
98 ti, ptr, docstring, defval ) );
101}
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.

◆ addVariable() [2/3]

StatusCode D3PD::IAddVariable::addVariable ( const std::string & name,
xAOD::TrackParticle *& ptr,
const std::string & docstring,
const U & defval )
inherited

Make the template implementation from IAddVariable visible.

◆ addVariable() [3/3]

StatusCode D3PD::IAddVariable::addVariable ( const std::string & name,
xAOD::TrackParticle *& ptr,
const std::string & docstring = "" )
inherited

Make the template implementation from IAddVariable visible.

◆ BlockFillerToolImpl()

( const std::string & type,
const std::string & name,
const IInterface * parent )
inherited

Standard Gaudi tool constructor.

Parameters
typeThe name of the tool type.
nameThe tool name.
parentThe tool's Gaudi parent.

◆ book()

StatusCode D3PD::TileTrackFillerTool::book ( )
virtual

Declare tuple variables.

This is called at the start of the first event.

Implements D3PD::BlockFillerTool< xAOD::TrackParticle >.

Definition at line 64 of file TileTrackFillerTool.cxx.

64 {
65 //=========================================
66 // ADDS VARIABLES TO THE D3PD TREE
67
68 // OUTPUT MESSAGING SERVICE
69 ATH_MSG_DEBUG("TileTrackFillerTool::book()");
70
71 if (m_LevelOfDetails > 0){
72
75 if(m_trkParType)
76 {
77 CHECK( addVariable("eta_layer", m_eta ));
78 CHECK( addVariable("phi_layer", m_phi ));
79 } else
80 {
81 CHECK( addVariable("eta_sampling", m_eta ));
82 CHECK( addVariable("phi_sampling", m_phi ));
83 }
84
85 CHECK( addVariable("numberOfPixelHits", m_numberOfPixelHits, "", m_defaultValue));
86 CHECK( addVariable("numberOfSCTHits", m_numberOfSCTHits, "", m_defaultValue));
87 CHECK( addVariable("numberOfTRTHits", m_numberOfTRTHits, "", m_defaultValue));
88
90 CHECK( addVariable("z0", m_z0, "", m_defaultValue));
91 } // IF
92
93 if (m_LevelOfDetails > 1){
94
95 if(m_trkParType)
96 {
97 CHECK( addVariable("x_layer", m_x ));
98 CHECK( addVariable("y_layer", m_y ));
99 CHECK( addVariable("z_layer", m_z ));
100 } else
101 {
102 CHECK( addVariable("x_sampling", m_x ));
103 CHECK( addVariable("y_sampling", m_y ));
104 CHECK( addVariable("z_sampling", m_z ));
105 }
106
107 CHECK( addVariable("vtxX", m_vtxX, "", m_defaultValue));
108 CHECK( addVariable("vtxY", m_vtxY, "", m_defaultValue));
109 CHECK( addVariable("vtxZ", m_vtxZ, "", m_defaultValue));
110 CHECK( addVariable("phi0", m_phi0, "", m_defaultValue));
111 CHECK( addVariable("theta", m_theta, "", m_defaultValue));
112 CHECK( addVariable("qOverP", m_qOverP, "", m_defaultValue));
113 }
114
115 if (m_LevelOfDetails > 2){
116 CHECK( addVariable("nucone05", m_nucone05, "", m_defaultValue));
117 CHECK( addVariable("nucone10", m_nucone10, "", m_defaultValue));
118 CHECK( addVariable("nucone20", m_nucone20, "", m_defaultValue));
119 CHECK( addVariable("nucone30", m_nucone30, "", m_defaultValue));
120 CHECK( addVariable("nucone40", m_nucone40, "", m_defaultValue));
121
122 CHECK( addVariable("ptcone10", m_ptcone10, "", m_defaultValue));
123 CHECK( addVariable("ptcone20", m_ptcone20, "", m_defaultValue));
124 CHECK( addVariable("ptcone30", m_ptcone30, "", m_defaultValue));
125 CHECK( addVariable("ptcone40", m_ptcone40, "", m_defaultValue));
126 CHECK( addVariable("ptcone45", m_ptcone45, "", m_defaultValue));
127 }
128
129 if (m_LevelOfDetails > 3){
130 CHECK( addVariable("numberOfInnermostPixelLayerHits", m_numberOfBLayerHits, "", m_defaultValue));
131 CHECK( addVariable("numberOfTRTHighThresholdHits", m_numberOfTRTHighThresholdHits, "", m_defaultValue));
132 CHECK( addVariable("numberOfInnermostPixelLayerSharedHits", m_numberOfBLayerSharedHits, "", m_defaultValue));
133 CHECK( addVariable("numberOfPixelSharedHits", m_numberOfPixelSharedHits, "", m_defaultValue));
134 CHECK( addVariable("numberOfPixelHoles", m_numberOfPixelHoles, "", m_defaultValue));
135 CHECK( addVariable("numberOfSCTSharedHits", m_numberOfSCTSharedHits, "", m_defaultValue));
136 CHECK( addVariable("numberOfSCTHoles", m_numberOfSCTHoles, "", m_defaultValue));
137 CHECK( addVariable("numberOfTRTOutliers", m_numberOfTRTOutliers, "", m_defaultValue));
138 CHECK( addVariable("numberOfTRTHighThresholdOutliers", m_numberOfTRTHighThresholdOutliers, "", m_defaultValue));
139
140 CHECK( addVariable("numberOfGangedPixels", m_numberOfGangedPixels, "", m_defaultValue));
141 CHECK( addVariable("numberOfOutliersOnTrack", m_numberOfOutliersOnTrack, "", m_defaultValue));
142 CHECK( addVariable("numberOfTrackSummaryTypes", m_numberOfTrackSummaryTypes, "", m_defaultValue));
143 }
144
145 return StatusCode::SUCCESS;
146} // TileTrackFillerTool::book
#define ATH_MSG_DEBUG(x)
std::vector< float > * m_y
std::vector< float > * m_x
std::vector< float > * m_phi
std::vector< float > * m_z
std::vector< float > * m_eta

◆ configureD3PD() [1/2]

StatusCode D3PD::AddVariable::configureD3PD ( IAddVariable * tree)
inherited

Configure the parent tree.

Parameters
treeThe parent IAddVariable instance.

Definition at line 69 of file AddVariable.cxx.

62{
63 m_tree = tree;
64 m_metadata.clear();
66}

◆ configureD3PD() [2/2]

virtual StatusCode D3PD::BlockFillerTool< xAOD::TrackParticle >::configureD3PD ( IAddVariable * tree,
const std::type_info & ti )
virtualinherited

Configure during initialization: type-check.

Parameters
treeOur parent for tuple making.
tiGives the type of the object being passed to fillUntyped.

configureD3PD should check that the type of the object coming as input is compatible with what it expects, and raise an error otherwise.

◆ configureImpl() [1/2]

StatusCode D3PD::BlockFillerToolImpl::configureImpl ( IAddVariable * tree,
const std::type_info & ti,
const std::type_info & fill_ti )
protectedinherited

Configure during initialization: type-check.

Parameters
treeOur parent for tuple making.
tiGives the type of the object being passed to fillUntyped.
fill_tiis the type of object that the user code will expect.

This is the common implementation for the configureD3PD method of IBlockFillerTool. It checks that the type of the object coming as input is compatible with what the user code is expecting, and raises an error otherwise.

Definition at line 70 of file BlockFillerToolImpl.cxx.

58{
60 CHECK( m_converter.init (ti, fill_ti) );
61
63}

◆ configureImpl() [2/2]

StatusCode D3PD::BlockFillerToolImpl::configureImpl ( IAddVariable * tree,
const std::type_info & ti,
const std::vector< const std::type_info * > & tis,
size_t & which )
protectedinherited

Configure during initialization: type-check.

Parameters
treeOur parent for tuple making.
tiGives the type of the object being passed to fillUntyped.
tisList of possible input types that we can accept.
[out]whichIndex of the accepted type.

This is the common implementation for the configureD3PD method of IBlockFillerTool. It checks that the type of the object coming as input is compatible with what the user code is expecting, and raises an error otherwise.

This version allows for one of a set of types to match. If successful, WHICH is set to the index (0-based) of the matching type.

Definition at line 91 of file BlockFillerToolImpl.cxx.

87{
89 CHECK( m_converter.init (ti, tis, which) );
91}

◆ convert()

StatusCode D3PD::BlockFillerToolImpl::convert ( void const *& p) const
protectedinherited

Do type conversion.

Parameters
p[in,out]Pointer to convert.

On entry, p is a pointer to an object of the type that was passed into configureImpl as ti. Convert the pointer to point to an object of the type that was given as fill_ti. If the conversion fails, the pointer is set to 0 (and FAILURE is returned).

Definition at line 107 of file BlockFillerToolImpl.cxx.

106{
107 p = m_converter.convertUntyped (p);
108 if (!p) {
110 << "Pointer conversion from " << m_converter.srcName() << " to "
111 << m_converter.dstName() << "failed.";
112 return StatusCode::FAILURE;
113 }
114 return StatusCode::SUCCESS;
115}
#define REPORT_MESSAGE(LVL)
Report a message.

◆ fill()

StatusCode D3PD::TileTrackFillerTool::fill ( const xAOD::TrackParticle & p)
virtual

Fill one block — type-safe version.

Parameters
pThe input object.

This is called once per object. The caller is responsible for arranging that all the pointers for booked variables are set appropriately upon entry.

Implements D3PD::BlockFillerTool< xAOD::TrackParticle >.

Definition at line 149 of file TileTrackFillerTool.cxx.

149 {
150 //================================================================
151 // OUTPUT MESSAGING SERVICE
152 ATH_MSG_DEBUG("TileTrackFillerTool::fill");
153
154 // Get Track information
155 const xAOD::TrackParticle* trackPointer = &p;
156
157 if(!trackPointer) { ATH_MSG_INFO("NULL POINTER"); return StatusCode::RECOVERABLE; }
158 auto perigee = m_trackToVertexTool->perigeeAtVertex(Gaudi::Hive::currentContext(), *trackPointer);
159
160 // STORE TRACK PARAMETERS
161 if(m_LevelOfDetails > 0){
162 *m_pt = trackPointer->pt();
163 *m_p = trackPointer->p4().P();
164
165 std::vector< std::vector<double> > positions = (m_trkParType) ? m_trackInCalo->getXYZEtaPhiPerLayer(trackPointer) :
166 m_trackInCalo->getXYZEtaPhiPerSampling(trackPointer);
167
168 if( (m_trkParType) ? (positions.size() == 11) : (positions.size() == 21) ){
169 for(uint i=0;i<positions.size();++i){
170 if(m_LevelOfDetails > 1)
171 {
172 m_x->push_back( (positions[i].size()!=5) ? -9999. : positions[i][0] );
173 m_y->push_back( (positions[i].size()!=5) ? -9999. : positions[i][1] );
174 m_z->push_back( (positions[i].size()!=5) ? -9999. : positions[i][2] );
175 }
176 m_eta->push_back( (positions[i].size()!=5) ? -9999. : positions[i][3] );
177 m_phi->push_back( (positions[i].size()!=5) ? -9999. : positions[i][4] );
178 }
179 } // IF
180
181 trackPointer->summaryValue( *uint8Ptr(m_numberOfPixelHits), xAOD::numberOfPixelHits );
182 trackPointer->summaryValue( *uint8Ptr(m_numberOfSCTHits), xAOD::numberOfSCTHits );
183 trackPointer->summaryValue( *uint8Ptr(m_numberOfTRTHits), xAOD::numberOfTRTHits );
184
185 *m_d0 = perigee->parameters()[Trk::d0];
186 *m_z0 = perigee->parameters()[Trk::d0];
187 }
188
189 if(m_LevelOfDetails > 1){
190 *m_vtxX = perigee->parameters()[Trk::x];
191 *m_vtxY = perigee->parameters()[Trk::y];
192 *m_vtxZ = perigee->parameters()[Trk::z];
193 *m_phi0 = perigee->parameters()[Trk::phi0];
194 *m_theta = perigee->parameters()[Trk::theta];
195 *m_qOverP = perigee->parameters()[Trk::qOverP];
196 }
197
198 if(m_LevelOfDetails > 2){
199
200 std::vector<xAOD::Iso::IsolationType> ptcones = {xAOD::Iso::ptcone40,xAOD::Iso::ptcone30,
202 xAOD::TrackIsolation trackIsolation;
203 if( !m_trackInCalo->trackIsolation(trackIsolation, *trackPointer, ptcones) )
204 {
205 ATH_MSG_WARNING("Calculation of TrackIsolation failed");
206 }
207 else
208 {
209 *m_ptcone40 = trackIsolation.ptcones[0];
210 *m_ptcone30 = trackIsolation.ptcones[1];
211 *m_ptcone20 = trackIsolation.ptcones[2];
212 }
213
214 /* THIS IS GOING TO BE USED
215 std::vector<xAOD::Iso::IsolationType> nucones = { xAOD::Iso::neflowisol10,xAOD::Iso::neflowisol15,xAOD::Iso::neflowisol20,
216 xAOD::Iso::neflowisol25,xAOD::Iso::neflowisol30,xAOD::Iso::neflowisol35,
217 xAOD::Iso::neflowisol40,xAOD::Iso::neflowisol45 };
218 xAOD::CaloIsolation caloIsolation;
219 if( !m_trackInCalo->neutralEflowIsolation(caloIsolation, *trackPointer, nucones, xAOD::ICaloIsolationTool::Ecore) )
220 {
221 ATH_MSG_WARNING("Calculation of CaloIsolation failed");
222 }
223 else
224 {
225 ;
226 }
227 */
228 } // IF
229
230 if(m_LevelOfDetails > 3){
239 trackPointer->summaryValue( *uint8Ptr(m_numberOfSCTHoles), xAOD::numberOfSCTHoles );
244 }
245
246 return StatusCode::SUCCESS;
247} // TileTrackFillerTool::fill
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
unsigned int uint
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
@ x
Definition ParamDefs.h:55
@ z
global position (cartesian)
Definition ParamDefs.h:57
@ phi0
Definition ParamDefs.h:65
@ theta
Definition ParamDefs.h:66
@ qOverP
perigee
Definition ParamDefs.h:67
@ y
Definition ParamDefs.h:56
@ d0
Definition ParamDefs.h:63
@ ptcone20
Track isolation.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
@ numberOfGangedPixels
number of pixels which have a ganged ambiguity [unit8_t].
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
@ numberOfTRTHighThresholdOutliers
number of TRT high threshold outliers (only xenon counted) [unit8_t].
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
@ numberOfTRTHits
number of TRT hits [unit8_t].
@ numberOfOutliersOnTrack
number of measurements flaged as outliers in TSOS [unit8_t].
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
@ numberOfTRTHighThresholdHits
number of TRT hits which pass the high threshold (only xenon counted) [unit8_t].
@ numberOfTRTOutliers
number of TRT outliers [unit8_t].
@ numberOfSCTHoles
number of SCT holes [unit8_t].
std::vector< float > ptcones

◆ fillAgain()

virtual StatusCode D3PD::BlockFillerTool< xAOD::TrackParticle >::fillAgain ( const xAOD::TrackParticle & p)
virtualinherited

Fill one block, after AGAIN has been returned (type-safe).

Parameters
pThe input object.

Once fill returns AGAIN, the parent should call fillAgain with the same arguments. This continues until fillAgain returns something other than AGAIN.

By default, this just calls fill().

◆ fillUntyped()

virtual StatusCode D3PD::BlockFillerTool< xAOD::TrackParticle >::fillUntyped ( const void * p,
bool again = false )
virtualinherited

Fill one block.

Parameters
pThe input object.
againSet if this is a subsequent call requested by an AGAIN return

This is called once per object. The type of the object at which p points is given by the ti argument to configureD3PD. The caller is responsible for arranging that all the pointers for booked variables are set appropriately upon entry.

If the return status is the special code AGAIN (defined above), then this filler tool wants to make multiple entries. The parent should set up to capture a new ‘row’ and run through the list of block filler tools again, but for this tool call fillAgainUntyped instead of fillUntyped. This should be repeated as long as fillAgainUntyped returns AGAIN.

Once fillUntyped returns AGAIN, the parent should call fillUntyped with the same p argument and again set to true. This continues until fillUntyped returns something other than AGAIN.

Not all parents may support this. In that case, returning AGAIN will be treated as an error.

◆ initialize()

StatusCode D3PD::TileTrackFillerTool::initialize ( )
virtual

Definition at line 47 of file TileTrackFillerTool.cxx.

47 {
48 //===============================================
49 // RETRIEVES NECESSARY SERVICES AND TOOLS, INSTANTIATES GLOBAL VARIABLES
50
51 ATH_MSG_DEBUG("TILETRACKERFILLERTOOL::INITIALIZE()");
52
53 // CHECK WHETHER BLOCKFILLERTOOL HAS BEEN INITIALIZED
54 CHECK( D3PD::BlockFillerTool<xAOD::TrackParticle>::initialize());
55
56 CHECK(m_trackInCalo.retrieve());
57
58 CHECK(m_trackToVertexTool.retrieve());
59
60 return StatusCode::SUCCESS;
61} // TileTrackFillerTool::initialize

Member Data Documentation

◆ m_blockName

std::string D3PD::BlockFillerToolImpl::m_blockName
privateinherited

Property: the name of this block.

Definition at line 118 of file BlockFillerToolImpl.h.

◆ m_calocellContainerName

std::string D3PD::TileTrackFillerTool::m_calocellContainerName
private

Definition at line 108 of file TileTrackFillerTool.h.

◆ m_converter

TypeConverter D3PD::BlockFillerToolImpl::m_converter
privateinherited

Helper to do type conversions.

Definition at line 121 of file BlockFillerToolImpl.h.

◆ m_d0

float* D3PD::TileTrackFillerTool::m_d0
private

Definition at line 92 of file TileTrackFillerTool.h.

◆ m_defaultValue

float D3PD::TileTrackFillerTool::m_defaultValue
private

Definition at line 48 of file TileTrackFillerTool.h.

◆ m_eta

std::vector<float>* D3PD::TileTrackFillerTool::m_eta
private

Definition at line 99 of file TileTrackFillerTool.h.

◆ m_LevelOfDetails

short D3PD::TileTrackFillerTool::m_LevelOfDetails
private

Definition at line 53 of file TileTrackFillerTool.h.

◆ m_MCeventCollection

std::string D3PD::TileTrackFillerTool::m_MCeventCollection
private

Definition at line 109 of file TileTrackFillerTool.h.

◆ m_metadata

ObjectMetadata D3PD::AddVariable::m_metadata
protectedinherited

Metadata about the variables created by this object.

Definition at line 129 of file AddVariable.h.

◆ m_nucone05

int* D3PD::TileTrackFillerTool::m_nucone05
private

Definition at line 56 of file TileTrackFillerTool.h.

◆ m_nucone10

int* D3PD::TileTrackFillerTool::m_nucone10
private

Definition at line 57 of file TileTrackFillerTool.h.

◆ m_nucone20

int* D3PD::TileTrackFillerTool::m_nucone20
private

Definition at line 58 of file TileTrackFillerTool.h.

◆ m_nucone30

int* D3PD::TileTrackFillerTool::m_nucone30
private

Definition at line 59 of file TileTrackFillerTool.h.

◆ m_nucone40

int* D3PD::TileTrackFillerTool::m_nucone40
private

Definition at line 60 of file TileTrackFillerTool.h.

◆ m_numberOfBLayerHits

int* D3PD::TileTrackFillerTool::m_numberOfBLayerHits
private

Definition at line 62 of file TileTrackFillerTool.h.

◆ m_numberOfBLayerSharedHits

int* D3PD::TileTrackFillerTool::m_numberOfBLayerSharedHits
private

Definition at line 67 of file TileTrackFillerTool.h.

◆ m_numberOfGangedPixels

int* D3PD::TileTrackFillerTool::m_numberOfGangedPixels
private

Definition at line 74 of file TileTrackFillerTool.h.

◆ m_numberOfOutliersOnTrack

int* D3PD::TileTrackFillerTool::m_numberOfOutliersOnTrack
private

Definition at line 75 of file TileTrackFillerTool.h.

◆ m_numberOfPixelHits

int* D3PD::TileTrackFillerTool::m_numberOfPixelHits
private

Definition at line 63 of file TileTrackFillerTool.h.

◆ m_numberOfPixelHoles

int* D3PD::TileTrackFillerTool::m_numberOfPixelHoles
private

Definition at line 69 of file TileTrackFillerTool.h.

◆ m_numberOfPixelSharedHits

int* D3PD::TileTrackFillerTool::m_numberOfPixelSharedHits
private

Definition at line 68 of file TileTrackFillerTool.h.

◆ m_numberOfSCTHits

int* D3PD::TileTrackFillerTool::m_numberOfSCTHits
private

Definition at line 64 of file TileTrackFillerTool.h.

◆ m_numberOfSCTHoles

int* D3PD::TileTrackFillerTool::m_numberOfSCTHoles
private

Definition at line 71 of file TileTrackFillerTool.h.

◆ m_numberOfSCTSharedHits

int* D3PD::TileTrackFillerTool::m_numberOfSCTSharedHits
private

Definition at line 70 of file TileTrackFillerTool.h.

◆ m_numberOfTrackSummaryTypes

int* D3PD::TileTrackFillerTool::m_numberOfTrackSummaryTypes
private

Definition at line 76 of file TileTrackFillerTool.h.

◆ m_numberOfTRTHighThresholdHits

int* D3PD::TileTrackFillerTool::m_numberOfTRTHighThresholdHits
private

Definition at line 66 of file TileTrackFillerTool.h.

◆ m_numberOfTRTHighThresholdOutliers

int* D3PD::TileTrackFillerTool::m_numberOfTRTHighThresholdOutliers
private

Definition at line 73 of file TileTrackFillerTool.h.

◆ m_numberOfTRTHits

int* D3PD::TileTrackFillerTool::m_numberOfTRTHits
private

Definition at line 65 of file TileTrackFillerTool.h.

◆ m_numberOfTRTOutliers

int* D3PD::TileTrackFillerTool::m_numberOfTRTOutliers
private

Definition at line 72 of file TileTrackFillerTool.h.

◆ m_p

float* D3PD::TileTrackFillerTool::m_p
private

Definition at line 86 of file TileTrackFillerTool.h.

◆ m_phi

std::vector<float>* D3PD::TileTrackFillerTool::m_phi
private

Definition at line 100 of file TileTrackFillerTool.h.

◆ m_phi0

float* D3PD::TileTrackFillerTool::m_phi0
private

Definition at line 94 of file TileTrackFillerTool.h.

◆ m_prefix

std::string D3PD::BlockFillerToolImpl::m_prefix
privateinherited

Property: the variable prefix for this block.

Definition at line 112 of file BlockFillerToolImpl.h.

◆ m_pt

float* D3PD::TileTrackFillerTool::m_pt
private

Definition at line 85 of file TileTrackFillerTool.h.

◆ m_ptcone10

float* D3PD::TileTrackFillerTool::m_ptcone10
private

Definition at line 79 of file TileTrackFillerTool.h.

◆ m_ptcone20

float* D3PD::TileTrackFillerTool::m_ptcone20
private

Definition at line 80 of file TileTrackFillerTool.h.

◆ m_ptcone30

float* D3PD::TileTrackFillerTool::m_ptcone30
private

Definition at line 81 of file TileTrackFillerTool.h.

◆ m_ptcone40

float* D3PD::TileTrackFillerTool::m_ptcone40
private

Definition at line 82 of file TileTrackFillerTool.h.

◆ m_ptcone45

float* D3PD::TileTrackFillerTool::m_ptcone45
private

Definition at line 83 of file TileTrackFillerTool.h.

◆ m_qOverP

float* D3PD::TileTrackFillerTool::m_qOverP
private

Definition at line 96 of file TileTrackFillerTool.h.

◆ m_standalone

std::string D3PD::TileTrackFillerTool::m_standalone
private

Definition at line 50 of file TileTrackFillerTool.h.

◆ m_suffix

std::string D3PD::BlockFillerToolImpl::m_suffix
privateinherited

Property: the variable prefix for this block.

Definition at line 115 of file BlockFillerToolImpl.h.

◆ m_theta

float* D3PD::TileTrackFillerTool::m_theta
private

Definition at line 95 of file TileTrackFillerTool.h.

◆ m_trackInCalo

ToolHandle<ITrackTools> D3PD::TileTrackFillerTool::m_trackInCalo
private

Definition at line 106 of file TileTrackFillerTool.h.

◆ m_trackToVertexTool

ToolHandle<Reco::ITrackToVertex> D3PD::TileTrackFillerTool::m_trackToVertexTool
private

Definition at line 107 of file TileTrackFillerTool.h.

◆ m_tree

IAddVariable* D3PD::AddVariable::m_tree
privateinherited

Reference to the block name.

The parent IAddVariable instance.

Definition at line 143 of file AddVariable.h.

◆ m_trkParType

int D3PD::TileTrackFillerTool::m_trkParType
private

Definition at line 49 of file TileTrackFillerTool.h.

◆ m_vtxX

float* D3PD::TileTrackFillerTool::m_vtxX
private

Definition at line 89 of file TileTrackFillerTool.h.

◆ m_vtxY

float* D3PD::TileTrackFillerTool::m_vtxY
private

Definition at line 90 of file TileTrackFillerTool.h.

◆ m_vtxZ

float* D3PD::TileTrackFillerTool::m_vtxZ
private

Definition at line 91 of file TileTrackFillerTool.h.

◆ m_x

std::vector<float>* D3PD::TileTrackFillerTool::m_x
private

Definition at line 101 of file TileTrackFillerTool.h.

◆ m_y

std::vector<float>* D3PD::TileTrackFillerTool::m_y
private

Definition at line 102 of file TileTrackFillerTool.h.

◆ m_z

std::vector<float>* D3PD::TileTrackFillerTool::m_z
private

Definition at line 103 of file TileTrackFillerTool.h.

◆ m_z0

float* D3PD::TileTrackFillerTool::m_z0
private

Definition at line 93 of file TileTrackFillerTool.h.

◆ s_emptyString

const std::string D3PD::AddVariable::s_emptyString
staticprivateinherited

Used to provide a default value for blockName.

Definition at line 41 of file AddVariable.h.


The documentation for this class was generated from the following files: