CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes | Friends
FSimDisplacedVertex Class Reference

A FSimDisplacedVertex extends the FSimVertex with VertexType information. More...

#include <FSimDisplacedVertex.h>

Public Member Functions

const std::vector< int > & daughterIds () const
 
 FSimDisplacedVertex ()
 
 FSimDisplacedVertex (const FSimDisplacedVertex &other)
 
 FSimDisplacedVertex (const SimVertex &vertex, unsigned id, int motherId, unsigned nCharged, const std::vector< int > &daughterIds, const FSimVertexType::VertexType vertexType)
 
int id () const
 
const bool isRecoVertex () const
 
int motherId () const
 
unsigned int nChargedDaughters () const
 
unsigned int nDaughters () const
 
const int recoVertexId () const
 
void removeRecoVertex ()
 Remove the associated reconstructed DispacedVertex. More...
 
void setRecoVertex (int recoVertexId)
 Set the associated reconstructed DispacedVertex. More...
 
const SimVertex vertex () const
 
const FSimVertexType::VertexType vertexType () const
 
virtual ~FSimDisplacedVertex ()
 

Private Attributes

std::vector< int > daughterIds_
 Vector of daughter ids in the track collection. More...
 
int id_
 
bool isRecoVertex_
 Flag to indicate if a reconstructed DisplacedVertex was found and associated. More...
 
int motherId_
 id of mother particle. -1 if no mother More...
 
unsigned int nCharged_
 Number of charged daughters. More...
 
int recoVertexId_
 
SimVertex vertex_
 Sim Vertex. More...
 
FSimVertexType::VertexType vertexType_
 Vertex Type. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const FSimDisplacedVertex &co)
 

Detailed Description

A FSimDisplacedVertex extends the FSimVertex with VertexType information.

\Data Format FSimDisplacedVertex

This data format is designed to combine the informations from FSimVertex and its FSimVertexType. It is not part of general FAMOS sequence and useful for private productions and analyses. The format contains also an integer identifier which may be optionally used to associate it to reconstruced nuclear Interaction: boolean isRecoVertex and int recoVertexId;

Author
Maxime Gouzevitch
Date
November 2009

Definition at line 27 of file FSimDisplacedVertex.h.

Constructor & Destructor Documentation

◆ FSimDisplacedVertex() [1/3]

FSimDisplacedVertex::FSimDisplacedVertex ( )

Definition at line 3 of file FSimDisplacedVertex.cc.

4  : id_(-1),
5  motherId_(-1),
6  nCharged_(0),
8  isRecoVertex_(false),
9  recoVertexId_(-1)
10 
11 {}

◆ FSimDisplacedVertex() [2/3]

FSimDisplacedVertex::FSimDisplacedVertex ( const SimVertex vertex,
unsigned  id,
int  motherId,
unsigned  nCharged,
const std::vector< int > &  daughterIds,
const FSimVertexType::VertexType  vertexType 
)

Definition at line 13 of file FSimDisplacedVertex.cc.

19  : vertex_(vertex),
20  id_(id),
25  isRecoVertex_(false),
26  recoVertexId_(-1) {}

◆ FSimDisplacedVertex() [3/3]

FSimDisplacedVertex::FSimDisplacedVertex ( const FSimDisplacedVertex other)

Definition at line 28 of file FSimDisplacedVertex.cc.

29  : vertex_(other.vertex_),
30  id_(other.id_),
31  motherId_(other.motherId_),
32  nCharged_(other.nCharged_),
33  daughterIds_(other.daughterIds_),
34  vertexType_(other.vertexType_),
35  isRecoVertex_(other.isRecoVertex()),
36  recoVertexId_(other.recoVertexId()) {}

◆ ~FSimDisplacedVertex()

virtual FSimDisplacedVertex::~FSimDisplacedVertex ( )
inlinevirtual

Definition at line 39 of file FSimDisplacedVertex.h.

39 {}

Member Function Documentation

◆ daughterIds()

const std::vector<int>& FSimDisplacedVertex::daughterIds ( ) const
inline
Returns
vector of daughter ids

Definition at line 57 of file FSimDisplacedVertex.h.

57 { return daughterIds_; }

References daughterIds_.

◆ id()

int FSimDisplacedVertex::id ( void  ) const
inline
Returns
the id of the vertex in the collection

Definition at line 45 of file FSimDisplacedVertex.h.

45 { return id_; }

References id_.

◆ isRecoVertex()

const bool FSimDisplacedVertex::isRecoVertex ( ) const
inline
Returns
indicated if there is a Displaced Vertex associated

Definition at line 63 of file FSimDisplacedVertex.h.

63 { return isRecoVertex_; }

References isRecoVertex_.

◆ motherId()

int FSimDisplacedVertex::motherId ( ) const
inline
Returns
mother id in the track collection

Definition at line 48 of file FSimDisplacedVertex.h.

48 { return motherId_; }

References motherId_.

◆ nChargedDaughters()

unsigned int FSimDisplacedVertex::nChargedDaughters ( ) const
inline
Returns
the number of charged daughters

Definition at line 54 of file FSimDisplacedVertex.h.

54 { return nCharged_; }

References nCharged_.

◆ nDaughters()

unsigned int FSimDisplacedVertex::nDaughters ( ) const
inline
Returns
the number of daughters

Definition at line 51 of file FSimDisplacedVertex.h.

51 { return daughterIds_.size(); }

References daughterIds_.

◆ recoVertexId()

const int FSimDisplacedVertex::recoVertexId ( ) const
inline
Returns
the reconstructed Displaced Vertex index

Definition at line 66 of file FSimDisplacedVertex.h.

66 { return recoVertexId_; }

References recoVertexId_.

Referenced by setRecoVertex().

