14 #include "TEveCompound.h"
16 #include "TEveGeoNode.h"
17 #include "TEveStraightLineSet.h"
18 #include "TEveTrack.h"
53 iItem->
get( caloTaus );
54 if( caloTaus == 0 )
return;
58 for( reco::CaloTauCollection::const_iterator it = caloTaus->begin(), itEnd = caloTaus->end(); it != itEnd; ++it, ++
idx)
74 std::vector<double> phis;
76 for( std::vector<CaloTowerPtr>::const_iterator tower = towers.begin(), towerEnd = towers.end();
77 tower != towerEnd; ++tower )
79 unsigned int ieta = 41 + (*tower)->id().ieta();
80 if( ieta > 40 ) --ieta;
83 if(
int(ieta) > max ) max = ieta;
84 if(
int(ieta) < min ) min = ieta;
85 m_phis.push_back( (*tower)->phi() );
99 fwLog(
fwlog::kInfo) <<
"FWPFTauProxyBuilder missing PFTauTagInfo. Skip drawing of jets.\n";
#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.