CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
FWSecVertexCandidateProxyBuilder Class Reference
Inheritance diagram for FWSecVertexCandidateProxyBuilder:
FWSimpleProxyBuilderTemplate< reco::CandSecondaryVertexTagInfo > FWSimpleProxyBuilder FWProxyBuilderBase

Public Member Functions

 FWSecVertexCandidateProxyBuilder ()
 
 FWSecVertexCandidateProxyBuilder (const FWSecVertexCandidateProxyBuilder &)=delete
 
const FWSecVertexCandidateProxyBuilderoperator= (const FWSecVertexCandidateProxyBuilder &)=delete
 
const std::string & purpose () const
 
const std::string & typeName () const
 
const std::string & view () const
 
 ~FWSecVertexCandidateProxyBuilder () override
 
- Public Member Functions inherited from FWSimpleProxyBuilderTemplate< reco::CandSecondaryVertexTagInfo >
 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 &)
 
virtual void setItem (const FWEventItem *iItem)
 
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

static const std::string & classPurpose ()
 
static const std::string & classRegisterTypeName ()
 
static const std::string & classTypeName ()
 
static const std::string & classView ()
 
- 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...
 

Private Member Functions

void build (const reco::CandSecondaryVertexTagInfo &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *) override
 

Additional Inherited Members

- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >::iterator Product_it
 
- Protected Member Functions inherited from FWSimpleProxyBuilderTemplate< reco::CandSecondaryVertexTagInfo >
void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override
 
virtual void build (const void *, unsigned int iIndex, TEveElement &iItemHolder, const FWViewContext *)=0
 
void build ()
 
virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 
void build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) override
 
virtual void buildViewType (const void *, unsigned int iIndex, TEveElement &iItemHolder, FWViewType::EType, const FWViewContext *)=0
 
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 buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context) override
 
virtual void buildViewType (const reco::CandSecondaryVertexTagInfo &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *)
 
const reco::CandSecondaryVertexTagInfomodelData (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)
 
- Protected Attributes inherited from FWSimpleProxyBuilder
FWSimpleProxyHelper m_helper
 
- Protected Attributes inherited from FWProxyBuilderBase
std::vector< Product * > m_products
 

Detailed Description

Definition at line 24 of file FWSecVertexCandidateProxyBuilder.cc.

Constructor & Destructor Documentation

◆ FWSecVertexCandidateProxyBuilder() [1/2]

FWSecVertexCandidateProxyBuilder::FWSecVertexCandidateProxyBuilder ( )
inline

Definition at line 26 of file FWSecVertexCandidateProxyBuilder.cc.

26 {}

◆ ~FWSecVertexCandidateProxyBuilder()

FWSecVertexCandidateProxyBuilder::~FWSecVertexCandidateProxyBuilder ( )
inlineoverride

Definition at line 27 of file FWSecVertexCandidateProxyBuilder.cc.

27 {}

◆ FWSecVertexCandidateProxyBuilder() [2/2]

FWSecVertexCandidateProxyBuilder::FWSecVertexCandidateProxyBuilder ( const FWSecVertexCandidateProxyBuilder )
delete

Member Function Documentation

◆ build()

void FWSecVertexCandidateProxyBuilder::build ( const reco::CandSecondaryVertexTagInfo iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
const FWViewContext  
)
overrideprivatevirtual

iIndex is the index where iData is found in the container from which it came iItemHolder is the object to which you add your own objects which inherit from TEveElement

Reimplemented from FWSimpleProxyBuilderTemplate< reco::CandSecondaryVertexTagInfo >.

Definition at line 43 of file FWSecVertexCandidateProxyBuilder.cc.

References DummyCfis::c, FWProxyBuilderBase::context(), gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, FWProxyBuilderBase::item(), dqmiolumiharvest::j, visualization-live-secondInstance_cfg::m, reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::nVertices(), position, fireworks::prepareCandidate(), reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::secondaryVertex(), FWProxyBuilderBase::setupAddElement(), l1trig_cff::shape, mathSSE::sqrt(), submitPVValidationJobs::t, and findQualityFiles::v.

