//////////////////////////////////////////////////////////////////////////
// //
// file: TMBMCevtInfo.cpp //
// TMBTree MCevt class
// has MCevt information
//
// created: 23-Nov-2002 Wade Fisher
// //
//////////////////////////////////////////////////////////////////////////
#include "tmb_tree/TMBMCevtInfo.hpp"
ClassImp(TMBMCevtInfo)
//_____________________________________________________________________________
TMBMCevtInfo::TMBMCevtInfo():
_run(0), _evtid(0), _nreac(0), _xsect(0), _weight(0),_qsq(0),_shat(0),
_that(0),_uhat(0), _nchunks(0)
{
for(int i=0; i<20; ++i){
_nvtx[i]=0;
_npart[i]=0;
}
}
TMBMCevtInfo::TMBMCevtInfo( const TMBMCevtInfo & evt ):TObject()
{
_run = evt._run;
_evtid = evt._evtid;
_nreac = evt._nreac;
_xsect = evt._xsect;
_weight = evt._weight;
_qsq = evt._qsq;
_shat = evt._shat;
_that = evt._that;
_uhat = evt._uhat;
_nchunks= evt._nchunks;
for(int i=0; i<20; ++i){
_nvtx[i]=0;
_npart[i]=0;
}
for(int i=0; i<_nchunks; ++i){
_nvtx[i]=evt._nvtx[i];
_npart[i]=evt._npart[i];
}
}
TMBMCevtInfo::TMBMCevtInfo(Int_t run, Int_t evtid, Int_t nreac, Float_t xsect, Float_t weight, Float_t qsq, Float_t shat, Float_t that, Float_t uhat, Int_t nchunks, Int_t nvtx[20], Int_t npart[20])
{
Set(run, evtid, nreac, xsect, weight, qsq, shat, that, uhat, nchunks, nvtx, npart);
}
void TMBMCevtInfo::Set(Int_t run, Int_t evtid, Int_t nreac, Float_t xsect, Float_t weight, Float_t qsq, Float_t shat, Float_t that, Float_t uhat, Int_t nchunks, Int_t nvtx[20], Int_t npart[20])
{
_run = run;
_evtid = evtid;
_nreac = nreac;
_xsect = xsect;
_weight = weight;
_qsq = qsq;
_shat = shat;
_that = that;
_uhat = uhat;
_nchunks=nchunks;
for(int i=0; i<20; ++i){
_nvtx[i]=0;
_npart[i]=0;
}
for(int i=0; i<_nchunks; ++i){
_nvtx[i]=nvtx[i];
_npart[i]=npart[i];
}
}
TMBMCevtInfo::~TMBMCevtInfo()
{;}
//______________________________________________________________________________
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.