CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
FWECALCaloDataDetailViewBuilder Class Reference

#include <FWECALCaloDataDetailViewBuilder.h>

Public Member Functions

TEveCaloLego * build ()
 
TEveCaloData * buildCaloData (bool xyEE)
 
 FWECALCaloDataDetailViewBuilder (const edm::EventBase *event, const FWGeometry *geom, float eta, float phi, int size=50, Color_t defaultColor=kMagenta+1)
 
double makeLegend (double x0=0.02, double y0=0.95, Color_t clustered1=kGreen+1, Color_t clustered2=kTeal, Color_t supercluster=kYellow)
 
void setColor (Color_t color, const std::vector< DetId > &detIds)
 
void showSuperCluster (const reco::SuperCluster &cluster, Color_t color=kYellow)
 
void showSuperClusters (Color_t color1=kGreen+2, Color_t color2=kTeal)
 

Private Member Functions

void fillData (const EcalRecHitCollection *hits, TEveCaloDataVec *data, bool xyEE)
 

Static Private Member Functions

static bool superClusterEtaLess (const reco::CaloCluster &lhs, const reco::CaloCluster &rhs)
 

Private Attributes

std::vector< Color_t > m_colors
 
Color_t m_defaultColor
 
std::map< DetId, int > m_detIdsToColor
 
float m_eta
 
const edm::EventBasem_event
 
const FWGeometrym_geom
 
float m_phi
 
int m_size
 

Detailed Description

Definition at line 30 of file FWECALCaloDataDetailViewBuilder.h.

Constructor & Destructor Documentation

FWECALCaloDataDetailViewBuilder::FWECALCaloDataDetailViewBuilder ( const edm::EventBase event,
const FWGeometry geom,
float  eta,
float  phi,
int  size = 50,
Color_t  defaultColor = kMagenta+1 
)
inline

Member Function Documentation

TEveCaloLego * FWECALCaloDataDetailViewBuilder::build ( )

Definition at line 187 of file FWECALCaloDataDetailViewBuilder.cc.

TEveCaloData * FWECALCaloDataDetailViewBuilder::buildCaloData ( bool  xyEE)

Definition at line 28 of file FWECALCaloDataDetailViewBuilder.cc.

void FWECALCaloDataDetailViewBuilder::fillData ( const EcalRecHitCollection hits,
TEveCaloDataVec *  data,
bool  xyEE 
)
private

Definition at line 283 of file FWECALCaloDataDetailViewBuilder.cc.

double FWECALCaloDataDetailViewBuilder::makeLegend ( double  x0 = 0.02,
double  y0 = 0.95,
Color_t  clustered1 = kGreen+1,
Color_t  clustered2 = kTeal,
Color_t  supercluster = kYellow 
)

Definition at line 409 of file FWECALCaloDataDetailViewBuilder.cc.

void FWECALCaloDataDetailViewBuilder::setColor ( Color_t  color,
const std::vector< DetId > &  detIds 
)

Definition at line 212 of file FWECALCaloDataDetailViewBuilder.cc.

void FWECALCaloDataDetailViewBuilder::showSuperCluster ( const reco::SuperCluster cluster,
Color_t  color = kYellow 
)

Definition at line 226 of file FWECALCaloDataDetailViewBuilder.cc.

void FWECALCaloDataDetailViewBuilder::showSuperClusters ( Color_t  color1 = kGreen+2,
Color_t  color2 = kTeal 
)

Definition at line 239 of file FWECALCaloDataDetailViewBuilder.cc.

static bool FWECALCaloDataDetailViewBuilder::superClusterEtaLess ( const reco::CaloCluster lhs,
const reco::CaloCluster rhs 
)
inlinestaticprivate

Definition at line 87 of file FWECALCaloDataDetailViewBuilder.h.

References reco::CaloCluster::eta().

88  {
89  return ( lhs.eta() < rhs.eta());
90  }
double eta() const
pseudorapidity of cluster centroid
Definition: CaloCluster.h:163

Member Data Documentation

std::vector<Color_t> FWECALCaloDataDetailViewBuilder::m_colors
private

Definition at line 84 of file FWECALCaloDataDetailViewBuilder.h.

Color_t FWECALCaloDataDetailViewBuilder::m_defaultColor
private

Definition at line 78 of file FWECALCaloDataDetailViewBuilder.h.

std::map<DetId, int> FWECALCaloDataDetailViewBuilder::m_detIdsToColor
private

Definition at line 81 of file FWECALCaloDataDetailViewBuilder.h.

float FWECALCaloDataDetailViewBuilder::m_eta
private

Definition at line 75 of file FWECALCaloDataDetailViewBuilder.h.

const edm::EventBase* FWECALCaloDataDetailViewBuilder::m_event
private

Definition at line 73 of file FWECALCaloDataDetailViewBuilder.h.

const FWGeometry* FWECALCaloDataDetailViewBuilder::m_geom
private

Definition at line 74 of file FWECALCaloDataDetailViewBuilder.h.

float FWECALCaloDataDetailViewBuilder::m_phi
private

Definition at line 76 of file FWECALCaloDataDetailViewBuilder.h.

int FWECALCaloDataDetailViewBuilder::m_size
private

Definition at line 77 of file FWECALCaloDataDetailViewBuilder.h.