CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes | Friends

FSimVertexType Class Reference

A FSimVertexType hold the information on the vertex origine. More...

#include <FSimVertexType.h>

List of all members.

Public Types

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
}

Public Member Functions

 FSimVertexType ()
 FSimVertexType (VertexType)
void setVertexType (VertexType vertexType)
const VertexType vertexType () const
virtual ~FSimVertexType ()

Private Attributes

VertexType vertexType_

Friends

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

Detailed Description

A FSimVertexType hold the information on the vertex origine.

Format FSimVertexType

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

Definition at line 19 of file FSimVertexType.h.


Member Enumeration Documentation

Enum of possible vertex types. May be extended according to different needs

Enumerator:
ANY 
PRIMARY_VERTEX 
NUCL_VERTEX 
PAIR_VERTEX 
BREM_VERTEX 
DECAY_VERTEX 
END_VERTEX 
PILEUP_VERTEX 
BSM_VERTEX 

Definition at line 25 of file FSimVertexType.h.


Constructor & Destructor Documentation

FSimVertexType::FSimVertexType ( )

Definition at line 3 of file FSimVertexType.cc.

FSimVertexType::FSimVertexType ( VertexType  vertexType)

Definition at line 6 of file FSimVertexType.cc.

                                                    :
  vertexType_(vertexType) {}
virtual FSimVertexType::~FSimVertexType ( ) [inline, virtual]

Definition at line 39 of file FSimVertexType.h.

{}

Member Function Documentation

void FSimVertexType::setVertexType ( VertexType  vertexType) [inline]

Definition at line 42 of file FSimVertexType.h.

References vertexType(), and vertexType_.

const VertexType FSimVertexType::vertexType ( ) const [inline]

Definition at line 41 of file FSimVertexType.h.

References vertexType_.

Referenced by operator<<(), and setVertexType().

{return vertexType_;}

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const FSimVertexType co 
) [friend]

Definition at line 10 of file FSimVertexType.cc.

                                                                      { 
  
  out << "vertexType =  " << v.vertexType() << " ";
 
  switch (v.vertexType()){
  case FSimVertexType::ANY: out << "ANY"; break;
  case FSimVertexType::PRIMARY_VERTEX: out << "PRIMARY"; break;
  case FSimVertexType::NUCL_VERTEX: out << "NUCLEAR"; break;
  case FSimVertexType::PAIR_VERTEX: out << "PAIR"; break;
  case FSimVertexType::BREM_VERTEX: out << "BREM"; break;
  case FSimVertexType::DECAY_VERTEX: out << "DECAY"; break;
  case FSimVertexType::END_VERTEX: out << "END"; break;
  case FSimVertexType::PILEUP_VERTEX: out << "PILEUP"; break;
  case FSimVertexType::BSM_VERTEX: out << "BSM"; break;
  default: out << "CHECK YOUR VERTEX TYPE!!!!"; break;
  } 

  return out;

}

Member Data Documentation

Definition at line 46 of file FSimVertexType.h.

Referenced by setVertexType(), and vertexType().