BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
TagParser2 Class Reference

#include <TagParser2.h>

+ Inheritance diagram for TagParser2:

Public Member Functions

 TagParser2 ()
 
 ~TagParser2 ()
 
StatusCode getVEntry (vector< int > &)
 
int getDstDataType ()
 
unsigned int getTagData0 ()
 
unsigned int getTagData1 ()
 
unsigned int getTagData2 ()
 
unsigned int getTagData3 ()
 
unsigned int getTagData4 ()
 
unsigned int getTagData5 ()
 
unsigned int getTagData6 ()
 
unsigned int getTagData7 ()
 
unsigned int getTagData8 ()
 
unsigned int getTagData9 ()
 
void setDstDataType (int t)
 
void setTagData0 (unsigned int t)
 
void setTagData1 (unsigned int t)
 
void setTagData2 (unsigned int t)
 
void setTagData3 (unsigned int t)
 
void setTagData4 (unsigned int t)
 
void setTagData5 (unsigned int t)
 
void setTagData6 (unsigned int t)
 
void setTagData7 (unsigned int t)
 
void setTagData8 (unsigned int t)
 
void setTagData9 (unsigned int t)
 
void setFileName (string name)
 
void setCriteria (vector< string > name)
 
void Tag1ToInt (unsigned int res, int &val1, int &val2, int &val3, int &val4)
 
void Tag2ToInt (unsigned int res, int &val1, int &val2, int &val3, int &val4, int &val5, int &val6)
 
vector< int > split (string str, string pattern, bool &all, bool &type)
 
 TagParser2 ()
 
 ~TagParser2 ()
 
StatusCode getVEntry (vector< int > &)
 
int getDstDataType ()
 
unsigned int getTagData0 ()
 
unsigned int getTagData1 ()
 
unsigned int getTagData2 ()
 
unsigned int getTagData3 ()
 
unsigned int getTagData4 ()
 
unsigned int getTagData5 ()
 
unsigned int getTagData6 ()
 
unsigned int getTagData7 ()
 
unsigned int getTagData8 ()
 
unsigned int getTagData9 ()
 
void setDstDataType (int t)
 
void setTagData0 (unsigned int t)
 
void setTagData1 (unsigned int t)
 
void setTagData2 (unsigned int t)
 
void setTagData3 (unsigned int t)
 
void setTagData4 (unsigned int t)
 
void setTagData5 (unsigned int t)
 
void setTagData6 (unsigned int t)
 
void setTagData7 (unsigned int t)
 
void setTagData8 (unsigned int t)
 
void setTagData9 (unsigned int t)
 
void setFileName (string name)
 
void setCriteria (vector< string > name)
 
void Tag1ToInt (unsigned int res, int &val1, int &val2, int &val3, int &val4)
 
void Tag2ToInt (unsigned int res, int &val1, int &val2, int &val3, int &val4, int &val5, int &val6)
 
vector< int > split (string str, string pattern, bool &all, bool &type)
 
- Public Member Functions inherited from ITagParser
 ITagParser ()
 
 ~ITagParser ()
 
virtual StatusCode getVEntry (vector< int > &)=0
 
virtual int getDstDataType ()=0
 
virtual unsigned int getTagData0 ()=0
 
virtual unsigned int getTagData1 ()=0
 
virtual unsigned int getTagData2 ()=0
 
virtual unsigned int getTagData3 ()=0
 
virtual unsigned int getTagData4 ()=0
 
virtual unsigned int getTagData5 ()=0
 
virtual unsigned int getTagData6 ()=0
 
virtual unsigned int getTagData7 ()=0
 
virtual unsigned int getTagData8 ()=0
 
virtual unsigned int getTagData9 ()=0
 
virtual void setDstDataType (int t)=0
 
virtual void setTagData0 (unsigned int t)=0
 
virtual void setTagData1 (unsigned int t)=0
 
virtual void setTagData2 (unsigned int t)=0
 
virtual void setTagData3 (unsigned int t)=0
 
virtual void setTagData4 (unsigned int t)=0
 
virtual void setTagData5 (unsigned int t)=0
 
virtual void setTagData6 (unsigned int t)=0
 
virtual void setTagData7 (unsigned int t)=0
 
virtual void setTagData8 (unsigned int t)=0
 
virtual void setTagData9 (unsigned int t)=0
 