46  {
47  TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
48  TEvePointSet* pointSet = new TEvePointSet();
49  pointSet->SetMainColor(item()->defaultDisplayProperties().color());
50  for (unsigned int i = 0; i < iData.nVertices(); i++) {
52  // do we need this stuff?
53  TGeoSphere* sphere = new TGeoSphere(0, 0.002); //would that leak?
54  TGeoTranslation position(v.vx(), v.vy(), v.vz());
55  TEveGeoShape* shape = new TEveGeoShape();
56  sphere->SetBoxDimensions(2.5, 2.5, 2.5);
57  shape->SetShape(sphere);
58  shape->SetMainColor(item()->defaultDisplayProperties().color());
59  shape->SetMainTransparency(10);
60 
61  TEveTrans& t = shape->RefMainTrans();
62  reco::Vertex::Error e = v.error();
63  TMatrixDSym m(3);
64  for (int i = 0; i < 3; i++)
65  for (int j = 0; j < 3; j++) {
66  m(i, j) = e(i, j);
67  }
68  TMatrixDEigen eig(m);
69  TDecompSVD svd(m);
70  TMatrixD mm = svd.GetU();
71  // TMatrixD mm = eig.GetEigenVectors().Print();
72  for (int i = 0; i < 3; i++)
73  for (int j = 0; j < 3; j++) {
74  t(i + 1, j + 1) = mm(i, j);
75  }
76  TVectorD vv(eig.GetEigenValuesRe());
77  t.Scale(sqrt(vv(0)) * 1000., sqrt(vv(1)) * 1000., sqrt(vv(2)) * 1000.);
78  t.SetPos(v.vx(), v.vy(), v.vz());
79 
80  setupAddElement(shape, &oItemHolder);
81 
82  pointSet->SetNextPoint(v.vx(), v.vy(), v.vz());
83 
84  for (unsigned int j = 0; j < v.numberOfDaughters(); j++) {
85  const reco::Candidate* c = v.daughter(j);
86  std::cout << c << std::endl;
87  TEveTrack* trk = fireworks::prepareCandidate(*c, context().getTrackPropagator());
88 
89  trk->SetMainColor(item()->defaultDisplayProperties().color());
90  trk->MakeTrack();
91  setupAddElement(trk, &oItemHolder);
92  }
93  }
94  setupAddElement(pointSet, &oItemHolder);
95 }
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
Definition: Vertex.h:45
const fireworks::Context & context() const
T sqrt(T t)
Definition: SSEVec.h:23
const VTX & secondaryVertex(unsigned int index) const
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
static int position[264][3]
Definition: ReadPGInfo.cc:289
const FWEventItem * item() const

◆ classPurpose()

const std::string & FWSecVertexCandidateProxyBuilder::classPurpose ( )
static

Definition at line 100 of file FWSecVertexCandidateProxyBuilder.cc.

◆ classRegisterTypeName()

const std::string & FWSecVertexCandidateProxyBuilder::classRegisterTypeName ( )
static

Definition at line 100 of file FWSecVertexCandidateProxyBuilder.cc.

◆ classTypeName()

const std::string & FWSecVertexCandidateProxyBuilder::classTypeName ( )
static

Definition at line 100 of file FWSecVertexCandidateProxyBuilder.cc.

◆ classView()

const std::string & FWSecVertexCandidateProxyBuilder::classView ( )
static

Definition at line 100 of file FWSecVertexCandidateProxyBuilder.cc.

◆ operator=()

const FWSecVertexCandidateProxyBuilder& FWSecVertexCandidateProxyBuilder::operator= ( const FWSecVertexCandidateProxyBuilder )
delete

◆ purpose()

const std::string& FWSecVertexCandidateProxyBuilder::purpose ( ) const
inline

Definition at line 29 of file FWSecVertexCandidateProxyBuilder.cc.

34 :
35  // ---------- member data --------------------------------

◆ typeName()

const std::string& FWSecVertexCandidateProxyBuilder::typeName ( ) const
inline

Definition at line 29 of file FWSecVertexCandidateProxyBuilder.cc.

34 :
35  // ---------- member data --------------------------------

◆ view()

const std::string& FWSecVertexCandidateProxyBuilder::view ( ) const
inline

Definition at line 29 of file FWSecVertexCandidateProxyBuilder.cc.

34 :
35  // ---------- member data --------------------------------