Atlfast::CalSectionReject Class Reference

#include <CalSectionReject.h>

List of all members.

Public Member Functions

 CalSectionReject (double etaMin, double etaMax, double phiMin, double phiMax)
 CalSectionReject (const CalSectionReject &other)
bool operator() (const ITransportedParticle *p)
bool operator() (const EPileupDeposit *p)
bool operator() (const GridletElement *p)
bool operator() (const Gridlet *p)
MsgStream & writeout (MsgStream &stream) const

Private Attributes

double m_etaMin
double m_etaMax
double m_phiMin
double m_phiMax


Detailed Description

Definition at line 44 of file CalSectionReject.h.


Constructor & Destructor Documentation

Atlfast::CalSectionReject::CalSectionReject ( double  etaMin,
double  etaMax,
double  phiMin,
double  phiMax 
)

Constructor, initialises limits

Definition at line 35 of file CalSectionReject.cxx.

00036                                                                   :
00037     m_etaMin(etaMin), m_etaMax(etaMax),
00038     m_phiMin(phiMin), m_phiMax(phiMax) {}
  

Atlfast::CalSectionReject::CalSectionReject ( const CalSectionReject other  ) 

Copy constructor

Definition at line 40 of file CalSectionReject.cxx.

00040                                                                  :
00041     m_etaMin(other.m_etaMin), m_etaMax(other.m_etaMax),
00042     m_phiMin(other.m_phiMin), m_phiMax(other.m_phiMax) {}


Member Function Documentation

bool Atlfast::CalSectionReject::operator() ( const ITransportedParticle p  ) 

Tests whether ITransportedParticle is within eta, phi bounds.

Definition at line 48 of file CalSectionReject.cxx.

00048                                                                  {
00049     double eta = p->eta();
00050     //double eta = ((p->particle())->momentum()).pseudoRapidity();
00051     ::Phi phi = p->phi();
00052     if(eta<=m_etaMin || eta > m_etaMax) {
00053       return true;
00054     }
00055     if(phi<=m_phiMin || phi > m_phiMax){
00056       return true;
00057     }
00058     return false; 
00059   }

bool Atlfast::CalSectionReject::operator() ( const EPileupDeposit p  ) 

Tests whether EPileupDeposit is within eta, phi bounds.

Definition at line 61 of file CalSectionReject.cxx.

00061                                                            {
00062     double eta = p->eta();
00063     ::Phi phi = p->phi();
00064     if(eta<=m_etaMin || eta > m_etaMax) return true;
00065     if(phi<=m_phiMin || phi > m_phiMax) return true;
00066     return false; 
00067   }

bool Atlfast::CalSectionReject::operator() ( const GridletElement *  p  ) 

Tests whether GridletElement is within eta, phi bounds.

Definition at line 69 of file CalSectionReject.cxx.

00069                                                            {
00070     double eta = p->eta();
00071     ::Phi phi = p->phi();
00072     if(eta<=m_etaMin || eta > m_etaMax) {return true;}
00073     if(phi<=m_phiMin || phi > m_phiMax) {return true;}
00074     return false; 
00075   }

bool Atlfast::CalSectionReject::operator() ( const Gridlet *  p  ) 

Tests whether Gridlet is within eta, phi bounds.

Definition at line 77 of file CalSectionReject.cxx.

00077                                                     {
00078     double eta = g->eta0();
00079     ::Phi phi = g->phi0();
00080     if(eta<=m_etaMin || eta > m_etaMax) return true;
00081     if(phi<=m_phiMin || phi > m_phiMax) return true;
00082     return false; 
00083   }

MsgStream & Atlfast::CalSectionReject::writeout ( MsgStream &  stream  )  const

Writes out information to MsgStream (not implemented).

Definition at line 85 of file CalSectionReject.cxx.

00085                                                               {
00086     stream<<setiosflags(ios::fixed);
00087     stream<<setprecision(3);
00088     stream<<"Lower limits (phi, eta):"<<endreq;
00089     stream<< m_phiMin <<" "<<m_etaMin<<endreq;
00090     stream<<"Upper limit (phi, eta):"<<endreq;
00091     stream<< m_phiMax <<" "<<m_etaMax<<endreq;
00092     return stream;
00093   }


Member Data Documentation

double Atlfast::CalSectionReject::m_etaMin [private]

Definition at line 66 of file CalSectionReject.h.

double Atlfast::CalSectionReject::m_etaMax [private]

Definition at line 67 of file CalSectionReject.h.

double Atlfast::CalSectionReject::m_phiMin [private]

Definition at line 68 of file CalSectionReject.h.

double Atlfast::CalSectionReject::m_phiMax [private]

Definition at line 69 of file CalSectionReject.h.


The documentation for this class was generated from the following files:
Generated on Mon Sep 24 14:19:35 2007 for AtlfastAlgs by  doxygen 1.5.1