BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcFraction.cxx File Reference
#include <iostream>
#include "EmcRecEventModel/RecEmcFraction.h"
#include "Identifier/EmcID.h"

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const RecEmcFraction &aFraction)
 

Function Documentation

◆ operator<<()

ostream & operator<< ( ostream &  os,
const RecEmcFraction aFraction 
)

Definition at line 111 of file RecEmcFraction.cxx.

112{
113 os<<"Fraction: ";
114
115 os<<aFraction.getCellId()<<", ";
116
117 os.width(12);
118 os.setf(ios::right);
119 os<<aFraction.getEnergy()<<", ";
120
121 os.width(12);
122 os.setf(ios::right);
123 os<<aFraction.getTime()<<", ";
124
125 os.width(12);
126 os.setf(ios::right);
127 os<<aFraction.getFraction()<<", ";
128
129 os.width(12);
130 os.setf(ios::right);
131 os<<aFraction.getEnergy()*aFraction.getFraction();
132
133 os<<endl;
134
135 return os;
136}
RecEmcFrac getFraction() const
RecEmcEnergy getEnergy() const
Definition: RecEmcHit.h:48
RecEmcID getCellId() const
Definition: RecEmcHit.h:47
RecEmcTime getTime() const
Definition: RecEmcHit.h:49