17 #include "TEveCaloData.h"
82 using namespace TMath;
86 return val +=
TwoPi();
90 return val -=
TwoPi();
103 TEveCaloData::vCellId_t& selected =
m_caloData->GetCellsSelected();
105 if(
item()->defaultDisplayProperties().isVisible()) {
107 unsigned int index=0;
111 if (tower->ietaAbs() > 39)
118 else if (tower->ietaAbs() > 20)
125 m_hist->Fill(tower->eta(),tower->phi(),
getEt(*tower));
133 if (tower->ietaAbs() > 39)
140 else if (tower->ietaAbs() > 20)
147 selected.push_back(TEveCaloData::CellId_t(
m_hist->FindBin(tower->eta(),tower->phi()),
m_sliceIndex));
163 Bool_t
status = TH1::AddDirectoryStatus();
164 TH1::AddDirectory(kFALSE);
165 m_hist =
new TH2F(
"caloHist",
169 TH1::AddDirectory(status);
170 TEveCaloDataHist* ch =
static_cast<TEveCaloDataHist*
>(
m_caloData);
176 item()->defaultDisplayProperties().
color(),
177 item()->defaultDisplayProperties().transparency());
192 m_caloData->SetUserData(static_cast<FWFromEveSelectorBase*>(sel));
virtual void setCaloData(const fireworks::Context &)
const fireworks::Context & context() const
const FWDisplayProperties & displayProperties() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
FWCaloTowerProxyBuilderBase()
void get(const T *&oData) const
std::vector< CaloTower >::const_iterator const_iterator
void addSliceSelector(int iSlice, FWFromSliceSelector *)
const FWEventItem * item() const
bool assertCaloDataSlice()
const CaloTowerCollection * m_towers
virtual void itemBeingDestroyed(const FWEventItem *)
TEveCaloDataHist * getCaloData() const
virtual ~FWCaloTowerProxyBuilderBase()
const_iterator end() const
static const int kAllLegoBits
virtual double getEt(const CaloTower &) const =0
double wrapPi(double val)
virtual void fillCaloData()
ModelInfo modelInfo(int iIndex) const
virtual void itemBeingDestroyed(const FWEventItem *)
const_iterator begin() const
TEveCaloData * m_caloData