virtual void setFileName (string name)=0
 
virtual void setCriteria (vector< string > name)=0
 
 ITagParser ()
 
 ~ITagParser ()
 
virtual StatusCode getVEntry (vector< int > &)=0
 
virtual int getDstDataType ()=0
 
virtual unsigned int getTagData0 ()=0
 
virtual unsigned int getTagData1 ()=0
 
virtual unsigned int getTagData2 ()=0
 
virtual unsigned int getTagData3 ()=0
 
virtual unsigned int getTagData4 ()=0
 
virtual unsigned int getTagData5 ()=0
 
virtual unsigned int getTagData6 ()=0
 
virtual unsigned int getTagData7 ()=0
 
virtual unsigned int getTagData8 ()=0
 
virtual unsigned int getTagData9 ()=0
 
virtual void setDstDataType (int t)=0
 
virtual void setTagData0 (unsigned int t)=0
 
virtual void setTagData1 (unsigned int t)=0
 
virtual void setTagData2 (unsigned int t)=0
 
virtual void setTagData3 (unsigned int t)=0
 
virtual void setTagData4 (unsigned int t)=0
 
virtual void setTagData5 (unsigned int t)=0
 
virtual void setTagData6 (unsigned int t)=0
 
virtual void setTagData7 (unsigned int t)=0
 
virtual void setTagData8 (unsigned int t)=0
 
virtual void setTagData9 (unsigned int t)=0
 
virtual void setFileName (string name)=0
 
virtual void setCriteria (vector< string > name)=0
 

Detailed Description

Constructor & Destructor Documentation

◆ TagParser2() [1/2]

TagParser2::TagParser2 ( )

Definition at line 27 of file TagParser2.cxx.

27 {
28}

◆ ~TagParser2() [1/2]

TagParser2::~TagParser2 ( )

Definition at line 30 of file TagParser2.cxx.

30 {
31}

◆ TagParser2() [2/2]

TagParser2::TagParser2 ( )

◆ ~TagParser2() [2/2]

TagParser2::~TagParser2 ( )

Member Function Documentation

◆ getDstDataType() [1/2]

int TagParser2::getDstDataType ( )
inlinevirtual

Implements ITagParser.

Definition at line 23 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

23{ return m_dstDataType; }

◆ getDstDataType() [2/2]

int TagParser2::getDstDataType ( )
inlinevirtual

Implements ITagParser.

Definition at line 23 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

23{ return m_dstDataType; }

◆ getTagData0() [1/2]

unsigned int TagParser2::getTagData0 ( )
inlinevirtual

Implements ITagParser.

Definition at line 24 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

24{ return m_tagData0; }

◆ getTagData0() [2/2]

unsigned int TagParser2::getTagData0 ( )
inlinevirtual

Implements ITagParser.

Definition at line 24 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

24{ return m_tagData0; }

◆ getTagData1() [1/2]

unsigned int TagParser2::getTagData1 ( )
inlinevirtual

Implements ITagParser.

Definition at line 25 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

25{ return m_tagData1; }

◆ getTagData1() [2/2]

unsigned int TagParser2::getTagData1 ( )
inlinevirtual

Implements ITagParser.

Definition at line 25 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

25{ return m_tagData1; }

◆ getTagData2() [1/2]

unsigned int TagParser2::getTagData2 ( )
inlinevirtual

Implements ITagParser.

Definition at line 26 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

26{ return m_tagData2; }

◆ getTagData2() [2/2]

unsigned int TagParser2::getTagData2 ( )
inlinevirtual

Implements ITagParser.

Definition at line 26 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

26{ return m_tagData2; }

◆ getTagData3() [1/2]

unsigned int TagParser2::getTagData3 ( )
inlinevirtual

Implements ITagParser.

Definition at line 27 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

27{ return m_tagData3; }

◆ getTagData3() [2/2]

unsigned int TagParser2::getTagData3 ( )
inlinevirtual

Implements ITagParser.

Definition at line 27 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

27{ return m_tagData3; }

◆ getTagData4() [1/2]

unsigned int TagParser2::getTagData4 ( )
inlinevirtual

Implements ITagParser.

Definition at line 28 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

28{ return m_tagData4; }

◆ getTagData4() [2/2]

unsigned int TagParser2::getTagData4 ( )
inlinevirtual

Implements ITagParser.

