18 #include "TEveCaloData.h"
83 using namespace TMath;
87 return val +=
TwoPi();
91 return val -=
TwoPi();
104 TEveCaloData::vCellId_t& selected =
m_caloData->GetCellsSelected();
106 if(
item()->defaultDisplayProperties().isVisible()) {
108 unsigned int index=0;
112 if (tower->ietaAbs() > 39)
119 else if (tower->ietaAbs() > 20)
126 m_hist->Fill(tower->eta(),tower->phi(),
getEt(*tower));
134 if (tower->ietaAbs() > 39)
141 else if (tower->ietaAbs() > 20)
148 selected.push_back(TEveCaloData::CellId_t(
m_hist->FindBin(tower->eta(),tower->phi()),
m_sliceIndex));
164 Bool_t
status = TH1::AddDirectoryStatus();
165 TH1::AddDirectory(kFALSE);
166 m_hist =
new TH2F(
"caloHist",
170 TH1::AddDirectory(status);
171 TEveCaloDataHist* ch =
static_cast<TEveCaloDataHist*
>(
m_caloData);
177 item()->defaultDisplayProperties().
color(),
178 item()->defaultDisplayProperties().transparency());
193 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