Atlfast::TwoCptCell Class Reference

#include <TwoCptCell.h>

Inheritance diagram for Atlfast::TwoCptCell:

Inheritance graph
[legend]
Collaboration diagram for Atlfast::TwoCptCell:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TwoCptCell ()
 constructors
 TwoCptCell (const CellDescriptor &cellID)
 TwoCptCell (const TwoCptCell &)
TwoCptCelloperator= (const TwoCptCell &)
virtual ~TwoCptCell ()
virtual ITwoCptCellcloneITCC () const
virtual void accept (IAOOvisitor *iaPtr) const
 IAOO interface.
virtual IKinematicclone () const
 IKinematic interface overides.
virtual void resetCell ()
 ICell interface overides.
virtual void depositEcal (double eT)
 ITwoCptCell interface.
virtual void depositHcal (double eT)
 Deposit eT in Ecal.
virtual void addEgen (double E)
 Deposit eT in Hcal.
virtual double ecalEt () const
 give sum Et in ...
virtual double hcalEt () const
 Ecal.
virtual double eGen () const
 Hcal.
virtual void print (const std::string &coor, std::string t="") const
 Generated E for calib.
virtual void newHit (const GenParticle *part)=0
virtual void newHit (const HepLorentzVector part)=0
 GenParticle.
virtual void newHit (const EPileupDeposit *)=0
 momentum
virtual void newHit (double pT)=0
 Pileup.
virtual void setPt (HepLorentzVector &)=0
 set pT by value
virtual int numberOfHits () const=0
 Reset.
virtual std::vector< const
GenParticle * > 
particles () const=0
virtual void addParticle (const GenParticle *)=0
virtual void fillNavTokenFromAssocs (INavigationToken &) const=0
virtual HepLorentzVector momentum () const=0
virtual double eta () const=0
virtual double phi () const=0
virtual double pT () const=0
virtual double eT () const=0
virtual double mT () const=0
virtual double e () const
virtual double m () const
virtual void associate (const IAOO *otherEntity)=0
 store any object with IAOO above it the inheritance heirarchy
virtual std::vector< const
IAOO * >::const_iterator 
begin () const=0
 iterators for the store.
virtual std::vector< const
IAOO * >::const_iterator 
end () const=0
virtual bool unAssociated () const=0
 A quick way to find out whether there are any associations at a ll.
virtual void reset ()=0
 zero the container
virtual void dump (const std::string &s) const =0
 dump out debug info

Protected Member Functions

virtual void newHit (const GenParticle *part)
virtual void newHit (const HepLorentzVector)
 GenParticle.
virtual void newHit (double pT)
 Pileup.
virtual void newHit (const EPileupDeposit *)
virtual void setPt (HepLorentzVector &)
 set pT by value
virtual int numberOfHits () const
 Reset.
virtual std::vector< const
GenParticle * > 
particles () const
virtual void addParticle (const GenParticle *)
 add particle adds the particle if not already present
virtual HepLorentzVector momentum () const
 IKinematic interface methods.
virtual double eta () const
virtual double phi () const
virtual double pT () const
virtual double eT () const
virtual double mT () const
virtual void fillNavTokenFromAssocs (INavigationToken &) const
virtual void associate (const IAOO *otherEntity)
 store any object with IAOO above it the inheritance heirarchy
virtual std::vector< const
IAOO * >::const_iterator 
begin () const
 iterators for the store.
virtual std::vector< const
IAOO * >::const_iterator 
end () const
virtual bool unAssociated () const
 A quick way to find out whether there are any associations at a ll.
virtual void reset ()
 zero the container
virtual void dump (const std::string &) const
 dump out debug info
virtual void fillToken (INavigationToken &) const
virtual void fillToken (INavigationToken &, const boost::any &) const

Private Attributes

double m_ecalEt
double m_hcalEt
 total transverse energy deposited Ecal
double m_eGenSum
 total transverse energy deposited Hcal

Detailed Description

Definition at line 23 of file TwoCptCell.h.


Constructor & Destructor Documentation

Atlfast::TwoCptCell::TwoCptCell (  ) 

constructors

Definition at line 10 of file TwoCptCell.cxx.

00010                         : 
00011     Cell(),
00012     m_ecalEt(0.),
00013     m_hcalEt(0.),
00014     m_eGenSum(0.){
00015   }

Atlfast::TwoCptCell::TwoCptCell ( const CellDescriptor cellID  )  [explicit]

Definition at line 17 of file TwoCptCell.cxx.

