Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:32

0001 #include "FastSimDataFormats/NuclearInteractions/interface/FSimVertexType.h"
0002 
0003 FSimVertexType::FSimVertexType() : vertexType_(ANY) {}
0004 
0005 FSimVertexType::FSimVertexType(VertexType vertexType) : vertexType_(vertexType) {}
0006 
0007 std::ostream& operator<<(std::ostream& out, const FSimVertexType& v) {
0008   out << "vertexType =  " << v.vertexType() << " ";
0009 
0010   switch (v.vertexType()) {
0011     case FSimVertexType::ANY:
0012       out << "ANY";
0013       break;
0014     case FSimVertexType::PRIMARY_VERTEX:
0015       out << "PRIMARY";
0016       break;
0017     case FSimVertexType::NUCL_VERTEX:
0018       out << "NUCLEAR";
0019       break;
0020     case FSimVertexType::PAIR_VERTEX:
0021       out << "PAIR";
0022       break;
0023     case FSimVertexType::BREM_VERTEX:
0024       out << "BREM";
0025       break;
0026     case FSimVertexType::DECAY_VERTEX:
0027       out << "DECAY";
0028       break;
0029     case FSimVertexType::END_VERTEX:
0030       out << "END";
0031       break;
0032     case FSimVertexType::PILEUP_VERTEX:
0033       out << "PILEUP";
0034       break;
0035     case FSimVertexType::BSM_VERTEX:
0036       out << "BSM";
0037       break;
0038     default:
0039       out << "CHECK YOUR VERTEX TYPE!!!!";
0040       break;
0041   }
0042 
0043   return out;
0044 }