ATLAS Offline Software
Loading...
Searching...
No Matches
TowerFillerTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 * File: TowerFillerTool.h
7 * Author: stephen
8 *
9 * Created on August 26, 2011, 1:36 PM
10 */
11
12#ifndef TOWERFILLERTOOL_H
13#define TOWERFILLERTOOL_H
14
15#include <vector>
16
18#include "CaloEvent/CaloTower.h"
19#include "GaudiKernel/ToolHandle.h"
20
21namespace D3PD{
22
23class TowerFillerTool : public BlockFillerTool<CaloTower> {
24public:
25 /*
26 @brief Standard Gaudi tool constructor.
27 @param type The name of the tool type.
28 @param name The tool name.
29 @param parent The tool's Gaudi parent.*/
30 TowerFillerTool(const std::string& type,
31 const std::string& name,
32 const IInterface* parent);
33 //Book variables for this block.
34 virtual StatusCode book();
35
36 /*
37 @brief Fill one block --- type-safe version.
38 @param p The input object.
39
40 This is called once per object. The caller
41 is responsible for arranging that all the pointers for booked variables
42 are set appropriately upon entry.*/
43 virtual StatusCode fill (const CaloTower& p);
44
45
46private:
48
49 //vector containing the weight for each CaloCell making up the tower
50 std::vector<float>* m_cellWeights;
51 //the number of constituent calorimeter cells
52 unsigned int* m_nCaloCells;
53
54 unsigned int* m_statWord;
55
56 //The tower pT
57 float* m_pT;
58 //The tower eta
59 float* m_eta;
60 //The tower phi
61 float* m_phi;
62 //The tower energy
63 float* m_E;
64
65
66
67};
68
69}
70#endif /* TOWERFILLERTOOL_H */
71
Type-safe wrapper for block filler tools.
Data class for calorimeter cell towers.
Type-safe wrapper for block filler tools.
virtual StatusCode book()
Declare tuple variables.
unsigned int * m_nCaloCells
unsigned int * m_statWord
virtual StatusCode fill(const CaloTower &p)
Fill one block — type-safe version.
TowerFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
std::vector< float > * m_cellWeights
Block filler tool for noisy FEB information.