00017                                                      :
00018     Cell(cellID),
00019     m_ecalEt(0.),
00020     m_hcalEt(0.),
00021     m_eGenSum(0.){
00022   }
  

Atlfast::TwoCptCell::TwoCptCell ( const TwoCptCell  ) 

Definition at line 38 of file TwoCptCell.cxx.

00038                                                     : 
00039     Atlfast::IAOO(otherCell),
00040     INavigable(otherCell),
00041     I4Momentum(otherCell),
00042     INavigable4Momentum(otherCell),
00043     Atlfast::IKinematic(otherCell),
00044     Atlfast::IAODNavigation(otherCell),
00045     Atlfast::ICell(otherCell),
00046     Atlfast::ITwoCptCell(otherCell),
00047     Cell(otherCell){
00048     this->m_ecalEt=otherCell.m_ecalEt;
00049     this->m_hcalEt=otherCell.m_hcalEt;
00050     this->m_eGenSum=otherCell.m_eGenSum;
00051   }

virtual Atlfast::TwoCptCell::~TwoCptCell (  )  [inline, virtual]

Definition at line 32 of file TwoCptCell.h.

00032 { } 


Member Function Documentation

TwoCptCell & Atlfast::TwoCptCell::operator= ( const TwoCptCell  ) 

Definition at line 25 of file TwoCptCell.cxx.

00025                                                               {
00026     
00027     if (this!=&otherCell){
00028       Cell::operator=(otherCell);
00029       this->m_ecalEt=otherCell.m_ecalEt;
00030       this->m_hcalEt=otherCell.m_hcalEt;
00031       this->m_eGenSum=otherCell.m_eGenSum;
00032     }
00033     
00034     return *this;
00035   }

ITwoCptCell * Atlfast::TwoCptCell::cloneITCC (  )  const [virtual]

Implements Atlfast::ITwoCptCell.

Definition at line 95 of file TwoCptCell.cxx.

00095                                           {
00096     ITwoCptCell* itcc = new TwoCptCell(*this);
00097     return itcc;
00098   }

void Atlfast::TwoCptCell::accept ( IAOOvisitor iaPtr  )  const [virtual]

IAOO interface.

Reimplemented from Atlfast::Cell.

Definition at line 54 of file TwoCptCell.cxx.

00054                                                  {
00055     iaPtr->process(this);
00056   }

IKinematic * Atlfast::TwoCptCell::clone (  )  const [virtual]

IKinematic interface overides.

Reimplemented from Atlfast::Cell.

Definition at line 90 of file TwoCptCell.cxx.

00090                                      {
00091     IKinematic* itcc = new TwoCptCell(*this);
00092     return itcc;
00093   }

void Atlfast::TwoCptCell::resetCell (  )  [virtual]

ICell interface overides.

Reimplemented from Atlfast::Cell.

Definition at line 59 of file TwoCptCell.cxx.

00059                              {
00060     Cell::resetCell();
00061     m_ecalEt=0;
00062     m_hcalEt=0;
00063     m_eGenSum=0;
00064   }

void Atlfast::TwoCptCell::depositEcal ( double  eT  )  [virtual]

ITwoCptCell interface.

Implements Atlfast::ITwoCptCell.

Definition at line 66 of file TwoCptCell.cxx.

00066                                        {
00067     //    cerr<<"TwoCptCell::depositEcal(double pt) "<<pt<<endl;
00068     m_ecalEt += pt;
00069     Cell::newHit(pt);
00070   }    

void Atlfast::TwoCptCell::depositHcal ( double  eT  )  [virtual]

Deposit eT in Ecal.

Implements Atlfast::ITwoCptCell.

Definition at line 72 of file TwoCptCell.cxx.

00072                                        {
00073     //    cerr<<"TwoCptCell::depositHcal(double pt) "<<pt<<endl;
00074     m_hcalEt += pt;
00075     Cell::newHit(pt);
00076   }    

void Atlfast::TwoCptCell::addEgen ( double  E  )  [virtual]

Deposit eT in Hcal.

Implements Atlfast::ITwoCptCell.

Definition at line 78 of file TwoCptCell.cxx.

00078 {m_eGenSum += E;}

double Atlfast::TwoCptCell::ecalEt (  )  const [virtual]

give sum Et in ...

Generated E for calib

Implements Atlfast::ITwoCptCell.

Definition at line 80 of file TwoCptCell.cxx.

00080                                   {
00081     return m_ecalEt;
00082   }    

