BOSS 8.0.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#include "EvtId.hh"
26#include "EvtPDL.hh"
27#include "EvtParticle.hh"
28#include <fstream>
29#include <iostream>
30#include <math.h>
31#include <stdio.h>
32#include <stdlib.h>
33#include <vector>
34using std::endl;
35using std::fstream;
36
37class EvtFSPick {
38
39public:
40 // constructor
42 root_par = par;
43 _EvtFS.clear();
44 _vnames.clear();
45 _vId.clear();
46 _fsid.clear();
47 FSPick( root_par );
48 }
49
50 // destructor
51 virtual ~EvtFSPick() {}
52
53 void FSPick( EvtParticle* par );
54 std::vector<EvtParticle*> getFS() { return _EvtFS; }
55 void setFinalStatePar( std::vector<std::string> vnames );
56 std::vector<EvtVector4R> getP4();
57 std::vector<EvtVector4R> getP4Lab();
58 int getIndex( EvtId eid );
59
60private:
61 std::vector<EvtParticle*> _EvtFS;
62 EvtParticle* root_par;
63 std::vector<std::string> _vnames;
64 std::vector<EvtId> _vId, _fsid;
65};
66
67#endif
virtual ~EvtFSPick()
Definition EvtFSPick.hh:51
std::vector< EvtVector4R > getP4Lab()
Definition EvtFSPick.cc:77
int getIndex(EvtId eid)
Definition EvtFSPick.cc:90
std::vector< EvtParticle * > getFS()
Definition EvtFSPick.hh:54
void setFinalStatePar(std::vector< std::string > vnames)
Definition EvtFSPick.cc:47
EvtFSPick(EvtParticle *par)
Definition EvtFSPick.hh:41
std::vector< EvtVector4R > getP4()
Definition EvtFSPick.cc:64
void FSPick(EvtParticle *par)
Definition EvtFSPick.cc:24
Definition EvtId.hh:27