◆ removeRecoVertex()

void FSimDisplacedVertex::removeRecoVertex ( )
inline

Remove the associated reconstructed DispacedVertex.

Definition at line 75 of file FSimDisplacedVertex.h.

75  {
76  isRecoVertex_ = false;
77  recoVertexId_ = -1;
78  }

References isRecoVertex_, and recoVertexId_.

◆ setRecoVertex()

void FSimDisplacedVertex::setRecoVertex ( int  recoVertexId)
inline

Set the associated reconstructed DispacedVertex.

Definition at line 69 of file FSimDisplacedVertex.h.

69  {
70  isRecoVertex_ = true;
72  }

References isRecoVertex_, recoVertexId(), and recoVertexId_.

◆ vertex()

const SimVertex FSimDisplacedVertex::vertex ( ) const
inline
Returns
the SimVertex

Definition at line 42 of file FSimDisplacedVertex.h.

42 { return vertex_; }

References vertex_.

Referenced by Tau.Tau::dxy().

◆ vertexType()

const FSimVertexType::VertexType FSimDisplacedVertex::vertexType ( ) const
inline
Returns
the vertex type

Definition at line 60 of file FSimDisplacedVertex.h.

60 { return vertexType_; }

References vertexType_.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const FSimDisplacedVertex co 
)
friend

Definition at line 38 of file FSimDisplacedVertex.cc.

38  {
39  return out << "id = " << co.id() << " mother = " << co.motherId() << " N daugh. = " << co.nDaughters()
40  << " N charged " << co.nChargedDaughters() << " Type = " << co.vertexType()
41  << " recoVertexId = " << co.recoVertexId() << " " << co.vertex();
42 }

Member Data Documentation

◆ daughterIds_

std::vector<int> FSimDisplacedVertex::daughterIds_
private

Vector of daughter ids in the track collection.

Definition at line 95 of file FSimDisplacedVertex.h.

Referenced by daughterIds(), and nDaughters().

◆ id_

int FSimDisplacedVertex::id_
private
Returns
the id in the vertex in the collection. -1 if the default value

Definition at line 86 of file FSimDisplacedVertex.h.

Referenced by id().

◆ isRecoVertex_

bool FSimDisplacedVertex::isRecoVertex_
private

Flag to indicate if a reconstructed DisplacedVertex was found and associated.

Definition at line 101 of file FSimDisplacedVertex.h.

Referenced by isRecoVertex(), removeRecoVertex(), and setRecoVertex().

◆ motherId_

int FSimDisplacedVertex::motherId_
private

id of mother particle. -1 if no mother

Definition at line 89 of file FSimDisplacedVertex.h.

Referenced by motherId().

◆ nCharged_

unsigned int FSimDisplacedVertex::nCharged_
private

Number of charged daughters.

Definition at line 92 of file FSimDisplacedVertex.h.

Referenced by nChargedDaughters().

◆ recoVertexId_

int FSimDisplacedVertex::recoVertexId_
private

The index of the reconstructed DisplacedVertex associated. By default the value is -1. The association may be done in the dedicated algorithm of the producer.

Definition at line 106 of file FSimDisplacedVertex.h.

Referenced by recoVertexId(), removeRecoVertex(), and setRecoVertex().

◆ vertex_

SimVertex FSimDisplacedVertex::vertex_
private

Sim Vertex.

Definition at line 82 of file FSimDisplacedVertex.h.

Referenced by vertex().

◆ vertexType_

FSimVertexType::VertexType FSimDisplacedVertex::vertexType_
private

Vertex Type.

Definition at line 98 of file FSimDisplacedVertex.h.

Referenced by vertexType().

FSimDisplacedVertex::recoVertexId
const int recoVertexId() const
Definition: FSimDisplacedVertex.h:66
HLT_FULL_cff.nCharged
nCharged
Definition: HLT_FULL_cff.py:33318
FSimDisplacedVertex::recoVertexId_
int recoVertexId_
Definition: FSimDisplacedVertex.h:106
FSimDisplacedVertex::nCharged_
unsigned int nCharged_
Number of charged daughters.
Definition: FSimDisplacedVertex.h:92
FSimDisplacedVertex::vertexType
const FSimVertexType::VertexType vertexType() const
Definition: FSimDisplacedVertex.h:60
FSimDisplacedVertex::vertex_
SimVertex vertex_
Sim Vertex.
Definition: FSimDisplacedVertex.h:82
trackingPlots.other
other
Definition: trackingPlots.py:1467
FSimVertexType::ANY
Definition: FSimVertexType.h:23
FSimDisplacedVertex::motherId
int motherId() const
Definition: FSimDisplacedVertex.h:48
FSimDisplacedVertex::daughterIds
const std::vector< int > & daughterIds() const
Definition: FSimDisplacedVertex.h:57
FSimDisplacedVertex::vertex
const SimVertex vertex() const
Definition: FSimDisplacedVertex.h:42
FSimDisplacedVertex::daughterIds_
std::vector< int > daughterIds_
Vector of daughter ids in the track collection.
Definition: FSimDisplacedVertex.h:95
FSimDisplacedVertex::id_
int id_
Definition: FSimDisplacedVertex.h:86
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
FSimDisplacedVertex::vertexType_
FSimVertexType::VertexType vertexType_
Vertex Type.
Definition: FSimDisplacedVertex.h:98
cms::cuda::co
VT * co
Definition: prefixScan.h:46
FSimDisplacedVertex::isRecoVertex_
bool isRecoVertex_
Flag to indicate if a reconstructed DisplacedVertex was found and associated.
Definition: FSimDisplacedVertex.h:101
FSimDisplacedVertex::motherId_
int motherId_
id of mother particle. -1 if no mother
Definition: FSimDisplacedVertex.h:89