00001 #include <stdio.h>
00002 #include <cmath>
00003 #include "math_constants.h"
00004
00005 #include <StMessMgr.h>
00006
00007 #include "VertexData.h"
00008
00009
00010 VertexData::VertexData() {
00011 id=0;
00012 r=TVector3(999,999,999);
00013 gPtSum=0;
00014 nAnyMatch=nCtb=nBemc=nEemc=nTpc=0;
00015 nAnyVeto=nCtbV=nBemcV=nEemcV=nTpcV=0;
00016 }
00017
00018
00019
00020
00021 void VertexData::print(ostream& os) const {
00022 os <<" Vertex ID="<<id<<" nUsedTrack="<<nUsedTrack<<" gPtSum="<< gPtSum<<" Lmax="<< Lmax;
00023 os <<" match: any="<<nAnyMatch<<"-"<<nAnyVeto<<" CTB="<<nCtb<<"-"<<nCtbV<<" BEMC="<<nBemc<<"-"<<nBemcV<<" EEMC="<<nEemc<<"-"<<nEemcV<<" TPC="<<nTpc<<"-"<<nTpcV;
00024 os <<" Vz="<<r.z()<<" +/-"<<er.z()<<endl;
00025 }