CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWPFCandidateDetailView Class Reference

#include <FWPFCandidateDetailView.h>

Inheritance diagram for FWPFCandidateDetailView:
FWDetailViewGL< reco::PFCandidate > CSGActionSupervisor FWDetailView< reco::PFCandidate > FWDetailViewBase

Public Member Functions

 FWPFCandidateDetailView ()
 
 ~FWPFCandidateDetailView () override
 
- Public Member Functions inherited from FWDetailViewGL< reco::PFCandidate >
 FWDetailViewGL ()
 
void init (TEveWindowSlot *) override
 
void setBackgroundColor (Color_t) override
 
TGLViewer * viewerGL () const
 
 ~FWDetailViewGL () override
 
- Public Member Functions inherited from FWDetailView< reco::PFCandidate >
void build (const FWModelId &iID, const void *iData) override
 
 FWDetailView ()
 
- Public Member Functions inherited from FWDetailViewBase
void build (const FWModelId &)
 
const fireworks::Contextcontext () const
 
const FWEventItemitem ()
 
void setItem (const FWEventItem *x)
 
virtual ~FWDetailViewBase ()
 
- Public Member Functions inherited from CSGActionSupervisor
Bool_t activateMenuEntry (int entry)
 
Bool_t activateToolBarEntry (int entry)
 
void addToActionMap (CSGAction *action)
 
 CSGActionSupervisor ()
 
virtual void defaultAction ()
 
virtual void enableActions (bool enable=true)
 
CSGActiongetAction (const std::string &name)
 
const std::vector< CSGAction * > & getListOfActions () const
 
Long_t getToolTipDelay () const
 
virtual void HandleMenu (Int_t id)
 
void resizeMenu (TGPopupMenu *menu)
 
virtual ~CSGActionSupervisor ()
 

Private Member Functions

void addClusters (const std::vector< reco::PFCluster > *)
 
void addHits (const std::vector< reco::PFRecHit > *)
 
void addTracks (const std::vector< reco::PFRecTrack > *)
 
void build (const FWModelId &id, const reco::PFCandidate *) override
 
void buildGLEventScene ()
 
float eta ()
 
float etaMax ()
 
float etaMin ()
 
 FWPFCandidateDetailView (const FWPFCandidateDetailView &)=delete
 
bool isPntInRng (float x, float y)
 
void makeLegend (void)
 
const FWPFCandidateDetailViewoperator= (const FWPFCandidateDetailView &)=delete
 
float phi ()
 
float phiMax ()
 
float phiMin ()
 
void plotEtChanged ()
 
void rangeChanged (int x)
 
void rnrHcalChanged ()
 
void setTextInfo (const FWModelId &id, const reco::PFCandidate *) override
 
void voteMaxEtEVal (const std::vector< reco::PFRecHit > *hits)
 

Private Attributes

const reco::PFCandidatem_candidate
 
TEveElementList * m_eventList
 
TLegend * m_legend
 
bool m_plotEt
 
float m_range
 
bool m_rnrHcal
 
TGSlider * m_slider
 
FWIntValueListenerm_sliderListener
 

Additional Inherited Members

- Static Public Member Functions inherited from FWDetailView< reco::PFCandidate >
static std::string classRegisterTypeName ()
 
static std::string classTypeName ()
 
- Static Public Member Functions inherited from FWDetailViewBase
static void drawCanvasBox (Double_t *pos, Color_t fillCol, Int_t fillType=0, bool bg=kTRUE)
 
static void drawCanvasDot (Float_t x, Float_t y, Float_t r, Color_t)
 
- Protected Member Functions inherited from FWDetailViewBase
 FWDetailViewBase (const std::type_info &)
 
- Protected Attributes inherited from FWDetailViewGL< reco::PFCandidate >
TEveScene * m_eveScene
 
TEveViewer * m_eveViewer
 
TGCompositeFrame * m_guiFrame
 
TCanvas * m_infoCanvas
 
- Protected Attributes inherited from CSGActionSupervisor
std::vector< CSGAction * > m_actionList
 

Detailed Description

Definition at line 24 of file FWPFCandidateDetailView.h.

Constructor & Destructor Documentation

◆ FWPFCandidateDetailView() [1/2]

FWPFCandidateDetailView::FWPFCandidateDetailView ( )

Definition at line 48 of file FWPFCandidateDetailView.cc.

49  : m_range(1),
50  m_candidate(nullptr),
51  m_legend(nullptr),
52  m_slider(nullptr),
54  m_eventList(nullptr),
55  m_plotEt(true),
56  m_rnrHcal(true) {}

◆ ~FWPFCandidateDetailView()

FWPFCandidateDetailView::~FWPFCandidateDetailView ( )
override

Definition at line 58 of file FWPFCandidateDetailView.cc.

58 {}

◆ FWPFCandidateDetailView() [2/2]

FWPFCandidateDetailView::FWPFCandidateDetailView ( const FWPFCandidateDetailView )
privatedelete

Member Function Documentation

◆ addClusters()

void FWPFCandidateDetailView::addClusters ( const std::vector< reco::PFCluster > *  cluster)
private

Definition at line 273 of file FWPFCandidateDetailView.cc.

273  {
274  if (!cluster)
275  return;
276 
277  Color_t col = kViolet + 9;
278 
279  TEveStraightLineSet* ls = new TEveStraightLineSet("cluster_ls");
280  ls->SetMainColor(col);
281  m_eventList->AddElement(ls);
282 
283  TEvePointSet* ps = new TEvePointSet("cluster_ps");
284  ps->SetMainColor(col);
285  ps->SetMarkerStyle(2);
286  ps->SetMarkerSize(0.005);
287  m_eventList->AddElement(ps);
288 
289  for (std::vector<reco::PFCluster>::const_iterator it = cluster->begin(); it != cluster->end(); ++it) {
290  if (!isPntInRng(it->position().Eta(), it->position().Phi()))
291  continue;
292 
293  ps->SetNextPoint(it->position().Eta(), it->position().Phi(), 0);
294 
295  /*
296  const std::vector< reco::PFRecHitFraction >& fractions = it->recHitFractions();
297  for (std::vector< reco::PFRecHitFraction >::const_iterator fi = fractions.begin(); fi != fractions.end(); ++fi)
298  {
299  // !!! AMT can't get fi->recHitRef().position()
300  // ls->AddLine(it->position().Eta(), it->position().Phi(), 0,
301  // fi->recHitRef().position().Eta(), fi->recHitRef().position().Phi(), 0);
302  }
303  */
304  }
305 }

References cuy::col, isPntInRng(), eostools::ls(), and m_eventList.

Referenced by buildGLEventScene().

◆ addHits()

void FWPFCandidateDetailView::addHits ( const std::vector< reco::PFRecHit > *  hits)
private

Definition at line 338 of file FWPFCandidateDetailView.cc.

338  {
339  TEveStraightLineSet* lsOutline = (TEveStraightLineSet*)m_eventList->FindChild("outlines");
340 
341  TEvePointSet* ps = new TEvePointSet("test");
342  m_eventList->AddElement(ps);
343  ps->SetMainColor(kOrange);
344 
345  // FIXME, requires access to geometry
346  if ((!hits->empty()) && hits->front().hasCaloCell())
347  for (std::vector<reco::PFRecHit>::const_iterator it = hits->begin(); it != hits->end(); ++it) {
348  const auto& corners = it->getCornersXYZ();
349  if (!isPntInRng(corners[0].eta(), corners[0].phi()))
350  continue;
351 
352  std::vector<TEveVector> hc;
353  hc.reserve(4);
354  for (int k = 0; k < 4; ++k) {
355  hc.push_back(TEveVector(corners[k].eta(), corners[k].phi(), 0));
356  // ps->SetNextPoint(corners[k].eta(),corners[k].phi(),0 ); //debug
357  }
358 
359  WrapTwoPi(hc, corners[0].phi());
360 
361  AddLineToLineSet(lsOutline, hc, 0, 1);
362  AddLineToLineSet(lsOutline, hc, 1, 2);
363  AddLineToLineSet(lsOutline, hc, 2, 3);
364  AddLineToLineSet(lsOutline, hc, 3, 0);
365 
366  // get scaled corners
367  TEveVector centerOfGravity = hc[0] + hc[1] + hc[2] + hc[3];
368  centerOfGravity *= 0.25;
369 
370  std::vector<TEveVector> radialVectors;
371  radialVectors.reserve(4);
372  for (int k = 0; k < 4; ++k)
373  radialVectors.push_back(TEveVector(hc[k] - centerOfGravity));
374 
375  float factor = 1;
376  if (m_plotEt) {
377  float Et = FWPFMaths::calculateEt(TEveVector(corners[0].x(), corners[0].y(), corners[0].z()), it->energy());
379  } else
380  factor = it->energy() / context().getMaxEnergyInEvent(false);
381 
382  std::vector<TEveVector> scaledCorners;
383  for (int k = 0; k < 4; ++k) {
384  radialVectors[k] *= factor;
385  scaledCorners.push_back(TEveVector(radialVectors[k] + centerOfGravity));
386  }
387 
388  TEveStraightLineSet* ls = (TEveStraightLineSet*)m_eventList->FindChild(Form("%d_rechit", it->depth()));
389  AddLineToLineSet(ls, scaledCorners, 0, 1);
390  AddLineToLineSet(ls, scaledCorners, 1, 2);
391  AddLineToLineSet(ls, scaledCorners, 2, 3);
392  // AddLineToLineSet(ls, scaledCorners, 3, 0);
393  TEveStraightLineSet::Line_t* li = AddLineToLineSet(ls, scaledCorners, 3, 0);
394  ls->AddMarker(centerOfGravity, li->fId);
395  }
396 }

References FWPFMaths::calculateEt(), FWDetailViewBase::context(), eta(), DQMScaleToClient_cfi::factor, fireworks::Context::getMaxEnergyInEvent(), hfClusterShapes_cfi::hits, isPntInRng(), dqmdumpme::k, eostools::ls(), m_eventList, m_plotEt, phi(), x, y, and z.

Referenced by buildGLEventScene().

◆ addTracks()

void FWPFCandidateDetailView::addTracks ( const std::vector< reco::PFRecTrack > *  tracks)
private

AMT trackRef() is a collection !!!

Definition at line 249 of file FWPFCandidateDetailView.cc.

249  {
250  for (std::vector<reco::PFRecTrack>::const_iterator it = tracks->begin(); it != tracks->end(); ++it) {
252  /*
253  if (!isPntInRng(it->trackRef().innerMomentum().Eta(), it->position().Phi()))
254  continue;
255 
256  TEveLine* line = new TEveLine("Track");
257  line->SetMainColor(kYellow);
258  int N = it->nTrajectoryPoints();
259 
260  for (int p = 0 ; p<N; ++p) {
261  pos = track.extrapolatedPoint(p).position();
262 
263  if( pos.Eta() !=0 and pos.Phi() !=0)
264  line->SetNextPoint(pos.Eta(), pos.Phi(), 0);
265  }
266  m_eventList->AddElement(line);
267  */
268  }
269 }

References tracks.

Referenced by buildGLEventScene().

◆ build()

void FWPFCandidateDetailView::build ( const FWModelId id,
const reco::PFCandidate candidate 
)
overrideprivatevirtual

Implements FWDetailView< reco::PFCandidate >.

Definition at line 143 of file FWPFCandidateDetailView.cc.

143  {
144  m_candidate = candidate;
145 
146  // ROOT GUI
147  //
148  {
149  TGCompositeFrame* f = new TGVerticalFrame(m_guiFrame);
150  m_guiFrame->AddFrame(f);
151  f->AddFrame(new TGLabel(f, "Rng:"), new TGLayoutHints(kLHintsLeft, 2, 2, 0, 0));
152  m_slider = new TGHSlider(f, 120, kSlider1 | kScaleNo);
153  f->AddFrame(m_slider, new TGLayoutHints(kLHintsTop | kLHintsLeft, 2, 2, 1, 4));
154  m_slider->SetRange(1, 50);
155  m_slider->SetPosition(8);
156 
158  TQObject::Connect(
159  m_slider, "PositionChanged(Int_t)", "FWIntValueListenerBase", m_sliderListener, "setValue(Int_t)");
161  std::bind(&FWPFCandidateDetailView::rangeChanged, this, std::placeholders::_1));
162  {
163  CSGAction* action = new CSGAction(this, "Scale Et");
164  TGCheckButton* b = new TGCheckButton(m_guiFrame, action->getName().c_str());
165  b->SetState(kButtonDown, true);
166  m_guiFrame->AddFrame(b, new TGLayoutHints(kLHintsNormal, 2, 3, 1, 4));
167  TQObject::Connect(b, "Clicked()", "CSGAction", action, "activate()");
168  action->activated.connect(sigc::mem_fun(this, &FWPFCandidateDetailView::plotEtChanged));
169  }
170  {
171  CSGAction* action = new CSGAction(this, "RnrHcal");
172  TGCheckButton* b = new TGCheckButton(m_guiFrame, action->getName().c_str());
173  b->SetState(kButtonDown, true);
174  m_guiFrame->AddFrame(b, new TGLayoutHints(kLHintsNormal, 2, 3, 1, 4));
175  TQObject::Connect(b, "Clicked()", "CSGAction", action, "activate()");
176  action->activated.connect(sigc::mem_fun(this, &FWPFCandidateDetailView::rnrHcalChanged));
177  }
178  }
179  makeLegend();
180  setTextInfo(id, candidate);
181 
182  TGCompositeFrame* p = (TGCompositeFrame*)m_guiFrame->GetParent();
183  p->MapSubwindows();
184  p->Layout();
185 
187  // GL stuff
188 
189  m_candidate = candidate;
190 
191  try {
194  event->getByLabel(edm::InputTag("particleFlowRecHitECAL"), ecalH);
195  if (ecalH.product())
196  voteMaxEtEVal(ecalH.product());
197 
199  event->getByLabel(edm::InputTag("particleFlowRecHitHBHEHO"), hcalH);
200  if (hcalH.product())
201  voteMaxEtEVal(hcalH.product());
202  } catch (const cms::Exception& iE) {
203  std::cerr << iE.what();
204  }
205 
206  m_eveScene->GetGLScene()->SetSelectable(false);
207  m_eventList = new TEveElementList("PFDetailView");
208  m_eveScene->AddElement(m_eventList);
209 
210  viewerGL()->SetStyle(TGLRnrCtx::kOutline);
211  viewerGL()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
212 
213  TGLCameraOverlay* co = viewerGL()->GetCameraOverlay();
214  co->SetShowOrthographic(kTRUE);
215  co->SetOrthographicMode(TGLCameraOverlay::kAxis);
216 
217  viewerGL()->ResetCamerasAfterNextUpdate();
218  try {
220  } catch (...) {
221  printf("unknown exception \n");
222  }
223 
224  viewerGL()->UpdateScene(kFALSE);
225 
226  gEve->Redraw3D();
227 
228  // gEve->AddToListTree(m_eventList, true);//debug, used with --eve option
229 }

