Belle II Software development
EveTower.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <TEveElement.h>
11
12class TEveCaloData;
13
14namespace Belle2 {
20 class EveTower : public TEveElement, public TObject {
21 public:
23 EveTower(TEveCaloData* calodata, int towerID): TEveElement(), TObject(), m_caloData(calodata), m_id(towerID) { }
24
26 int getID() const { return m_id; }
27
29 virtual void SelectElement(Bool_t state);
30
31 private:
32 TEveCaloData* m_caloData;
33 int m_id;
37 };
39}
handles selection of individual ECLClusters (getting them out of TEve is hard).
Definition: EveTower.h:20
virtual void SelectElement(Bool_t state)
Overrides TEveElement::SelectElement(), performs magic to select a single cluster.
Definition: EveTower.cc:17
ClassDef(EveTower, 0)
handles selection of individual ECLClusters (getting them out of TEve is hard).
EveTower(TEveCaloData *calodata, int towerID)
Construct from given ECLCluster representation.
Definition: EveTower.h:23
int getID() const
returns tower ID.
Definition: EveTower.h:26
int m_id
id of tower.
Definition: EveTower.h:33
TEveCaloData * m_caloData
Calo data object containing the tower.
Definition: EveTower.h:32
Abstract base class for different kinds of events.