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

#include <TagParser3.h>

+ Inheritance diagram for TagParser3:

Public Member Functions

 TagParser3 ()
 
 ~TagParser3 ()
 
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)
 
 TagParser3 ()
 
 ~TagParser3 ()
 
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

◆ TagParser3() [1/2]

TagParser3::TagParser3 ( )

Definition at line 27 of file TagParser3.cxx.

27 {
28}

◆ ~TagParser3() [1/2]

TagParser3::~TagParser3 ( )

Definition at line 30 of file TagParser3.cxx.

30 {
31}

◆ TagParser3() [2/2]

TagParser3::TagParser3 ( )

◆ ~TagParser3() [2/2]

TagParser3::~TagParser3 ( )

Member Function Documentation

◆ getDstDataType() [1/2]

int TagParser3::getDstDataType ( )
inlinevirtual

Implements ITagParser.

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

23{ return m_dstDataType; }

◆ getDstDataType() [2/2]

int TagParser3::getDstDataType ( )
inlinevirtual

Implements ITagParser.

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

23{ return m_dstDataType; }

◆ getTagData0() [1/2]

unsigned int TagParser3::getTagData0 ( )
inlinevirtual

Implements ITagParser.

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

24{ return m_tagData0; }

◆ getTagData0() [2/2]

unsigned int TagParser3::getTagData0 ( )
inlinevirtual

Implements ITagParser.

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

24{ return m_tagData0; }

◆ getTagData1() [1/2]

unsigned int TagParser3::getTagData1 ( )
inlinevirtual

Implements ITagParser.

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

25{ return m_tagData1; }

◆ getTagData1() [2/2]

unsigned int TagParser3::getTagData1 ( )
inlinevirtual

Implements ITagParser.

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

25{ return m_tagData1; }

◆ getTagData2() [1/2]

unsigned int TagParser3::getTagData2 ( )
inlinevirtual

Implements ITagParser.

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

26{ return m_tagData2; }

◆ getTagData2() [2/2]

unsigned int TagParser3::getTagData2 ( )
inlinevirtual

Implements ITagParser.

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

26{ return m_tagData2; }

◆ getTagData3() [1/2]

unsigned int TagParser3::getTagData3 ( )
inlinevirtual

Implements ITagParser.

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

27{ return m_tagData3; }

◆ getTagData3() [2/2]

unsigned int TagParser3::getTagData3 ( )
inlinevirtual

Implements ITagParser.

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

27{ return m_tagData3; }

◆ getTagData4() [1/2]

unsigned int TagParser3::getTagData4 ( )
inlinevirtual

Implements ITagParser.

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

28{ return m_tagData4; }

◆ getTagData4() [2/2]

unsigned int TagParser3::getTagData4 ( )
inlinevirtual

Implements ITagParser.

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

28{ return m_tagData4; }

◆ getTagData5() [1/2]

unsigned int TagParser3::getTagData5 ( )
inlinevirtual

Implements ITagParser.

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

29{ return m_tagData5; }

◆ getTagData5() [2/2]

unsigned int TagParser3::getTagData5 ( )
inlinevirtual

Implements ITagParser.

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

29{ return m_tagData5; }

◆ getTagData6() [1/2]

unsigned int TagParser3::getTagData6 ( )
inlinevirtual

Implements ITagParser.

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

30{ return m_tagData6; }

◆ getTagData6() [2/2]

unsigned int TagParser3::getTagData6 ( )
inlinevirtual

Implements ITagParser.

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

30{ return m_tagData6; }

◆ getTagData7() [1/2]

unsigned int TagParser3::getTagData7 ( )
inlinevirtual

Implements ITagParser.

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

31{ return m_tagData7; }

◆ getTagData7() [2/2]

unsigned int TagParser3::getTagData7 ( )
inlinevirtual

Implements ITagParser.

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

31{ return m_tagData7; }

◆ getTagData8() [1/2]

unsigned int TagParser3::getTagData8 ( )
inlinevirtual

Implements ITagParser.

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

32{ return m_tagData8; }

◆ getTagData8() [2/2]

unsigned int TagParser3::getTagData8 ( )
inlinevirtual

Implements ITagParser.

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

32{ return m_tagData8; }

◆ getTagData9() [1/2]

unsigned int TagParser3::getTagData9 ( )
inlinevirtual

Implements ITagParser.

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

33{ return m_tagData9; }

◆ getTagData9() [2/2]

unsigned int TagParser3::getTagData9 ( )
inlinevirtual

Implements ITagParser.

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

33{ return m_tagData9; }

◆ getVEntry() [1/2]

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

Implements ITagParser.

◆ getVEntry() [2/2]

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

Implements ITagParser.

