CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TOFHIT Class Reference

#include <AsciiData.hh>

+ Inheritance diagram for TOFHIT:

Public Member Functions

 TOFHIT ()
 
- 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 nHit
 
std::vector< TofHitTypehitCol
 

Friends

std::istream & operator>> (std::istream &is, TOFHIT &x)
 
std::ostream & operator<< (std::ostream &os, const TOFHIT &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 419 of file AsciiData.hh.

Constructor & Destructor Documentation

◆ TOFHIT()

TOFHIT::TOFHIT ( )
inline

Definition at line 421 of file AsciiData.hh.

421{};

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 851 of file AsciiData.cc.

852{
853 os << std::endl << "{ TOFHIT" << std::endl;
854 if(x.initialized()) {
855 os << " " << x.nHit;
856 {for(int i = 0; i < x.nHit; i++) {
857 os << " " << x.hitCol[i];
858 }}
859 }
860 os << std::endl << "} TOFHIT" << std::endl;
861 return os;
862}
Double_t x[10]

◆ operator>>

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

Definition at line 838 of file AsciiData.cc.

839{
840 x.check_start_tag(is,"TOFHIT");
841 if(!x.initialized()) return is;
842 is >> x.nHit;
843 x.hitCol.resize(x.nHit);
844 {for(int i = 0; i < x.nHit; i++) {
845 is >> x.hitCol[i];
846 }}
847 x.check_end_tag(is, "TOFHIT");
848 return is;
849}

Member Data Documentation

◆ hitCol

std::vector<TofHitType> TOFHIT::hitCol

Definition at line 424 of file AsciiData.hh.

◆ nHit

int TOFHIT::nHit

Definition at line 423 of file AsciiData.hh.


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