Definition at line 28 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

28{ return m_tagData4; }

◆ getTagData5() [1/2]

unsigned int TagParser2::getTagData5 ( )
inlinevirtual

Implements ITagParser.

Definition at line 29 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

29{ return m_tagData5; }

◆ getTagData5() [2/2]

unsigned int TagParser2::getTagData5 ( )
inlinevirtual

Implements ITagParser.

Definition at line 29 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

29{ return m_tagData5; }

◆ getTagData6() [1/2]

unsigned int TagParser2::getTagData6 ( )
inlinevirtual

Implements ITagParser.

Definition at line 30 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

30{ return m_tagData6; }

◆ getTagData6() [2/2]

unsigned int TagParser2::getTagData6 ( )
inlinevirtual

Implements ITagParser.

Definition at line 30 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

30{ return m_tagData6; }

◆ getTagData7() [1/2]

unsigned int TagParser2::getTagData7 ( )
inlinevirtual

Implements ITagParser.

Definition at line 31 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

31{ return m_tagData7; }

◆ getTagData7() [2/2]

unsigned int TagParser2::getTagData7 ( )
inlinevirtual

Implements ITagParser.

Definition at line 31 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

31{ return m_tagData7; }

◆ getTagData8() [1/2]

unsigned int TagParser2::getTagData8 ( )
inlinevirtual

Implements ITagParser.

Definition at line 32 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

32{ return m_tagData8; }

◆ getTagData8() [2/2]

unsigned int TagParser2::getTagData8 ( )
inlinevirtual

Implements ITagParser.

Definition at line 32 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

32{ return m_tagData8; }

◆ getTagData9() [1/2]

unsigned int TagParser2::getTagData9 ( )
inlinevirtual

Implements ITagParser.

Definition at line 33 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

33{ return m_tagData9; }

◆ getTagData9() [2/2]

unsigned int TagParser2::getTagData9 ( )
inlinevirtual

Implements ITagParser.

Definition at line 33 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

33{ return m_tagData9; }

◆ getVEntry() [1/2]

StatusCode TagParser2::getVEntry ( vector< int > &  )
virtual

Implements ITagParser.

◆ getVEntry() [2/2]

StatusCode TagParser2::getVEntry ( vector< int > &  )
virtual

Implements ITagParser.

◆ setCriteria() [1/2]

void TagParser2::setCriteria ( vector< string >  name)
inlinevirtual

Implements ITagParser.

Definition at line 48 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

48{m_criteria = name;}

◆ setCriteria() [2/2]

void TagParser2::setCriteria ( vector< string >  name)
inlinevirtual

Implements ITagParser.

Definition at line 48 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

48{m_criteria = name;}

◆ setDstDataType() [1/2]

void TagParser2::setDstDataType ( int  t)
inlinevirtual

Implements ITagParser.

Definition at line 35 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

35{ m_dstDataType = t; }
TTree * t
Definition: binning.cxx:23

◆ setDstDataType() [2/2]

void TagParser2::setDstDataType ( int  t)
inlinevirtual

Implements ITagParser.

Definition at line 35 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

35{ m_dstDataType = t; }

◆ setFileName() [1/2]

void TagParser2::setFileName ( string  name)
inlinevirtual

Implements ITagParser.

Definition at line 47 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

47{m_fileName = name; std::cout<<"filename is "<<m_fileName<<std::endl;}

◆ setFileName() [2/2]

void TagParser2::setFileName ( string  name)
inlinevirtual

Implements ITagParser.

Definition at line 47 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

47{m_fileName = name; std::cout<<"filename is "<<m_fileName<<std::endl;}

◆ setTagData0() [1/2]

void TagParser2::setTagData0 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 36 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

36{ m_tagData0 = t; }

◆ setTagData0() [2/2]

void TagParser2::setTagData0 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 36 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

36{ m_tagData0 = t; }

◆ setTagData1() [1/2]

void TagParser2::setTagData1 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 37 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

37{ m_tagData1 = t; }

◆ setTagData1() [2/2]

void TagParser2::setTagData1 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 37 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

37{ m_tagData1 = t; }

◆ setTagData2() [1/2]

void TagParser2::setTagData2 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 38 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

38{ m_tagData2 = t; }

◆ setTagData2() [2/2]

void TagParser2::setTagData2 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 38 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

