BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDecayTag.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of models developed at BES collaboration
5// based on the EvtGen framework. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/BesCopyright
9// Copyright (A) 2006 Ping Rong-Gang @IHEP
10//
11// Module: EvtDecayTag.hh
12//
13// Description: Class to deal with the decay tag, e.g. the decay mode and multiplicity
14//
15// Modification history:
16//
17// Ping R.-G. December, 2011-Jan Module created
18//
19//------------------------------------------------------------------------
20//
21
22#ifndef EVTDECAYTAG_HH
23#define EVTDECAYTAG_HH
24
25
26#include <iostream>
27#include <math.h>
28#include <fstream>
29#include <stdio.h>
30#include <stdlib.h>
31#include <vector>
32// #include <sys/stat.h>
34#include "EvtGenBase/EvtId.hh"
35#include "EvtGenBase/EvtPDL.hh"
36using std::endl;
37using std::fstream;
38
40{
41
42public:
43
44// constructor
46 root_par = par;
47 _nmode.clear();
48 _multiplicity.clear();
49 for(int i=0;i<10;i++){_multiplicity.push_back(0);}
50 makeTag(root_par);
51}
52
53//destructor
54virtual ~EvtDecayTag(){}
55
56void makeTag(EvtParticle* par);
57int TagIndex(EvtId pid);
58int getModeTag();
59int getMultTag();
60int getHdrdBase(int index);
61
62private:
63
64 std::vector <int> _nmode,_multiplicity;
65 EvtParticle *root_par;
66};
67
68#endif
69
EvtDecayTag(EvtParticle *par)
void makeTag(EvtParticle *par)
int getHdrdBase(int index)
virtual ~EvtDecayTag()
int TagIndex(EvtId pid)
Definition EvtId.hh:27