CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
EVHEAD Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for EVHEAD:

Public Member Functions

 EVHEAD ()
 
 EVHEAD ()
 
- Public Member Functions inherited from Tagged
 Tagged ()
 
bool initialized () const
 
void set_initialized ()
 
void unset_initalized ()
 
 Tagged ()
 
bool initialized () const
 
void set_initialized ()
 
void unset_initalized ()
 

Public Attributes

int runNo
 
int eventNo
 

Friends

std::istream & operator>> (std::istream &, EVHEAD &x)
 
std::ostream & operator<< (std::ostream &, const EVHEAD &x)
 
std::istream & operator>> (std::istream &, EVHEAD &x)
 
std::ostream & operator<< (std::ostream &, const EVHEAD &x)
 

Additional Inherited Members

- Protected Member Functions inherited from Tagged
void check_start_tag (std::istream &is, const char *tag)
 
void check_end_tag (std::istream &is, const char *tag)
 
void check_start_tag (std::istream &is, const char *tag)
 
void check_end_tag (std::istream &is, const char *tag)
 

Detailed Description

Definition at line 22 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ EVHEAD() [1/2]

EVHEAD::EVHEAD ( )
inline

Definition at line 24 of file AsciiData.hh.

24{};

◆ EVHEAD() [2/2]

EVHEAD::EVHEAD ( )
inline

Definition at line 24 of file AsciiData.h.

24{};

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream &  os,
const EVHEAD x 
)
friend

Definition at line 37 of file AsciiData.cc.

38{
39 os << std::endl << "{ EVHEAD" << std::endl;
40 if(x.initialized()) {
41 os << " " << x.runNo;
42 os << " " << x.eventNo;
43 }
44 os << std::endl << "} EVHEAD" << std::endl;
45 return os;
46}
Double_t x[10]

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream &  os,
const EVHEAD x 
)
friend

Definition at line 37 of file AsciiData.cc.

38{
39 os << std::endl << "{ EVHEAD" << std::endl;
40 if(x.initialized()) {
41 os << " " << x.runNo;
42 os << " " << x.eventNo;
43 }
44 os << std::endl << "} EVHEAD" << std::endl;
45 return os;
46}

◆ operator>> [1/2]

std::istream & operator>> ( std::istream &  is,
EVHEAD x 
)
friend

Definition at line 27 of file AsciiData.cc.

28{
29 x.check_start_tag(is,"EVHEAD");
30 if(!x.initialized()) return is;
31 is >> x.runNo;
32 is >> x.eventNo;
33 x.check_end_tag(is, "EVHEAD");
34 return is;
35}

◆ operator>> [2/2]

std::istream & operator>> ( std::istream &  is,
EVHEAD x 
)
friend

Definition at line 27 of file AsciiData.cc.

28{
29 x.check_start_tag(is,"EVHEAD");
30 if(!x.initialized()) return is;
31 is >> x.runNo;
32 is >> x.eventNo;
33 x.check_end_tag(is, "EVHEAD");
34 return is;
35}

Member Data Documentation

◆ eventNo

int EVHEAD::eventNo

◆ runNo

int EVHEAD::runNo

Definition at line 26 of file AsciiData.hh.

Referenced by BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveHitAsciiEvents().


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