References writedatasetfile::action, b, buildGLEventScene(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, cms::cuda::co, f, FWGUIManager::getCurrentEvent(), FWGUIManager::getGUIManager(), m_candidate, m_eventList, FWDetailViewGL< reco::PFCandidate >::m_eveScene, FWDetailViewGL< reco::PFCandidate >::m_guiFrame, m_slider, m_sliderListener, makeLegend(), AlCaHLTBitMon_ParallelJobs::p, plotEtChanged(), edm::Handle< T >::product(), rangeChanged(), rnrHcalChanged(), setTextInfo(), FWIntValueListener::valueChanged_, FWDetailViewGL< reco::PFCandidate >::viewerGL(), voteMaxEtEVal(), and cms::Exception::what().

◆ buildGLEventScene()

void FWPFCandidateDetailView::buildGLEventScene ( )
private

Definition at line 400 of file FWPFCandidateDetailView.cc.

400  {
401  if (m_eventList->HasChildren())
402  m_eventList->DestroyElements();
403 
404  for (int depth = 0; depth < 6; ++depth) {
405  TEveStraightLineSet* ls = new TEveStraightLineSet(Form("%d_rechit", depth));
406 
407  if (depth == 0)
408  ls->SetLineColor(kGray);
409  else if (depth == 1)
410  ls->SetLineColor(kRed);
411  else if (depth == 2)
412  ls->SetLineColor(kGreen);
413  else if (depth == 3)
414  ls->SetLineColor(kMagenta);
415  else if (depth == 4)
416  ls->SetLineColor(kOrange);
417  else if (depth == 5)
418  ls->SetLineColor(kYellow);
419 
420  ls->SetMarkerStyle(1);
421  m_eventList->AddElement(ls);
422  }
423 
424  TEveStraightLineSet* ls = new TEveStraightLineSet("outlines");
425  ls->SetLineColor(kGray);
426  ls->SetMainTransparency(80);
427  m_eventList->AddElement(ls);
428 
430 
431  //
432  // recHits
433  //
434  try {
436  event->getByLabel(edm::InputTag("particleFlowRecHitECAL"), ecalH);
437  addHits(ecalH.product());
438  } catch (const cms::Exception& iE) {
439  std::cerr << iE.what();
440  }
441 
442  if (m_rnrHcal) {
443  try {
445  event->getByLabel(edm::InputTag("particleFlowRecHitHF"), ecalH);
446  addHits(ecalH.product());
447  } catch (const cms::Exception& iE) {
448  std::cerr << iE.what();
449  }
450 
451  try {
453  event->getByLabel(edm::InputTag("particleFlowRecHitHBHEHO"), hcalH);
454  addHits(hcalH.product());
455  } catch (const cms::Exception& iE) {
456  std::cerr << iE.what();
457  }
458  }
459 
460  //
461  // clusters
462  //
463  try {
465  event->getByLabel(edm::InputTag("particleFlowClusterECAL"), ecalClustersH);
466  addClusters(ecalClustersH.product());
467  } catch (const cms::Exception& iE) {
468  std::cerr << iE.what();
469  }
470 
471  //
472  // tracks
473  //
474  try {
476  event->getByLabel(edm::InputTag("pfTrack"), trackH);
477  addTracks(trackH.product());
478  } catch (const cms::Exception& iE) {
479  std::cerr << iE.what();
480  }
481 }

References addClusters(), addHits(), addTracks(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, LEDCalibrationChannels::depth, FWGUIManager::getCurrentEvent(), FWGUIManager::getGUIManager(), eostools::ls(), m_eventList, m_rnrHcal, edm::Handle< T >::product(), and cms::Exception::what().

Referenced by build(), plotEtChanged(), rangeChanged(), and rnrHcalChanged().

◆ eta()

float FWPFCandidateDetailView::eta ( void  )
private

◆ etaMax()

float FWPFCandidateDetailView::etaMax ( )
inlineprivate

Definition at line 57 of file FWPFCandidateDetailView.h.

57 { return eta() + m_range; }

References eta(), and m_range.

◆ etaMin()

float FWPFCandidateDetailView::etaMin ( )
inlineprivate

Definition at line 56 of file FWPFCandidateDetailView.h.

56 { return eta() - m_range; }

References eta(), and m_range.

◆ isPntInRng()

bool FWPFCandidateDetailView::isPntInRng ( float  x,
float  y 
)
private

Definition at line 64 of file FWPFCandidateDetailView.cc.

64  {
65  float dx = m_candidate->eta() - x;
66  float dy = m_candidate->phi() - y;
67  float sd = TMath::Sqrt(dx * dx + dy * dy);
68  return sd < m_range;
69 }

References PVValHelper::dx, PVValHelper::dy, reco::LeafCandidate::eta(), m_candidate, m_range, reco::LeafCandidate::phi(), sd, x, and y.

Referenced by addClusters(), and addHits().

◆ makeLegend()

void FWPFCandidateDetailView::makeLegend ( void  )
private

Definition at line 73 of file FWPFCandidateDetailView.cc.

73  {
74  m_legend = new TLegend(0.01, 0.01, 0.99, 0.99, nullptr, "NDC");
75  m_legend->SetFillColor(kWhite);
76  m_legend->SetTextSize(0.07);
77  m_legend->SetBorderSize(0);
78  m_legend->SetMargin(0.15);
79  m_legend->SetEntrySeparation(0.01);
80 }

References m_legend.

Referenced by build().

◆ operator=()

const FWPFCandidateDetailView& FWPFCandidateDetailView::operator= ( const FWPFCandidateDetailView )
privatedelete

◆ phi()

float FWPFCandidateDetailView::phi ( void  )
private

◆ phiMax()

float FWPFCandidateDetailView::phiMax ( )
inlineprivate

Definition at line 59 of file FWPFCandidateDetailView.h.

59 { return phi() + m_range; }

References m_range, and phi().

◆ phiMin()

float FWPFCandidateDetailView::phiMin ( )
inlineprivate

Definition at line 58 of file FWPFCandidateDetailView.h.

58 { return phi() - m_range; }

References m_range, and phi().

◆ plotEtChanged()

void FWPFCandidateDetailView::plotEtChanged ( )
private

Definition at line 129 of file FWPFCandidateDetailView.cc.

129  {
130  printf("plotEt = %d \n", m_plotEt);
131  m_plotEt = !m_plotEt;
133 }

References buildGLEventScene(), and m_plotEt.

Referenced by build().

◆ rangeChanged()

void FWPFCandidateDetailView::rangeChanged ( int  x)
private

Definition at line 84 of file FWPFCandidateDetailView.cc.

84  {
85  static float kSliderRangeFactor = 0.2;
86 
87  m_range = x * kSliderRangeFactor;
88 
89  if (m_eventList)
91 
92  gEve->Redraw3D();
93 }

References buildGLEventScene(), m_eventList, m_range, and x.

Referenced by build().

◆ rnrHcalChanged()

void FWPFCandidateDetailView::rnrHcalChanged ( )
private

Definition at line 135 of file FWPFCandidateDetailView.cc.

135  {
136  printf("rnrHcal = %d \n", m_rnrHcal);
137  m_rnrHcal = !m_rnrHcal;
139 }

References buildGLEventScene(), and m_rnrHcal.

Referenced by build().

◆ setTextInfo()

void FWPFCandidateDetailView::setTextInfo ( const FWModelId id,
const reco::PFCandidate track 
)
overrideprivatevirtual

Implements FWDetailView< reco::PFCandidate >.

Definition at line 97 of file FWPFCandidateDetailView.cc.

97  {
98  m_infoCanvas->cd();
99 
100  float_t x = 0.02;
101  float y = 0.95;
102 
103  TLatex* latex = new TLatex(x, y, "");
104  const double textsize(0.07);
105  latex->SetTextSize(textsize);
106 
107  latex->DrawLatex(x, y, id.item()->modelName(id.index()).c_str());
108  y -= latex->GetTextSize() * 0.6;
109 
110  latex->SetTextSize(textsize);
111  float lineH = latex->GetTextSize() * 0.6;
112 
113  latex->DrawLatex(
114  x, y, Form(" P_{T} = %.1f GeV, #eta = %0.2f, #varphi = %0.2f", track->pt(), track->eta(), track->phi()));
115  y -= lineH;
116 
117  if (track->charge() > 0)
118  latex->DrawLatex(x, y, " charge = +1");
119  else
120  latex->DrawLatex(x, y, " charge = -1");
121  y -= lineH;
122  y -= lineH;
123 
124  m_legend->SetY2(y);
125  m_legend->Draw();
126  m_legend = nullptr; // Deleted together with TPad.
127 }

References FWDetailViewBase::item(), FWDetailViewGL< reco::PFCandidate >::m_infoCanvas, m_legend, HLTEgPhaseIITestSequence_cff::modelName, HLT_FULL_cff::track, x, and y.

Referenced by build().

◆ voteMaxEtEVal()

void FWPFCandidateDetailView::voteMaxEtEVal ( const std::vector< reco::PFRecHit > *  hits)
private

Definition at line 233 of file FWPFCandidateDetailView.cc.

233  {
234  if (!hits)
235  return;
236 
237  // FIXME: require access to geometry while reading from reco file
238  if ((!hits->empty()) && hits->front().hasCaloCell())
239  for (std::vector<reco::PFRecHit>::const_iterator it = hits->begin(); it != hits->end(); ++it) {
240  TEveVector centre(it->position().x(), it->position().y(), it->position().z());
241  float E = it->energy();
242  float Et = FWPFMaths::calculateEt(centre, E);
243  item()->context().voteMaxEtAndEnergy(Et, E);
244  }
245 }

References FWPFMaths::calculateEt(), FWEventItem::context(), hfClusterShapes_cfi::hits, FWDetailViewBase::item(), and fireworks::Context::voteMaxEtAndEnergy().

Referenced by build().

Member Data Documentation

◆ m_candidate

const reco::PFCandidate* FWPFCandidateDetailView::m_candidate
private

Definition at line 62 of file FWPFCandidateDetailView.h.

Referenced by build(), eta(), isPntInRng(), and phi().

◆ m_eventList

TEveElementList* FWPFCandidateDetailView::m_eventList
private

◆ m_legend

TLegend* FWPFCandidateDetailView::m_legend
private

Definition at line 64 of file FWPFCandidateDetailView.h.

Referenced by makeLegend(), and setTextInfo().

◆ m_plotEt

bool FWPFCandidateDetailView::m_plotEt
private

Definition at line 71 of file FWPFCandidateDetailView.h.

Referenced by addHits(), and plotEtChanged().

◆ m_range

float FWPFCandidateDetailView::m_range
private

Definition at line 61 of file FWPFCandidateDetailView.h.

Referenced by etaMax(), etaMin(), isPntInRng(), phiMax(), phiMin(), and rangeChanged().

◆ m_rnrHcal

bool FWPFCandidateDetailView::m_rnrHcal
private

Definition at line 73 of file FWPFCandidateDetailView.h.

Referenced by buildGLEventScene(), and rnrHcalChanged().

◆ m_slider

TGSlider* FWPFCandidateDetailView::m_slider
private

Definition at line 66 of file FWPFCandidateDetailView.h.

Referenced by build().

◆ m_sliderListener

FWIntValueListener* FWPFCandidateDetailView::m_sliderListener
private

Definition at line 67 of file FWPFCandidateDetailView.h.

Referenced by build().

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
DDAxes::y
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
FWDetailViewGL< reco::PFCandidate >::m_eveScene
TEveScene * m_eveScene
Definition: FWDetailViewGL.h:29
edm::Handle::product
T const * product() const
Definition: Handle.h:70
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
FWPFCandidateDetailView::m_eventList
TEveElementList * m_eventList
Definition: FWPFCandidateDetailView.h:69
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
FWPFCandidateDetailView::rnrHcalChanged
void rnrHcalChanged()
Definition: FWPFCandidateDetailView.cc:135
FWPFCandidateDetailView::m_sliderListener
FWIntValueListener * m_sliderListener
Definition: FWPFCandidateDetailView.h:67
cuy.col
col
Definition: cuy.py:1009
FWDetailViewGL< reco::PFCandidate >::viewerGL
TGLViewer * viewerGL() const
Definition: FWDetailViewGL.h:20
FWPFCandidateDetailView::isPntInRng
bool isPntInRng(float x, float y)
Definition: FWPFCandidateDetailView.cc:64
FWPFCandidateDetailView::m_slider
TGSlider * m_slider
Definition: FWPFCandidateDetailView.h:66
DDAxes::x
CSGAction
Definition: CSGAction.h:38
cms::Exception::what
char const * what() const noexcept override
Definition: Exception.cc:103
edm::Handle
Definition: AssociativeIterator.h:50
FWPFCandidateDetailView::plotEtChanged
void plotEtChanged()
Definition: FWPFCandidateDetailView.cc:129
FWPFCandidateDetailView::buildGLEventScene
void buildGLEventScene()
Definition: FWPFCandidateDetailView.cc:400
HLTEgPhaseIITestSequence_cff.modelName
modelName
Definition: HLTEgPhaseIITestSequence_cff.py:16
FWPFCandidateDetailView::setTextInfo
void setTextInfo(const FWModelId &id, const reco::PFCandidate *) override
Definition: FWPFCandidateDetailView.cc:97
FWPFMaths::calculateEt
float calculateEt(const TEveVector &centre, float e)
Definition: FWPFMaths.cc:115
cms::cuda::co
__host__ __device__ VT * co
Definition: prefixScan.h:47
FWDetailViewGL< reco::PFCandidate >::m_infoCanvas
TCanvas * m_infoCanvas
Definition: FWDetailViewGL.h:25
fireworks::Context::voteMaxEtAndEnergy
void voteMaxEtAndEnergy(float Et, float energy) const
Definition: Context.cc:162
FWEventItem::context
const fireworks::Context & context() const
Definition: FWEventItem.h:121
FWPFCandidateDetailView::m_range
float m_range
Definition: FWPFCandidateDetailView.h:61
DDAxes::z
DQMScaleToClient_cfi.factor
factor
Definition: DQMScaleToClient_cfi.py:8
FWGUIManager::getCurrentEvent
const edm::EventBase * getCurrentEvent() const
Definition: FWGUIManager.cc:687
dqmdumpme.k
k
Definition: dqmdumpme.py:60
b
double b
Definition: hdecay.h:118
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
FWDetailViewBase::item
const FWEventItem * item()
Definition: FWDetailViewBase.h:48
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:176
writedatasetfile.action
action
Definition: writedatasetfile.py:8
FWPFCandidateDetailView::voteMaxEtEVal
void voteMaxEtEVal(const std::vector< reco::PFRecHit > *hits)
Definition: FWPFCandidateDetailView.cc:233
PVValHelper::dy
Definition: PVValidationHelpers.h:50
FWPFCandidateDetailView::m_candidate
const reco::PFCandidate * m_candidate
Definition: FWPFCandidateDetailView.h:62
FWPFCandidateDetailView::addClusters
void addClusters(const std::vector< reco::PFCluster > *)
Definition: FWPFCandidateDetailView.cc:273
fireworks::Context::getMaxEnergyInEvent
float getMaxEnergyInEvent(bool isEt) const
Definition: Context.cc:174
FWGUIManager::getGUIManager
static FWGUIManager * getGUIManager()
Definition: FWGUIManager.cc:685
FWPFCandidateDetailView::rangeChanged
void rangeChanged(int x)
Definition: FWPFCandidateDetailView.cc:84
FWIntValueListener::valueChanged_
sigc::signal< void, Int_t > valueChanged_
Definition: FWIntValueListener.h:14
FWPFCandidateDetailView::m_legend
TLegend * m_legend
Definition: FWPFCandidateDetailView.h:64
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
FWPFCandidateDetailView::eta
float eta()
Definition: FWPFCandidateDetailView.cc:60
FWDetailViewGL< reco::PFCandidate >::m_guiFrame
TGCompositeFrame * m_guiFrame
Definition: FWDetailViewGL.h:26
edm::EventBase
Definition: EventBase.h:46
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
FWDetailViewBase::context
const fireworks::Context & context() const
Definition: FWDetailViewBase.cc:32
sd
double sd
Definition: CascadeWrapper.h:113
FWPFCandidateDetailView::m_rnrHcal
bool m_rnrHcal
Definition: FWPFCandidateDetailView.h:73
cms::Exception
Definition: Exception.h:70
FWPFCandidateDetailView::makeLegend
void makeLegend(void)
Definition: FWPFCandidateDetailView.cc:73
FWPFCandidateDetailView::addHits
void addHits(const std::vector< reco::PFRecHit > *)
Definition: FWPFCandidateDetailView.cc:338
FWPFCandidateDetailView::addTracks
void addTracks(const std::vector< reco::PFRecTrack > *)
Definition: FWPFCandidateDetailView.cc:249
FWPFCandidateDetailView::m_plotEt
bool m_plotEt
Definition: FWPFCandidateDetailView.h:71
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition: EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8
FWPFCandidateDetailView::phi
float phi()
Definition: FWPFCandidateDetailView.cc:62
edm::InputTag
Definition: InputTag.h:15
PVValHelper::dx
Definition: PVValidationHelpers.h:49
FWIntValueListener
Definition: FWIntValueListener.h:7