Go to the documentation of this file.00001 #include "FastSimDataFormats/NuclearInteractions/interface/FSimDisplacedVertex.h"
00002
00003
00004
00005 FSimDisplacedVertex::FSimDisplacedVertex() :
00006 id_(-1),
00007 motherId_(-1),
00008 nCharged_(0),
00009 vertexType_(FSimVertexType::ANY),
00010 isRecoVertex_(false),
00011 recoVertexId_(-1)
00012
00013 {}
00014
00015 FSimDisplacedVertex::FSimDisplacedVertex(const SimVertex& vertex,
00016 unsigned id, int motherId,
00017 unsigned nCharged,
00018 const std::vector<int>& daughterIds,
00019 const FSimVertexType::VertexType vertexType
00020 ):
00021 vertex_(vertex),
00022 id_(id),
00023 motherId_(motherId),
00024 nCharged_(nCharged),
00025 daughterIds_(daughterIds),
00026 vertexType_(vertexType),
00027 isRecoVertex_(false),
00028 recoVertexId_(-1)
00029 {}
00030
00031
00032 FSimDisplacedVertex::FSimDisplacedVertex(const FSimDisplacedVertex& other) :
00033 vertex_(other.vertex_),
00034 id_(other.id_),
00035 motherId_(other.motherId_),
00036 nCharged_(other.nCharged_),
00037 daughterIds_(other.daughterIds_),
00038 vertexType_(other.vertexType_),
00039 isRecoVertex_(other.isRecoVertex()),
00040 recoVertexId_(other.recoVertexId())
00041 {}
00042
00043
00044 std::ostream& operator<<(std::ostream& out,
00045 const FSimDisplacedVertex& co) {
00046
00047 return out << "id = " << co.id()
00048 << " mother = " << co.motherId()
00049 << " N daugh. = " << co.nDaughters()
00050 << " N charged " << co.nChargedDaughters()
00051 << " Type = " << co.vertexType()
00052 << " recoVertexId = " << co.recoVertexId() << " "
00053 << co.vertex();
00054
00055 }