double Atlfast::TwoCptCell::hcalEt (  )  const [virtual]

Ecal.

Implements Atlfast::ITwoCptCell.

Definition at line 84 of file TwoCptCell.cxx.

00084                                   {
00085     return m_hcalEt;
00086   }    

double Atlfast::TwoCptCell::eGen (  )  const [virtual]

Hcal.

Definition at line 88 of file TwoCptCell.cxx.

00088 {return m_eGenSum;}

void Atlfast::TwoCptCell::print ( const std::string &  coor,
std::string  t = "" 
) const [virtual]

Generated E for calib.

Reimplemented from Atlfast::Cell.

Definition at line 101 of file TwoCptCell.cxx.

00101                                                                  {
00102     Cell::print(coor, t);
00103     std::cout<<t
00104              <<" Transverse E, ecal:                                   "
00105              <<std::setw(12)<<std::setprecision(3)<<m_ecalEt
00106              <<std::string(6,' ')<<"TwoCptCell\n"
00107              <<" Transverse E, hcal:                                   "
00108              <<std::setw(12)<<std::setprecision(3)<<m_hcalEt
00109              <<std::string(6,' ')<<"TwoCptCell\n"
00110              <<" nSum of e of particles producing FastShower gridlets: "
00111              <<std::setw(12)<<std::setprecision(3)<<m_eGenSum
00112              <<"      TwoCptCell"<<std::endl;
00113   }

virtual void Atlfast::ICell::newHit ( const GenParticle *  part  )  [pure virtual, inherited]

Implemented in Atlfast::Cell.

virtual void Atlfast::ICell::newHit ( const HepLorentzVector  part  )  [pure virtual, inherited]

GenParticle.

Implemented in Atlfast::Cell.

virtual void Atlfast::ICell::newHit ( const EPileupDeposit  )  [pure virtual, inherited]

momentum

Implemented in Atlfast::Cell.

virtual void Atlfast::ICell::newHit ( double  pT  )  [pure virtual, inherited]

Pileup.

Implemented in Atlfast::Cell.

virtual void Atlfast::ICell::setPt ( HepLorentzVector &   )  [pure virtual, inherited]

set pT by value

Implemented in Atlfast::Cell.

virtual int Atlfast::ICell::numberOfHits (  )  const [pure virtual, inherited]

Reset.

Implemented in Atlfast::Cell.

virtual std::vector<const GenParticle*> Atlfast::ICell::particles (  )  const [pure virtual, inherited]

Implemented in Atlfast::Cell.

virtual void Atlfast::ICell::addParticle ( const GenParticle *   )  [pure virtual, inherited]

Implemented in Atlfast::Cell.

virtual void Atlfast::IAODNavigation::fillNavTokenFromAssocs ( INavigationToken &   )  const [pure virtual, inherited]

Implemented in Atlfast::AODNavigationImp.

virtual HepLorentzVector Atlfast::IKinematic::momentum (  )  const [pure virtual, inherited]

Implemented in Atlfast::Cell, Atlfast::Cluster, Atlfast::Jet, Atlfast::ReconstructedParticle, Atlfast::SimpleKinematic, and Atlfast::Track.

virtual double Atlfast::IKinematic::eta (  )  const [pure virtual, inherited]

Implemented in Atlfast::Cell, Atlfast::Cluster, Atlfast::Jet, Atlfast::ReconstructedParticle, Atlfast::SimpleKinematic, and Atlfast::Track.

virtual double Atlfast::IKinematic::phi (  )  const [pure virtual, inherited]

Implemented in Atlfast::Cell, Atlfast::Cluster, Atlfast::Jet, Atlfast::ReconstructedParticle, Atlfast::SimpleKinematic, and Atlfast::Track.

virtual double Atlfast::IKinematic::pT (  )  const [pure virtual, inherited]

Implemented in Atlfast::Cell, Atlfast::Cluster, Atlfast::Jet, Atlfast::ReconstructedParticle, Atlfast::SimpleKinematic, and Atlfast::Track.

virtual double Atlfast::IKinematic::eT (  )  const [pure virtual, inherited]

Implemented in Atlfast::Cell, Atlfast::Cluster, Atlfast::Jet, Atlfast::ReconstructedParticle, Atlfast::SimpleKinematic, and Atlfast::Track.

virtual double Atlfast::IKinematic::mT (  )  const [pure virtual, inherited]

Implemented in Atlfast::Cell, Atlfast::Cluster, Atlfast::Jet, Atlfast::ReconstructedParticle, Atlfast::SimpleKinematic, and Atlfast::Track.

virtual double Atlfast::IKinematic::e (  )  const [inline, virtual, inherited]

Reimplemented in Atlfast::Jet.

Definition at line 75 of file IKinematic.h.

00075 {return this->momentum().e();}

virtual double Atlfast::IKinematic::m (  )  const [inline, virtual, inherited]

Definition at line 76 of file IKinematic.h.

00076 {return this->momentum().m();}

virtual void Atlfast::IAOO::associate ( const IAOO otherEntity  )  [pure virtual, inherited]

store any object with IAOO above it the inheritance heirarchy

Implemented in Atlfast::AOObase.

virtual std::vector<const IAOO*>::const_iterator Atlfast::IAOO::begin (  )  const [pure virtual, inherited]

iterators for the store.

Implemented in Atlfast::AOObase.

virtual std::vector<const IAOO*>::const_iterator Atlfast::IAOO::end (  )  const [pure virtual, inherited]

Implemented in Atlfast::AOObase.

virtual bool Atlfast::IAOO::unAssociated (  )  const [pure virtual, inherited]

A quick way to find out whether there are any associations at a ll.

Implemented in Atlfast::AOObase.

virtual void Atlfast::IAOO::reset (  )  [pure virtual, inherited]

zero the container

Implemented in Atlfast::AOObase.

virtual void Atlfast::IAOO::dump ( const std::string &  s  )  const [pure virtual, inherited]

dump out debug info

Implemented in Atlfast::AOObase.

virtual void Atlfast::Cell::newHit ( const GenParticle *  part  )  [virtual, inherited]

Implements Atlfast::ICell.

void Atlfast::Cell::newHit ( const   HepLorentzVector  )  [virtual, inherited]

GenParticle.

Implements Atlfast::ICell.

Definition at line 75 of file Cell.cxx.

00075                                                     {
00076     m_ptSum += momentum.perp();
00077   }    

void Atlfast::Cell::newHit ( double  pT  )  [virtual, inherited]

Pileup.

Implements Atlfast::ICell.

Definition at line 79 of file Cell.cxx.

00079                             {
00080     //    cerr<<"Cell::newHit(double pT) "<<pT<<endl;
00081     m_ptSum += pT;
00082   }    

void Atlfast::Cell::newHit ( const EPileupDeposit part  )  [virtual, inherited]

Energy Pileup deposited into cell

Implements Atlfast::ICell.

Definition at line 85 of file Cell.cxx.

00085                                              {
00086     m_ptSum += part->energyDeposit();
00087   }

void Atlfast::Cell::setPt ( HepLorentzVector &   )  [virtual, inherited]

set pT by value

Implements Atlfast::ICell.

Definition at line 94 of file Cell.cxx.

00094                                        {
00095     m_ptSum=vec.perp(); 
00096   } 

virtual int Atlfast::Cell::numberOfHits (  )  const [inline, virtual, inherited]

Reset.

Implements Atlfast::ICell.

Definition at line 80 of file Cell.h.

00080 {return m_particles.size();}

std::vector< const GenParticle * > Atlfast::Cell::particles (  )  const [virtual, inherited]

Implements Atlfast::ICell.

Definition at line 99 of file Cell.cxx.

00099                                                       {
00100     return m_particles;
00101   }

virtual void Atlfast::Cell::addParticle ( const GenParticle *   )  [virtual, inherited]

add particle adds the particle if not already present

Implements Atlfast::ICell.

HepLorentzVector Atlfast::Cell::momentum (  )  const [virtual, inherited]

IKinematic interface methods.

Implements Atlfast::IKinematic.

Definition at line 54 of file Cell.cxx.

00054                                        {
00055     //sum momentum calculated as if all particles hit cell center 
00056     double px,py,pz,e;
00057     px=pT()*cos(m_id.phi());
00058     py=pT()*sin(m_id.phi());
00059     pz=pT()*sinh(m_id.eta());
00060     e=pT()*cosh(m_id.eta());
00061     HepLorentzVector vec(px,py,pz,e);
00062     return vec;
00063   }

double Atlfast::Cell::eta (  )  const [virtual, inherited]

Implements Atlfast::IKinematic.

Definition at line 103 of file Cell.cxx.

00103 {return m_id.eta();}

double Atlfast::Cell::phi (  )  const [virtual, inherited]

Implements Atlfast::IKinematic.

Definition at line 105 of file Cell.cxx.

00105 {return m_id.phi();} 

double Atlfast::Cell::pT (  )  const [virtual, inherited]

Implements Atlfast::IKinematic.

Definition at line 107 of file Cell.cxx.

00107 {return m_ptSum;}

double Atlfast::Cell::eT (  )  const [virtual, inherited]

Implements Atlfast::IKinematic.

Definition at line 109 of file Cell.cxx.

00109 {return m_ptSum;} 

double Atlfast::Cell::mT (  )  const [virtual, inherited]

Implements Atlfast::IKinematic.

Definition at line 111 of file Cell.cxx.

00111 {return 0;}

void Atlfast::AODNavigationImp::fillNavTokenFromAssocs ( INavigationToken &   )  const [virtual, inherited]

Implements Atlfast::IAODNavigation.

Definition at line 14 of file AODNavigationImp.cxx.

00014                                                                             {
00015     NavigationToken<I4Momentum>* i4Token =
00016       dynamic_cast< NavigationToken<I4Momentum>* >(&token);
00017     if ( i4Token == 0 ) return;
00018     
00019     TypeVisitor typeVisitor = SimpleAssocsDispatcher(this, TypeVisitor());
00020 
00021     std::vector<const I4Momentum*> i4s = typeVisitor.i4momenta();    
00022     std::vector<const I4Momentum*>::const_iterator iter = i4s.begin();
00023     for(;iter!= i4s.end(); ++iter){i4Token->setObject(*iter);}
00024   }

void Atlfast::AOObase::associate ( const IAOO otherEntity  )  [virtual, inherited]

store any object with IAOO above it the inheritance heirarchy

Implements Atlfast::IAOO.

Definition at line 18 of file AOObase.cxx.

00018                                            {
00019     m_associations.push_back( other ) ;
00020   }

std::vector< const IAOO * >::const_iterator Atlfast::AOObase::begin (  )  const [virtual, inherited]

iterators for the store.

Implements Atlfast::IAOO.

Definition at line 10 of file AOObase.cxx.

00010                                                            {
00011     return m_associations.begin();
00012   }

std::vector< const IAOO * >::const_iterator Atlfast::AOObase::end (  )  const [virtual, inherited]

Implements Atlfast::IAOO.

Definition at line 14 of file AOObase.cxx.

00014                                                            {
00015     return m_associations.end();
00016   }

virtual bool Atlfast::AOObase::unAssociated (  )  const [inline, virtual, inherited]

A quick way to find out whether there are any associations at a ll.

Implements Atlfast::IAOO.

Definition at line 31 of file AOObase.h.

00031 { return m_associations.empty() ; }

virtual void Atlfast::AOObase::reset (  )  [inline, virtual, inherited]

zero the container

Implements Atlfast::IAOO.

Definition at line 32 of file AOObase.h.

00032 { m_associations.clear();}

void Atlfast::AOObase::dump ( const std::string &   )  const [virtual, inherited]

dump out debug info

Implements Atlfast::IAOO.

Definition at line 22 of file AOObase.cxx.

00022                                             {
00023     std::cout<<'\n'<<s<<"Associations: "
00024              <<std::setw(6)<<m_associations.size()
00025              <<std::string(53,' ')
00026              <<"AOObase"<<std::endl;
00027     //std::for_each(m_associations.begin(), 
00028     //    m_associations.end(), 
00029     //    AtlfastDumperObject("Associations", "   ")
00030     //    );
00031   }

virtual void Atlfast::AODNavigationImp::fillToken ( INavigationToken &   )  const [inline, virtual, inherited]

Reimplemented in Atlfast::Cluster, and Atlfast::Jet.

Definition at line 48 of file AODNavigationImp.h.

00048 { };

virtual void Atlfast::AODNavigationImp::fillToken ( INavigationToken &  ,
const boost::any &   
) const [inline, virtual, inherited]

Reimplemented in Atlfast::Cluster, and Atlfast::Jet.

Definition at line 49 of file AODNavigationImp.h.

00049 { };


Member Data Documentation

double Atlfast::TwoCptCell::m_ecalEt [private]

Definition at line 54 of file TwoCptCell.h.

double Atlfast::TwoCptCell::m_hcalEt [private]

total transverse energy deposited Ecal

Definition at line 55 of file TwoCptCell.h.

double Atlfast::TwoCptCell::m_eGenSum [private]

total transverse energy deposited Hcal

Definition at line 56 of file TwoCptCell.h.


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 13:00:24 2007 for AtlfastEvent by  doxygen 1.5.1