38{ m_tagData2 = t; }

◆ setTagData3() [1/2]

void TagParser2::setTagData3 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 39 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

39{ m_tagData3 = t; }

◆ setTagData3() [2/2]

void TagParser2::setTagData3 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 39 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

39{ m_tagData3 = t; }

◆ setTagData4() [1/2]

void TagParser2::setTagData4 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 40 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

40{ m_tagData4 = t; }

◆ setTagData4() [2/2]

void TagParser2::setTagData4 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 40 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

40{ m_tagData4 = t; }

◆ setTagData5() [1/2]

void TagParser2::setTagData5 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 41 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

41{ m_tagData5 = t; }

◆ setTagData5() [2/2]

void TagParser2::setTagData5 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 41 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

41{ m_tagData5 = t; }

◆ setTagData6() [1/2]

void TagParser2::setTagData6 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 42 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

42{ m_tagData6 = t; }

◆ setTagData6() [2/2]

void TagParser2::setTagData6 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 42 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

42{ m_tagData6 = t; }

◆ setTagData7() [1/2]

void TagParser2::setTagData7 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 43 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

43{ m_tagData7 = t; }

◆ setTagData7() [2/2]

void TagParser2::setTagData7 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 43 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

43{ m_tagData7 = t; }

◆ setTagData8() [1/2]

void TagParser2::setTagData8 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 44 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

44{ m_tagData8 = t; }

◆ setTagData8() [2/2]

void TagParser2::setTagData8 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 44 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

44{ m_tagData8 = t; }

◆ setTagData9() [1/2]

void TagParser2::setTagData9 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 45 of file Event/TagFilterSvc/TagFilterSvc-00-00-16/TagFilterSvc/TagParser2.h.

45{ m_tagData9 = t; }

◆ setTagData9() [2/2]

void TagParser2::setTagData9 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

Definition at line 45 of file InstallArea/include/TagFilterSvc/TagFilterSvc/TagParser2.h.

45{ m_tagData9 = t; }

◆ split() [1/2]

vector< int > TagParser2::split ( string  str,
string  pattern,
bool all,
bool type 
)

Definition at line 319 of file TagParser2.cxx.

320{
321 vector<int> result;
322 unsigned int pos;
323 type = true;
324 all = false;
325 str += pattern;
326
327 for (unsigned int i = 0; i<str.size(); i++) {
328 pos = str.find(pattern, i);
329 if (pos<str.size()) {
330 string val = str.substr(i, pos-i);
331 if (val=="all") {
332 all=true;
333 } else if (val=="type0") {
334 type=false;
335 } else {
336 result.push_back(atoi(val.c_str()));
337 }
338 i = pos + pattern.size() - 1;
339 }
340 }
341 return result;
342}

◆ split() [2/2]

vector< int > TagParser2::split ( string  str,
string  pattern,
bool all,
bool type 
)

◆ Tag1ToInt() [1/2]

void TagParser2::Tag1ToInt ( unsigned int  res,
int &  val1,
int &  val2,
int &  val3,
int &  val4 
)

Definition at line 301 of file TagParser2.cxx.

302{
303 val1 = (res>>24) & 0xFF;
304 val2 = (res>>16) & 0xFF;
305 val3 = (res>>8) & 0xFF;
306 val4 = res & 0xFF;
307 return;
308}

◆ Tag1ToInt() [2/2]

void TagParser2::Tag1ToInt ( unsigned int  res,
int &  val1,
int &  val2,
int &  val3,
int &  val4 
)

◆ Tag2ToInt() [1/2]

void TagParser2::Tag2ToInt ( unsigned int  res,
int &  val1,
int &  val2,
int &  val3,
int &  val4,
int &  val5,
int &  val6 
)

Definition at line 309 of file TagParser2.cxx.

310{
311 val1=(res>>26) & 0x3F;
312 val2=(res>>20) & 0x3F;
313 val3=(res>>15) & 0x1F;
314 val4=(res>>10) & 0x1F;
315 val5=(res>>5) & 0x1F;
316 val6 =res & 0x1F;
317 return;
318}

◆ Tag2ToInt() [2/2]

void TagParser2::Tag2ToInt ( unsigned int  res,
int &  val1,
int &  val2,
int &  val3,
int &  val4,
int &  val5,
int &  val6 
)

The documentation for this class was generated from the following files: