FSimVertexType

VertexType

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
#ifndef FastSimDataFormats_NuclearInteractions_FSimVertexType_h
#define FastSimDataFormats_NuclearInteractions_FSimVertexType_h

#include <ostream>

/*!\Data Format FSimVertexType

\brief  A FSimVertexType hold the information on the vertex origine

This data format is designed to hold the information 
obout the nature of a SimVertex within the Famos or 
Generation sequences.

\author Maxime Gouzevitch
\date November 2009
*/

class FSimVertexType {
public:
  /// Enum of possible vertex types.
  /// May be extended according to different needs
  enum VertexType {
    ANY = 0,
    PRIMARY_VERTEX = 1,
    NUCL_VERTEX = 2,
    PAIR_VERTEX = 3,
    BREM_VERTEX = 4,
    DECAY_VERTEX = 5,
    END_VERTEX = 6,
    PILEUP_VERTEX = 7,
    BSM_VERTEX = 8
  };

  FSimVertexType();
  FSimVertexType(VertexType);
  virtual ~FSimVertexType() {}

  const VertexType vertexType() const { return vertexType_; }
  void setVertexType(VertexType vertexType) { vertexType_ = vertexType; }

private:
  VertexType vertexType_;

  friend std::ostream& operator<<(std::ostream& out, const FSimVertexType& co);
};

#endif