CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override
 
void build ()
 
virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 
virtual void build (const void *, unsigned int iIndex, TEveElement &iItemHolder, const FWViewContext *)=0
 
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 *)
 
virtual void buildViewType (const void *, unsigned int iIndex, TEveElement &iItemHolder, FWViewType::EType, const FWViewContext *)=0
 
void buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override
 
virtual void buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, 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 ()
 
virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 
void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override
 
virtual void buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
 
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 ()
 
 FWSimpleProxyBuilderTemplate (const FWSimpleProxyBuilderTemplate &)=delete
 
const FWSimpleProxyBuilderTemplateoperator= (const FWSimpleProxyBuilderTemplate &)=delete
 
- Public Member Functions inherited from FWSimpleProxyBuilder
 FWSimpleProxyBuilder (const std::type_info &iType)
 
 FWSimpleProxyBuilder (const FWSimpleProxyBuilder &)=delete
 
const FWSimpleProxyBuilderoperator= (const FWSimpleProxyBuilder &)=delete
 
 ~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 12 of file FWL1THGCalProxyTemplate.cc.

Member Function Documentation

◆ getCellsFromTriggerCell()

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

Definition at line 26 of file FWL1THGCalProxyTemplate.cc.

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

◆ setItem()

template<typename T>
void FWL1THGCalProxyTemplate< T >::setItem ( const FWEventItem iItem)
inlineoverrideprotectedvirtual

Reimplemented from FWProxyBuilderBase.

Definition at line 14 of file FWL1THGCalProxyTemplate.cc.

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