BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtFSPick.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 pick out the final state
14//
15// Modification history:
16//
17// Ping R.-G. December, 2011-Mar. Module created
18//
19//------------------------------------------------------------------------
20//
21
22#ifndef EVTFSPICK_HH
23#define EVTFSPICK_HH
24
25
26#include <iostream>
27#include <math.h>
28#include <fstream>
29#include <stdio.h>
30#include <stdlib.h>
31#include <vector>
33#include "EvtGenBase/EvtId.hh"
34#include "EvtGenBase/EvtPDL.hh"
35using std::endl;
36using std::fstream;
37
39{
40
41public:
42
43// constructor
45 root_par = par;
46 _EvtFS.clear();
47 _vnames.clear();
48 _vId.clear();
49 _fsid.clear();
50 FSPick(root_par);
51}
52
53//destructor
54 virtual ~EvtFSPick(){}
55
56 void FSPick(EvtParticle* par);
57 std::vector<EvtParticle*> getFS(){return _EvtFS;}
58 void setFinalStatePar(std::vector <std::string> vnames);
59 std::vector <EvtVector4R> getP4();
60 std::vector <EvtVector4R> getP4Lab();
61 int getIndex(EvtId eid);
62
63private:
64
65 std::vector <EvtParticle*> _EvtFS;
66 EvtParticle *root_par;
67 std::vector <std::string> _vnames;
68 std::vector <EvtId> _vId,_fsid;
69};
70
71#endif
72
virtual ~EvtFSPick()
Definition: EvtFSPick.hh:54
std::vector< EvtVector4R > getP4Lab()
Definition: EvtFSPick.cc:73
int getIndex(EvtId eid)
Definition: EvtFSPick.cc:85
std::vector< EvtParticle * > getFS()
Definition: EvtFSPick.hh:57
void setFinalStatePar(std::vector< std::string > vnames)
Definition: EvtFSPick.cc:45
EvtFSPick(EvtParticle *par)
Definition: EvtFSPick.hh:44
std::vector< EvtVector4R > getP4()
Definition: EvtFSPick.cc:61
void FSPick(EvtParticle *par)
Definition: EvtFSPick.cc:25
Definition: EvtId.hh:27