A FSimDisplacedVertex extends the FSimVertex with VertexType information. More...
#include <FSimDisplacedVertex.h>
Public Member Functions | |
const std::vector< int > & | daughterIds () const |
FSimDisplacedVertex () | |
FSimDisplacedVertex (const SimVertex &vertex, unsigned id, int motherId, unsigned nCharged, const std::vector< int > &daughterIds, const FSimVertexType::VertexType vertexType) | |
FSimDisplacedVertex (const FSimDisplacedVertex &other) | |
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. | |
void | setRecoVertex (int recoVertexId) |
Set the associated reconstructed DispacedVertex. | |
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. | |
int | id_ |
bool | isRecoVertex_ |
Flag to indicate if a reconstructed DisplacedVertex was found and associated. | |
int | motherId_ |
id of mother particle. -1 if no mother | |
unsigned int | nCharged_ |
Number of charged daughters. | |
int | recoVertexId_ |
SimVertex | vertex_ |
Sim Vertex. | |
FSimVertexType::VertexType | vertexType_ |
Vertex Type. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const FSimDisplacedVertex &co) |
A FSimDisplacedVertex extends the FSimVertex with VertexType information.
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;
Definition at line 28 of file FSimDisplacedVertex.h.
FSimDisplacedVertex::FSimDisplacedVertex | ( | ) |
Definition at line 5 of file FSimDisplacedVertex.cc.
: id_(-1), motherId_(-1), nCharged_(0), vertexType_(FSimVertexType::ANY), isRecoVertex_(false), recoVertexId_(-1) {}
FSimDisplacedVertex::FSimDisplacedVertex | ( | const SimVertex & | vertex, |
unsigned | id, | ||
int | motherId, | ||
unsigned | nCharged, | ||
const std::vector< int > & | daughterIds, | ||
const FSimVertexType::VertexType | vertexType | ||
) |
Definition at line 15 of file FSimDisplacedVertex.cc.
: vertex_(vertex), id_(id), motherId_(motherId), nCharged_(nCharged), daughterIds_(daughterIds), vertexType_(vertexType), isRecoVertex_(false), recoVertexId_(-1) {}
FSimDisplacedVertex::FSimDisplacedVertex | ( | const FSimDisplacedVertex & | other | ) |
Definition at line 32 of file FSimDisplacedVertex.cc.
: vertex_(other.vertex_), id_(other.id_), motherId_(other.motherId_), nCharged_(other.nCharged_), daughterIds_(other.daughterIds_), vertexType_(other.vertexType_), isRecoVertex_(other.isRecoVertex()), recoVertexId_(other.recoVertexId()) {}
virtual FSimDisplacedVertex::~FSimDisplacedVertex | ( | ) | [inline, virtual] |
Definition at line 44 of file FSimDisplacedVertex.h.
{}
const std::vector<int>& FSimDisplacedVertex::daughterIds | ( | ) | const [inline] |
Definition at line 62 of file FSimDisplacedVertex.h.
References daughterIds_.
{return daughterIds_;}
int FSimDisplacedVertex::id | ( | void | ) | const [inline] |
Definition at line 50 of file FSimDisplacedVertex.h.
References id_.
Referenced by operator<<().
{ return id_; }
const bool FSimDisplacedVertex::isRecoVertex | ( | ) | const [inline] |
Definition at line 68 of file FSimDisplacedVertex.h.
References isRecoVertex_.
{return isRecoVertex_;}
int FSimDisplacedVertex::motherId | ( | ) | const [inline] |
Definition at line 53 of file FSimDisplacedVertex.h.
References motherId_.
Referenced by operator<<().
{ return motherId_; }
unsigned int FSimDisplacedVertex::nChargedDaughters | ( | ) | const [inline] |
Definition at line 59 of file FSimDisplacedVertex.h.
References nCharged_.
Referenced by operator<<().
{ return nCharged_;}
unsigned int FSimDisplacedVertex::nDaughters | ( | ) | const [inline] |
Definition at line 56 of file FSimDisplacedVertex.h.
References daughterIds_.
Referenced by operator<<().
{ return daughterIds_.size();}
const int FSimDisplacedVertex::recoVertexId | ( | ) | const [inline] |
Definition at line 71 of file FSimDisplacedVertex.h.
References recoVertexId_.
Referenced by operator<<(), and setRecoVertex().
{return recoVertexId_;}
void FSimDisplacedVertex::removeRecoVertex | ( | ) | [inline] |
Remove the associated reconstructed DispacedVertex.
Definition at line 80 of file FSimDisplacedVertex.h.
References isRecoVertex_, and recoVertexId_.
{ isRecoVertex_ = false; recoVertexId_ = -1; }
void FSimDisplacedVertex::setRecoVertex | ( | int | recoVertexId | ) | [inline] |
Set the associated reconstructed DispacedVertex.
Definition at line 74 of file FSimDisplacedVertex.h.
References isRecoVertex_, recoVertexId(), and recoVertexId_.
{ isRecoVertex_ = true; recoVertexId_ = recoVertexId; }
const SimVertex FSimDisplacedVertex::vertex | ( | ) | const [inline] |
Definition at line 47 of file FSimDisplacedVertex.h.
References vertex_.
Referenced by operator<<().
{ return vertex_; }
const FSimVertexType::VertexType FSimDisplacedVertex::vertexType | ( | ) | const [inline] |
Definition at line 65 of file FSimDisplacedVertex.h.
References vertexType_.
Referenced by operator<<().
{ return vertexType_;}
std::ostream& operator<< | ( | std::ostream & | out, |
const FSimDisplacedVertex & | co | ||
) | [friend] |
Definition at line 44 of file FSimDisplacedVertex.cc.
{ return out << "id = " << co.id() << " mother = " << co.motherId() << " N daugh. = " << co.nDaughters() << " N charged " << co.nChargedDaughters() << " Type = " << co.vertexType() << " recoVertexId = " << co.recoVertexId() << " " << co.vertex(); }
std::vector<int> FSimDisplacedVertex::daughterIds_ [private] |
Vector of daughter ids in the track collection.
Definition at line 103 of file FSimDisplacedVertex.h.
Referenced by daughterIds(), and nDaughters().
int FSimDisplacedVertex::id_ [private] |
Definition at line 94 of file FSimDisplacedVertex.h.
Referenced by id().
bool FSimDisplacedVertex::isRecoVertex_ [private] |
Flag to indicate if a reconstructed DisplacedVertex was found and associated.
Definition at line 109 of file FSimDisplacedVertex.h.
Referenced by isRecoVertex(), removeRecoVertex(), and setRecoVertex().
int FSimDisplacedVertex::motherId_ [private] |
id of mother particle. -1 if no mother
Definition at line 97 of file FSimDisplacedVertex.h.
Referenced by motherId().
unsigned int FSimDisplacedVertex::nCharged_ [private] |
Number of charged daughters.
Definition at line 100 of file FSimDisplacedVertex.h.
Referenced by nChargedDaughters().
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 114 of file FSimDisplacedVertex.h.
Referenced by recoVertexId(), removeRecoVertex(), and setRecoVertex().
SimVertex FSimDisplacedVertex::vertex_ [private] |