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 ()
 
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 ()
 
- 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 &)
 
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
 
 FWSecVertexCandidateProxyBuilder (const FWSecVertexCandidateProxyBuilder &)=delete
 
const FWSecVertexCandidateProxyBuilderoperator= (const FWSecVertexCandidateProxyBuilder &)=delete
 

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 ()
 
virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 
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 (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) 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
 
virtual void buildViewType (const reco::CandSecondaryVertexTagInfo &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *)
 
virtual void buildViewType (const void *, unsigned int iIndex, TEveElement &iItemHolder, FWViewType::EType, const FWViewContext *)=0
 
void buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context) override
 
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 23 of file FWSecVertexCandidateProxyBuilder.cc.

Constructor & Destructor Documentation

◆ FWSecVertexCandidateProxyBuilder() [1/2]

FWSecVertexCandidateProxyBuilder::FWSecVertexCandidateProxyBuilder ( )
inline

Definition at line 25 of file FWSecVertexCandidateProxyBuilder.cc.

25 {}

◆ ~FWSecVertexCandidateProxyBuilder()

FWSecVertexCandidateProxyBuilder::~FWSecVertexCandidateProxyBuilder ( )
inlineoverride

Definition at line 26 of file FWSecVertexCandidateProxyBuilder.cc.

26 {}

◆ FWSecVertexCandidateProxyBuilder() [2/2]

FWSecVertexCandidateProxyBuilder::FWSecVertexCandidateProxyBuilder ( const FWSecVertexCandidateProxyBuilder )
privatedelete

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 42 of file FWSecVertexCandidateProxyBuilder.cc.

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

References HltBtagPostValidation_cff::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(), mathSSE::sqrt(), OrderedSet::t, and findQualityFiles::v.

◆ classPurpose()

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

Definition at line 99 of file FWSecVertexCandidateProxyBuilder.cc.

◆ classRegisterTypeName()

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

Definition at line 99 of file FWSecVertexCandidateProxyBuilder.cc.

◆ classTypeName()

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

Definition at line 99 of file FWSecVertexCandidateProxyBuilder.cc.

◆ classView()

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

Definition at line 99 of file FWSecVertexCandidateProxyBuilder.cc.

◆ operator=()

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

◆ purpose()

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

Definition at line 28 of file FWSecVertexCandidateProxyBuilder.cc.

30 :

◆ typeName()

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

Definition at line 28 of file FWSecVertexCandidateProxyBuilder.cc.

30 :

◆ view()

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

Definition at line 28 of file FWSecVertexCandidateProxyBuilder.cc.

30 :
mps_fire.i
i
Definition: mps_fire.py:355
reco::Vertex::Error
math::Error< dimension >::type Error
covariance error matrix (3x3)
Definition: Vertex.h:44
gather_cfg.cout
cout
Definition: gather_cfg.py:144
reco::TemplatedSecondaryVertexTagInfo::nVertices
unsigned int nVertices() const
Definition: TemplatedSecondaryVertexTagInfo.h:112
findQualityFiles.v
v
Definition: findQualityFiles.py:179
reco::VertexCompositePtrCandidate
Definition: VertexCompositePtrCandidate.h:16
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
OrderedSet.t
t
Definition: OrderedSet.py:90
reco::TemplatedSecondaryVertexTagInfo::secondaryVertex
const VTX & secondaryVertex(unsigned int index) const
Definition: TemplatedSecondaryVertexTagInfo.h:107
FWSecVertexCandidateProxyBuilder::FWSecVertexCandidateProxyBuilder
FWSecVertexCandidateProxyBuilder()
Definition: FWSecVertexCandidateProxyBuilder.cc:25
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition: FWProxyBuilderBase.cc:350
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
reco::Candidate
Definition: Candidate.h:27
FWProxyBuilderBase::item
const FWEventItem * item() const
Definition: FWProxyBuilderBase.h:64
fireworks::prepareCandidate
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
Definition: CandidateUtils.cc:9
FWProxyBuilderBase::context
const fireworks::Context & context() const
Definition: FWProxyBuilderBase.cc:412
FWSecVertexCandidateProxyBuilder
Definition: FWSecVertexCandidateProxyBuilder.cc:23
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37