File indexing completed on 2024-04-06 12:11:11
0001 #include "FastSimDataFormats/NuclearInteractions/interface/FSimDisplacedVertex.h"
0002
0003 FSimDisplacedVertex::FSimDisplacedVertex()
0004 : id_(-1),
0005 motherId_(-1),
0006 nCharged_(0),
0007 vertexType_(FSimVertexType::ANY),
0008 isRecoVertex_(false),
0009 recoVertexId_(-1)
0010
0011 {}
0012
0013 FSimDisplacedVertex::FSimDisplacedVertex(const SimVertex& vertex,
0014 unsigned id,
0015 int motherId,
0016 unsigned nCharged,
0017 const std::vector<int>& daughterIds,
0018 const FSimVertexType::VertexType vertexType)
0019 : vertex_(vertex),
0020 id_(id),
0021 motherId_(motherId),
0022 nCharged_(nCharged),
0023 daughterIds_(daughterIds),
0024 vertexType_(vertexType),
0025 isRecoVertex_(false),
0026 recoVertexId_(-1) {}
0027
0028 FSimDisplacedVertex::FSimDisplacedVertex(const FSimDisplacedVertex& other)
0029 : vertex_(other.vertex_),
0030 id_(other.id_),
0031 motherId_(other.motherId_),
0032 nCharged_(other.nCharged_),
0033 daughterIds_(other.daughterIds_),
0034 vertexType_(other.vertexType_),
0035 isRecoVertex_(other.isRecoVertex()),
0036 recoVertexId_(other.recoVertexId()) {}
0037
0038 std::ostream& operator<<(std::ostream& out, const FSimDisplacedVertex& co) {
0039 return out << "id = " << co.id() << " mother = " << co.motherId() << " N daugh. = " << co.nDaughters()
0040 << " N charged " << co.nChargedDaughters() << " Type = " << co.vertexType()
0041 << " recoVertexId = " << co.recoVertexId() << " " << co.vertex();
0042 }