◆ setCriteria() [1/2]

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

Implements ITagParser.

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

48{m_criteria = name;}

◆ setCriteria() [2/2]

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

Implements ITagParser.

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

48{m_criteria = name;}

◆ setDstDataType() [1/2]

void TagParser3::setDstDataType ( int  t)
inlinevirtual

Implements ITagParser.

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

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

◆ setDstDataType() [2/2]

void TagParser3::setDstDataType ( int  t)
inlinevirtual

Implements ITagParser.

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

35{ m_dstDataType = t; }

◆ setFileName() [1/2]

void TagParser3::setFileName ( string  name)
inlinevirtual

Implements ITagParser.

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

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

◆ setFileName() [2/2]

void TagParser3::setFileName ( string  name)
inlinevirtual

Implements ITagParser.

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

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

◆ setTagData0() [1/2]

void TagParser3::setTagData0 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

36{ m_tagData0 = t; }

◆ setTagData0() [2/2]

void TagParser3::setTagData0 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

36{ m_tagData0 = t; }

◆ setTagData1() [1/2]

void TagParser3::setTagData1 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

37{ m_tagData1 = t; }

◆ setTagData1() [2/2]

void TagParser3::setTagData1 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

37{ m_tagData1 = t; }

◆ setTagData2() [1/2]

void TagParser3::setTagData2 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

38{ m_tagData2 = t; }

◆ setTagData2() [2/2]

void TagParser3::setTagData2 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

38{ m_tagData2 = t; }

◆ setTagData3() [1/2]

void TagParser3::setTagData3 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

39{ m_tagData3 = t; }

◆ setTagData3() [2/2]

void TagParser3::setTagData3 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

39{ m_tagData3 = t; }

◆ setTagData4() [1/2]

void TagParser3::setTagData4 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

40{ m_tagData4 = t; }

◆ setTagData4() [2/2]

void TagParser3::setTagData4 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

40{ m_tagData4 = t; }

◆ setTagData5() [1/2]

void TagParser3::setTagData5 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

41{ m_tagData5 = t; }

◆ setTagData5() [2/2]

void TagParser3::setTagData5 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

41{ m_tagData5 = t; }

◆ setTagData6() [1/2]

void TagParser3::setTagData6 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

42{ m_tagData6 = t; }

◆ setTagData6() [2/2]

void TagParser3::setTagData6 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

42{ m_tagData6 = t; }

◆ setTagData7() [1/2]

void TagParser3::setTagData7 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

43{ m_tagData7 = t; }

◆ setTagData7() [2/2]

void TagParser3::setTagData7 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

43{ m_tagData7 = t; }

◆ setTagData8() [1/2]

void TagParser3::setTagData8 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

44{ m_tagData8 = t; }

◆ setTagData8() [2/2]

void TagParser3::setTagData8 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

44{ m_tagData8 = t; }

◆ setTagData9() [1/2]

void TagParser3::setTagData9 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

45{ m_tagData9 = t; }

◆ setTagData9() [2/2]

void TagParser3::setTagData9 ( unsigned int  t)
inlinevirtual

Implements ITagParser.

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

45{ m_tagData9 = t; }

◆ split() [1/2]

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

Definition at line 359 of file TagParser3.cxx.

360{
361 vector<int> result;
362 unsigned int pos;
363 type = true;
364 all = false;
365 str += pattern;
366
367 for (unsigned int i = 0; i<str.size(); i++) {
368 pos = str.find(pattern, i);
369 if (pos<str.size()) {
370 string val = str.substr(i, pos-i);
371 if (val=="all") {
372 all=true;
373 } else if (val=="type0") {
374 type=false;
375 } else {
376 result.push_back(atoi(val.c_str()));
377 }
378 i = pos + pattern.size() - 1;
379 }
380 }
381 return result;
382}

◆ split() [2/2]

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

◆ Tag1ToInt() [1/2]

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

Definition at line 341 of file TagParser3.cxx.

342{
343 val1 = (res>>24) & 0xFF;
344 val2 = (res>>16) & 0xFF;
345 val3 = (res>>8) & 0xFF;
346 val4 = res & 0xFF;
347 return;
348}

◆ Tag1ToInt() [2/2]

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

◆ Tag2ToInt() [1/2]

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

Definition at line 349 of file TagParser3.cxx.

350{
351 val1=(res>>26) & 0x3F;
352 val2=(res>>20) & 0x3F;
353 val3=(res>>15) & 0x1F;
354 val4=(res>>10) & 0x1F;
355 val5=(res>>5) & 0x1F;
356 val6 =res & 0x1F;
357 return;
358}

◆ Tag2ToInt() [2/2]

void TagParser3::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: