CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcShower.cxx File Reference
#include <iostream>
#include <complex>
#include "EmcRecEventModel/RecEmcShower.h"

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const RecEmcShower &aShower)
 

Function Documentation

◆ operator<<()

ostream & operator<< ( ostream &  os,
const RecEmcShower aShower 
)

Definition at line 326 of file RecEmcShower.cxx.

327{
328 RecEmcFractionMap::const_iterator pFractionMap;
329 RecEmcFractionMap::const_iterator ciFractionMap3x3;
330 RecEmcFractionMap::const_iterator ciFractionMap5x5;
331
332 os<<"------------------RecEmcShower:"<<endl;
333 os<<"Track id: "<<aShower.trackId()<<", number of hits: "<<aShower.getSize()
334 <<", status: "<<aShower.status()<<", shower id: "<<aShower.getShowerId()
335 <<", cluster id: "<<aShower.getClusterId()<<", module: "<<aShower.module()
336 <<", time: "<<aShower.time()<<endl;
337 os<<"Energy: "<<aShower.energy()<<", de: "<<aShower.dE()
338 <<", eseed: "<<aShower.eSeed()
339 <<", e3x3: "<<aShower.e3x3()<<", e5x5: "<<aShower.e5x5()
340 <<", eall: "<<aShower.getEAll()<<", elepton: "<<aShower.getELepton()<<endl;
341 os<<"Position: "<<aShower.position()
342 <<", theta: "<<aShower.theta()<<", phi: "<<aShower.phi()
343 <<"\ndx: "<<aShower.dx()<<", dy: "<<aShower.dy()<<", dz: "<<aShower.dz()
344 <<", dtheta: "<<aShower.dtheta()<<", dphi: "<<aShower.dphi()<<endl;
345 os<<"Second moment: "<<aShower.secondMoment()
346 <<", lat moment: "<<aShower.latMoment()
347 <<", a20 moment: "<<aShower.a20Moment()
348 <<", a42 moment: "<<aShower.a42Moment()<<endl;
349 os<<"Error matrix: \n"<<aShower.errorMatrix()<<endl;
350
351 if(aShower.getSize()>0) {
352 os<<"Fraction Map: "<<endl;
353 for(pFractionMap=aShower.Begin();
354 pFractionMap!=aShower.End();
355 pFractionMap++){
356 os<< (pFractionMap->second);
357 }
358 }
359
360 RecEmcFractionMap fracMap = aShower.getFractionMap3x3();
361 if(fracMap.size()>0) {
362 os<<"Fraction Map 3x3: "<<endl;
363 for(ciFractionMap3x3=fracMap.begin();
364 ciFractionMap3x3!=fracMap.end();
365 ciFractionMap3x3++){
366 os<< (ciFractionMap3x3->second);
367 }
368 }
369
370 fracMap = aShower.getFractionMap5x5();
371 if(fracMap.size()>0) {
372 os<<"Fraction Map 5x5: "<<endl;
373 for(ciFractionMap5x5=fracMap.begin();
374 ciFractionMap5x5!=fracMap.end();
375 ciFractionMap5x5++){
376 os<< (ciFractionMap5x5->second);
377 }
378 }
379
380 os<<endl;
381
382 return os;
383}
map< RecEmcID, RecEmcFraction, less< RecEmcID > > RecEmcFractionMap
double dy() const
double dz() const
double dx() const
Definition: DstEmcShower.cxx:3
RecEmcFractionMap::const_iterator End() const
RecEmcFractionMap getFractionMap5x5() const
RecEmcFractionMap::const_iterator Begin() const
unsigned int getSize() const
RecEmcFractionMap getFractionMap3x3() const