CMS 3D CMS Logo

List of all members | Protected Member Functions
FWL1THGCalProxyTemplate< T > Class Template Reference
Inheritance diagram for FWL1THGCalProxyTemplate< T >:
FWSimpleProxyBuilderTemplate< T > FWSimpleProxyBuilder FWProxyBuilderBase

Protected Member Functions

std::unordered_set< unsigned > getCellsFromTriggerCell (const unsigned trigger_cell_id) const
 
void setItem (const FWEventItem *iItem) override
 
- Protected Member Functions inherited from FWSimpleProxyBuilderTemplate< T >
void build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) override
 
virtual void build (const T &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *)
 
void buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context) override
 
virtual void buildViewType (const T &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *)
 
const TmodelData (int index)
 
- Protected Member Functions inherited from FWSimpleProxyBuilder
void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override
 
void buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override
 
void clean () override
 
- Protected Member Functions inherited from FWProxyBuilderBase
virtual void cleanLocal ()
 
TEveCompound * createCompound (bool set_color=true, bool propagate_color_to_all_children=false) const
 
 FWProxyBuilderBase (const FWProxyBuilderBase &)
 
void increaseComponentTransparency (unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
 
virtual void localModelChanges (const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
 
virtual void modelChanges (const FWModelIds &, Product *)
 
const FWProxyBuilderBaseoperator= (const FWProxyBuilderBase &)
 
virtual void scaleProduct (TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
 

Additional Inherited Members

- Public Member Functions inherited from FWSimpleProxyBuilderTemplate< T >
 FWSimpleProxyBuilderTemplate ()
 
- Public Member Functions inherited from FWSimpleProxyBuilder
 FWSimpleProxyBuilder (const std::type_info &iType)
 
 ~FWSimpleProxyBuilder () override
 
- Public Member Functions inherited from FWProxyBuilderBase
void build ()
 
virtual bool canHandle (const FWEventItem &)
 
const fireworks::Contextcontext () const
 
TEveElementList * createProduct (FWViewType::EType, const FWViewContext *)
 
 FWProxyBuilderBase ()
 
bool getHaveWindow () const
 
virtual bool havePerViewProduct (FWViewType::EType) const
 
virtual bool haveSingleProduct () const
 
const FWEventItemitem () const
 
virtual void itemBeingDestroyed (const FWEventItem *)
 
void itemChanged (const FWEventItem *)
 
int layer () const
 
void modelChanges (const FWModelIds &)
 
void removePerViewProduct (FWViewType::EType, const FWViewContext *vc)
 
void scaleChanged (const FWViewContext *)
 
void setHaveWindow (bool iFlag)
 
virtual void setInteractionList (FWInteractionList *, const std::string &)
 
void setupAddElement (TEveElement *el, TEveElement *parent, bool set_color=true) const
 
void setupElement (TEveElement *el, bool color=true) const
 
virtual bool willHandleInteraction () const
 
virtual ~FWProxyBuilderBase ()
 
- Static Public Member Functions inherited from FWSimpleProxyBuilder
static std::string typeOfBuilder ()
 Used by the plugin system to determine how the proxy uses the data from FWEventItem. More...
 
- Static Public Member Functions inherited from FWProxyBuilderBase
static bool representsSubPart ()
 
static std::string typeOfBuilder ()
 Used by the plugin system to determine how the proxy uses the data from FWEventItem. More...
 
- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >::iterator Product_it
 
- Protected Attributes inherited from FWSimpleProxyBuilder
FWSimpleProxyHelper m_helper
 
- Protected Attributes inherited from FWProxyBuilderBase
std::vector< Product * > m_products
 

Detailed Description

template<typename T>
class FWL1THGCalProxyTemplate< T >

Definition at line 11 of file FWL1THGCalProxyTemplate.cc.

Member Function Documentation

template<typename T>
std::unordered_set<unsigned> FWL1THGCalProxyTemplate< T >::getCellsFromTriggerCell ( const unsigned  trigger_cell_id) const
inlineprotected

Definition at line 25 of file FWL1THGCalProxyTemplate.cc.

25  {
26  constexpr unsigned hSc_triggercell_size_ = 2;
27  // constexpr unsigned hSc_module_size_ = 12; // in TC units (144 TC / panel = 36 e-links)
28 
29  DetId trigger_cell_det_id(trigger_cell_id);
30  unsigned det = trigger_cell_det_id.det();
31 
32  std::unordered_set<unsigned> cell_det_ids;
33 
34  // Scintillator
35  if (det == DetId::HGCalHSc) {
36  HGCScintillatorDetId trigger_cell_sc_id(trigger_cell_id);
37  int ieta0 = (trigger_cell_sc_id.ietaAbs() - 1) * hSc_triggercell_size_ + 1;
38  int iphi0 = (trigger_cell_sc_id.iphi() - 1) * hSc_triggercell_size_ + 1;
39  for (int ietaAbs = ieta0; ietaAbs < ieta0 + (int)hSc_triggercell_size_; ietaAbs++) {
40  int ieta = ietaAbs * trigger_cell_sc_id.zside();
41  for (int iphi = iphi0; iphi < iphi0 + (int)hSc_triggercell_size_; iphi++) {
42  unsigned cell_id = HGCScintillatorDetId(trigger_cell_sc_id.type(), trigger_cell_sc_id.layer(), ieta, iphi);
43 #if 0
44  if (validCellId(DetId::HGCalHSc, cell_id))
45 #endif
46  cell_det_ids.emplace(cell_id);
47  }
48  }
49  }
50  // Silicon
51  else {
52  HGCalTriggerDetId trigger_cell_trig_id(trigger_cell_id);
53  unsigned subdet = trigger_cell_trig_id.subdet();
55  DetId::Detector cell_det =
57  int layer = trigger_cell_trig_id.layer();
58  int zside = trigger_cell_trig_id.zside();
59  int type = trigger_cell_trig_id.type();
60  int waferu = trigger_cell_trig_id.waferU();
61  int waferv = trigger_cell_trig_id.waferV();
62  std::vector<int> cellus = trigger_cell_trig_id.cellU();
63  std::vector<int> cellvs = trigger_cell_trig_id.cellV();
64  for (unsigned ic = 0; ic < cellus.size(); ic++) {
65  HGCSiliconDetId cell_det_id(cell_det, zside, type, layer, waferu, waferv, cellus[ic], cellvs[ic]);
66  cell_det_ids.emplace(cell_det_id.rawId());
67  }
68  }
69  }
70  return cell_det_ids;
71  }
type
Definition: HCALResponse.h:21
int zside(DetId const &)
Definition: DetId.h:17
Detector
Definition: DetId.h:24
#define constexpr
template<typename T>
void FWL1THGCalProxyTemplate< T >::setItem ( const FWEventItem iItem)
inlineoverrideprotectedvirtual

Reimplemented from FWProxyBuilderBase.

Definition at line 13 of file FWL1THGCalProxyTemplate.cc.

Referenced by Vispa.Plugins.EdmBrowser.EventContentView.EventContentView::_addRow(), Vispa.Views.TableView.TableView::_createItem(), Vispa.Views.PropertyView.PropertyView::addCategory(), and Vispa.Views.PropertyView.PropertyView::append().

13  {
15  if (iItem) {
16  iItem->getConfig()->keepEntries(true);
17  iItem->getConfig()->assertParam("Layer", 0L, 0L, 52L);
18  iItem->getConfig()->assertParam("EnergyCutOff", 0.5, 0.2, 5.0);
19  iItem->getConfig()->assertParam("Heatmap", true);
20  iItem->getConfig()->assertParam("Z+", true);
21  iItem->getConfig()->assertParam("Z-", true);
22  }
23  }
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:150
virtual void setItem(const FWEventItem *iItem)
FWGenericParameter< T > * assertParam(const std::string &name, T def)