BOSS 8.0.0
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#include <fstream>
26#include <iostream>
27#include <math.h>
28#include <stdio.h>
29#include <stdlib.h>
30#include <vector>
31// #include <sys/stat.h>
32#include "EvtId.hh"
33#include "EvtPDL.hh"
34#include "EvtParticle.hh"
35using std::endl;
36using std::fstream;
37
39
40public:
41 // constructor
43 root_par = par;
44 _nmode.clear();
45 _multiplicity.clear();
46 for ( int i = 0; i < 10; i++ ) { _multiplicity.push_back( 0 ); }
47 makeTag( root_par );
48 }
49
50 // destructor
51 virtual ~EvtDecayTag() {}
52
53 void makeTag( EvtParticle* par );
54 int TagIndex( EvtId pid );
55 int getModeTag();
56 int getMultTag();
57 int getHdrdBase( int index );
58
59private:
60 std::vector<int> _nmode, _multiplicity;
61 EvtParticle* root_par;
62};
63
64#endif
EvtDecayTag(EvtParticle *par)
void makeTag(EvtParticle *par)
int getHdrdBase(int index)
virtual ~EvtDecayTag()
int TagIndex(EvtId pid)
Definition EvtId.hh:27