ATLAS Offline Software
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 
21 namespace D3PD{
22 
23 class TowerFillerTool : public BlockFillerTool<CaloTower> {
24 public:
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 
46 private:
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 
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
D3PD::TowerFillerTool::m_phi
float * m_phi
Definition: TowerFillerTool.h:61
D3PD::TowerFillerTool::m_eta
float * m_eta
Definition: TowerFillerTool.h:59
D3PD::TowerFillerTool::book
virtual StatusCode book()
Declare tuple variables.
Definition: TowerFillerTool.cxx:27
D3PD::TowerFillerTool::m_E
float * m_E
Definition: TowerFillerTool.h:63
D3PD::TowerFillerTool::m_SaveConstituents
bool m_SaveConstituents
Definition: TowerFillerTool.h:47
BlockFillerTool.h
Type-safe wrapper for block filler tools.
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
D3PD::TowerFillerTool
Definition: TowerFillerTool.h:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::TowerFillerTool::m_cellWeights
std::vector< float > * m_cellWeights
Definition: TowerFillerTool.h:50
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
D3PD::TowerFillerTool::m_nCaloCells
unsigned int * m_nCaloCells
Definition: TowerFillerTool.h:52
CaloTower
Data class for calorimeter cell towers.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloTower.h:55
D3PD::TowerFillerTool::m_pT
float * m_pT
Definition: TowerFillerTool.h:57
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
D3PD::TowerFillerTool::fill
virtual StatusCode fill(const CaloTower &p)
Fill one block — type-safe version.
Definition: TowerFillerTool.cxx:44
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::TowerFillerTool::m_statWord
unsigned int * m_statWord
Definition: TowerFillerTool.h:54
D3PD::TowerFillerTool::TowerFillerTool
TowerFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TowerFillerTool.cxx:17