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 (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) 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 (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)
 
- 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::FWSecVertexCandidateProxyBuilder ( )
inline

Definition at line 27 of file FWSecVertexCandidateProxyBuilder.cc.

27 {}
FWSecVertexCandidateProxyBuilder::~FWSecVertexCandidateProxyBuilder ( )
inlineoverride

Definition at line 28 of file FWSecVertexCandidateProxyBuilder.cc.

28 {}
FWSecVertexCandidateProxyBuilder::FWSecVertexCandidateProxyBuilder ( const FWSecVertexCandidateProxyBuilder )
privatedelete

Member Function Documentation

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.

References EnergyCorrector::c, create_public_lumi_plots::color, FWProxyBuilderBase::context(), gather_cfg::cout, reco::CompositePtrCandidate::daughter(), MillePedeFileConverter_cfg::e, reco::VertexCompositePtrCandidate::error(), mps_fire::i, FWProxyBuilderBase::item(), funct::m, reco::CompositePtrCandidate::numberOfDaughters(), reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::nVertices(), position, fireworks::prepareCandidate(), reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::secondaryVertex(), FWProxyBuilderBase::setupAddElement(), mathSSE::sqrt(), lumiQTWidget::t, findQualityFiles::v, reco::LeafCandidate::vx(), reco::LeafCandidate::vy(), and reco::LeafCandidate::vz().

43 {
44  TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
45  TEvePointSet* pointSet = new TEvePointSet();
46  pointSet->SetMainColor(item()->defaultDisplayProperties().color());
47  for(unsigned int i=0;i<iData.nVertices();i++)
48  {
50  // do we need this stuff?
51  TGeoSphere * sphere = new TGeoSphere(0, 0.002); //would that leak?
52  TGeoTranslation position(v.vx(), v.vy(), v.vz() );
53  TEveGeoShape * shape = new TEveGeoShape();
54  sphere->SetBoxDimensions(2.5,2.5,2.5);
55  shape->SetShape(sphere);
56  shape->SetMainColor(item()->defaultDisplayProperties().color());
57  shape->SetMainTransparency(10);
58 
59  TEveTrans & t = shape->RefMainTrans();
61  TMatrixDSym m(3);
62  for(int i=0;i<3;i++)
63  for(int j=0;j<3;j++)
64  {
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  {
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  {
86  const reco::Candidate * c = v.daughter(j);
87  std::cout << c << std::endl;
88  TEveTrack* trk = fireworks::prepareCandidate( *c, context().getTrackPropagator() );
89 
90  trk->SetMainColor(item()->defaultDisplayProperties().color());
91  trk->MakeTrack();
92  setupAddElement(trk, &oItemHolder);
93  }
94  }
95  setupAddElement(pointSet, &oItemHolder);
96 }
const fireworks::Context & context() const
double vy() const override
y coordinate of vertex position
const VTX & secondaryVertex(unsigned int index) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
Definition: Vertex.h:43
const FWEventItem * item() const
size_t numberOfDaughters() const override
number of daughters
T sqrt(T t)
Definition: SSEVec.h:18
double vz() const override
z coordinate of vertex position
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
static int position[264][3]
Definition: ReadPGInfo.cc:509
double vx() const override
x coordinate of vertex position
const std::string & FWSecVertexCandidateProxyBuilder::classPurpose ( )
static

Definition at line 98 of file FWSecVertexCandidateProxyBuilder.cc.

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

Definition at line 98 of file FWSecVertexCandidateProxyBuilder.cc.

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

Definition at line 98 of file FWSecVertexCandidateProxyBuilder.cc.

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

Definition at line 98 of file FWSecVertexCandidateProxyBuilder.cc.

const FWSecVertexCandidateProxyBuilder& FWSecVertexCandidateProxyBuilder::operator= ( const FWSecVertexCandidateProxyBuilder )
privatedelete
const std::string& FWSecVertexCandidateProxyBuilder::purpose ( ) const
inline
const std::string& FWSecVertexCandidateProxyBuilder::typeName ( ) const
inline
const std::string& FWSecVertexCandidateProxyBuilder::view ( ) const
inline