BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcxHits Class Reference

#include <MdcxHits.h>

Public Member Functions

 MdcxHits ()
 
virtual ~MdcxHits ()
 
void reset ()
 
void create (MdcDigiVec digiVec, float c0=0.0, float cresol=0.0180)
 
const HepAList< MdcxHit > & GetMdcxHitList ()
 
void print (std::ostream &o, int pmax=10) const
 

Detailed Description

Definition at line 33 of file MdcxHits.h.

Constructor & Destructor Documentation

◆ MdcxHits()

MdcxHits::MdcxHits ( )

Definition at line 35 of file MdcxHits.cxx.

35: m_debug(0) { }

◆ ~MdcxHits()

MdcxHits::~MdcxHits ( )
virtual

Definition at line 53 of file MdcxHits.cxx.

53{ KillList(); }

Member Function Documentation

◆ create()

void MdcxHits::create ( MdcDigiVec digiVec,
float c0 = 0.0,
float cresol = 0.0180 )

Definition at line 59 of file MdcxHits.cxx.

59 {
60 MdcDigiVec::iterator iter = mdcDigiVec.begin();
61 for (; iter != mdcDigiVec.end(); iter++ ) {
62 const MdcDigi* aDigi = *iter;
63 MdcxHit* temp = new MdcxHit(aDigi, c0, cresol);
64 //const Identifier id= aDigi->identify();
65 //int layer = MdcID::layer(id);
66 //int wire = MdcID::wire(id);
67 //std::cout<< " ("<<layer<<","<<wire<<") "<<aDigi->getTimeChannel()<<" "<<aDigi->getChargeChannel() << std::endl;//yzhang debug
68 mdcxHitList.append(temp);
69 }
70}
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)

Referenced by MdcxTrackFinder::execute().

◆ GetMdcxHitList()

const HepAList< MdcxHit > & MdcxHits::GetMdcxHitList ( )
inline

Definition at line 40 of file MdcxHits.h.

40{ return mdcxHitList; }

Referenced by MdcxTrackFinder::execute().

◆ print()

void MdcxHits::print ( std::ostream & o,
int pmax = 10 ) const

Definition at line 72 of file MdcxHits.cxx.

72 {
73 int mcheck = pmax;
74 if (mdcxHitList.length() < pmax) mcheck = mdcxHitList.length();
75 o << " First " << mcheck << " Main Drift Chamber Hits:" << endl;
76 for(int i = 0; i < mcheck; i++) {
77 mdcxHitList[i]->print(o, i);
78 }
79}

Referenced by MdcxTrackFinder::execute().

◆ reset()

void MdcxHits::reset ( )

Definition at line 55 of file MdcxHits.cxx.

55 {
56 HepAListDeleteAll(mdcxHitList);
57}

Referenced by MdcxTrackFinder::execute().


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