BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TagParser2.h
Go to the documentation of this file.
1#ifndef TAGPARSER2_H_
2#define TAGPARSER2_H_
3
4#include "GaudiKernel/IInterface.h"
5#include "GaudiKernel/Kernel.h"
6#include "GaudiKernel/Service.h"
7#include "GaudiKernel/IDataProviderSvc.h"
8#include "GaudiKernel/IService.h"
10
11#include <string>
12#include <vector>
13using namespace std;
14
15class TagParser2: public ITagParser{
16
17 public:
18 TagParser2();
20
21 StatusCode getVEntry(vector<int>&);
22
23 int getDstDataType() { return m_dstDataType; }
24 unsigned int getTagData0() { return m_tagData0; }
25 unsigned int getTagData1() { return m_tagData1; }
26 unsigned int getTagData2() { return m_tagData2; }
27 unsigned int getTagData3() { return m_tagData3; }
28 unsigned int getTagData4() { return m_tagData4; }
29 unsigned int getTagData5() { return m_tagData5; }
30 unsigned int getTagData6() { return m_tagData6; }
31 unsigned int getTagData7() { return m_tagData7; }
32 unsigned int getTagData8() { return m_tagData8; }
33 unsigned int getTagData9() { return m_tagData9; }
34
35 void setDstDataType(int t) { m_dstDataType = t; }
36 void setTagData0(unsigned int t) { m_tagData0 = t; }
37 void setTagData1(unsigned int t) { m_tagData1 = t; }
38 void setTagData2(unsigned int t) { m_tagData2 = t; }
39 void setTagData3(unsigned int t) { m_tagData3 = t; }
40 void setTagData4(unsigned int t) { m_tagData4 = t; }
41 void setTagData5(unsigned int t) { m_tagData5 = t; }
42 void setTagData6(unsigned int t) { m_tagData6 = t; }
43 void setTagData7(unsigned int t) { m_tagData7 = t; }
44 void setTagData8(unsigned int t) { m_tagData8 = t; }
45 void setTagData9(unsigned int t) { m_tagData9 = t; }
46
47 void setFileName(string name) {m_fileName = name; std::cout<<"filename is "<<m_fileName<<std::endl;}
48 void setCriteria(vector<string> name) {m_criteria = name;}
49
50 void Tag1ToInt(unsigned int res, int & val1, int & val2, int & val3, int & val4);
51 void Tag2ToInt(unsigned int res, int & val1, int & val2, int & val3, int & val4, int & val5, int & val6);
52 vector<int> split(string str, string pattern, bool & all, bool & type);
53
54 private:
55 string m_fileName;
56 vector<string> m_criteria;
57 int m_dstDataType;
58 unsigned int m_tagData0;
59 unsigned int m_tagData1;
60 unsigned int m_tagData2;
61 unsigned int m_tagData3;
62 unsigned int m_tagData4;
63 unsigned int m_tagData5;
64 unsigned int m_tagData6;
65 unsigned int m_tagData7;
66 unsigned int m_tagData8;
67 unsigned int m_tagData9;
68
69};
70#endif /* TAGPARSER2_H_ */
TTree * t
Definition binning.cxx:23
void setCriteria(vector< string > name)
Definition TagParser2.h:48
unsigned int getTagData8()
Definition TagParser2.h:32
void setTagData4(unsigned int t)
Definition TagParser2.h:40
unsigned int getTagData2()
Definition TagParser2.h:26
unsigned int getTagData3()
Definition TagParser2.h:27
void setTagData1(unsigned int t)
Definition TagParser2.h:37
void setTagData7(unsigned int t)
Definition TagParser2.h:43
void Tag1ToInt(unsigned int res, int &val1, int &val2, int &val3, int &val4)
void setTagData9(unsigned int t)
Definition TagParser2.h:45
unsigned int getTagData1()
Definition TagParser2.h:25
void setTagData3(unsigned int t)
Definition TagParser2.h:39
void setDstDataType(int t)
Definition TagParser2.h:35
void setTagData6(unsigned int t)
Definition TagParser2.h:42
unsigned int getTagData9()
Definition TagParser2.h:33
unsigned int getTagData5()
Definition TagParser2.h:29
void setTagData5(unsigned int t)
Definition TagParser2.h:41
void setFileName(string name)
Definition TagParser2.h:47
int getDstDataType()
Definition TagParser2.h:23
unsigned int getTagData7()
Definition TagParser2.h:31
void setTagData8(unsigned int t)
Definition TagParser2.h:44
void Tag2ToInt(unsigned int res, int &val1, int &val2, int &val3, int &val4, int &val5, int &val6)
void setTagData0(unsigned int t)
Definition TagParser2.h:36
StatusCode getVEntry(vector< int > &)
unsigned int getTagData4()
Definition TagParser2.h:28
vector< int > split(string str, string pattern, bool &all, bool &type)
void setTagData2(unsigned int t)
Definition TagParser2.h:38
unsigned int getTagData6()
Definition TagParser2.h:30
unsigned int getTagData0()
Definition TagParser2.h:24