00001
00002 #include "StJetEtCell.h"
00003
00004 #include <iostream>
00005
00006 using namespace std;
00007
00008 StJetEtCell::StJetEtCell(double etaMin, double etaMax, double phiMin, double phiMax)
00009 : StEtaPhiCell(etaMin, etaMax, phiMin, phiMax)
00010 {
00011 }
00012
00013 StJetEtCell::StJetEtCell(const StJetEtCell& c)
00014 : StEtaPhiCell(c)
00015 {
00016 }
00017
00018 StJetEtCell::StJetEtCell()
00019 {
00020 }
00021
00022 StJetEtCell::~StJetEtCell()
00023 {
00024 }
00025
00026 StEtaPhiCell* StJetEtCell::clone() const
00027 {
00028 return new StJetEtCell(*this);
00029 }
00030
00031 void StJetEtCell::addProtoJet(const StProtoJet& pj)
00032 {
00033 mEt += pj.eT();
00034 mProtoJet.add(pj);
00035 mUpToDate = false;
00036 }
00037
00038 void StJetEtCell::clear()
00039 {
00040 mEt = 0;
00041 mNtimesUsed = 0;
00042 mCells.clear();
00043 mProtoJet.clear();
00044 mUpToDate = false;
00045 }
00046
00047 void StJetEtCell::addCell(StEtaPhiCell* cell)
00048 {
00049 mEt += cell->eT();
00050 mCells.push_back(cell);
00051 cell->setNtimesUsed( cell->nTimesUsed() + 1 );
00052 mUpToDate=false;
00053 }
00054