14 #include "TEveCompound.h"
16 #include "TEveGeoNode.h"
17 #include "TEveStraightLineSet.h"
18 #include "TEveTrack.h"
54 iItem->
get( caloTaus );
55 if( caloTaus == 0 )
return;
59 for( reco::CaloTauCollection::const_iterator it = caloTaus->begin(), itEnd = caloTaus->end(); it != itEnd; ++it, ++
idx)
75 std::vector<double> phis;
77 for( std::vector<CaloTowerPtr>::const_iterator tower = towers.begin(), towerEnd = towers.end();
78 tower != towerEnd; ++tower )
80 unsigned int ieta = 41 + (*tower)->id().ieta();
81 if( ieta > 40 ) --ieta;
84 if(
int(ieta) > max ) max = ieta;
85 if(
int(ieta) < min ) min = ieta;
86 m_phis.push_back( (*tower)->phi() );
100 fwLog(
fwlog::kInfo) <<
"FWPFTauProxyBuilder missing PFTauTagInfo. Skip drawing of jets.\n";
virtual void buildViewType(const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Jets made from CaloTowers.
static const int kAllRPZBits
const CaloJetRef & calojetRef() const
const FWCaloTauProxyBuilder & operator=(const FWCaloTauProxyBuilder &)
std::vector< std::pair< double, double > > thetaBins()
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
virtual void buildViewType(const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *vc)
virtual std::vector< CaloTowerPtr > getCaloConstituents() const
get all constituents
static const int kAll3DBits
REGISTER_PROXYBUILDER_METHODS()
std::vector< CaloTau > CaloTauCollection
collection of CaloTau objects
void buildBaseTau(const reco::BaseTau &iTau, const reco::Jet *iJet, TEveElement *comp, FWViewType::EType type, const FWViewContext *vc)
const T & max(const T &a, const T &b)
virtual ~FWCaloTauProxyBuilder()
void addCircle(double eta, double phi, double radius, const unsigned int nLineSegments, TEveElement *comp, FWProxyBuilderBase *pb)
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
std::vector< double > m_phis
T const * get() const
Returns C++ pointer to the item.