A multi-dimensional volume element to subdivide the detector into different calibration regions. More...
#include <SpaceVoxel.h>
Public Member Functions | |
virtual bool | contains (const double &eta, const double &phi, const double &energy) const |
virtual bool | contains (const double &eta, const double &phi, const double &energy, const bool &ecalValid, const bool &hcalValid) const |
virtual bool | containsEnergy (const double &energy) const |
virtual bool | containsEta (const double &eta) const |
virtual bool | containsPhi (const double &phi) const |
virtual bool | ecalValid () const |
void | getName (std::string &s) const |
virtual bool | hcalValid () const |
double | maxEnergy () const |
double | minEnergy () const |
bool | operator() (const SpaceVoxel &sv1, const SpaceVoxel &sv2) |
bool | operator() (const boost::shared_ptr< SpaceVoxel > &sv1, const boost::shared_ptr< SpaceVoxel > &sv2) |
void | print (std::ostream &s) const |
void | printMsg () |
SpaceVoxel (double etaBegin=0, double etaEnd=0, double phiBegin=0, double phiEnd=0, double energyBegin=0, double energyEnd=0, bool ecalValid=true, bool hcalValid=true) | |
virtual | ~SpaceVoxel () |
Private Attributes | |
bool | ecalValid_ |
bool | hcalValid_ |
double | myEnergyMax |
double | myEnergyMin |
double | myEtaMax |
double | myEtaMin |
double | myPhiMax |
double | myPhiMin |
Friends | |
std::ostream & | operator<< (std::ostream &s, const pftools::SpaceVoxel &sv) |
A multi-dimensional volume element to subdivide the detector into different calibration regions.
Definition at line 15 of file SpaceVoxel.h.
SpaceVoxel::SpaceVoxel | ( | double | etaBegin = 0 , |
double | etaEnd = 0 , |
||
double | phiBegin = 0 , |
||
double | phiEnd = 0 , |
||
double | energyBegin = 0 , |
||
double | energyEnd = 0 , |
||
bool | ecalValid = true , |
||
bool | hcalValid = true |
||
) |
Definition at line 6 of file SpaceVoxel.cc.
References gather_cfg::cout, ecalValid_, and hcalValid_.
|
virtual |
Definition at line 19 of file SpaceVoxel.cc.
|
virtual |
Definition at line 22 of file SpaceVoxel.cc.
References containsEnergy(), containsEta(), and containsPhi().
Referenced by contains().
|
virtual |
Definition at line 29 of file SpaceVoxel.cc.
References contains(), ecalValid_, and hcalValid_.
|
virtual |
Definition at line 56 of file SpaceVoxel.cc.
References myEnergyMax, and myEnergyMin.
Referenced by contains().
|
virtual |
Definition at line 37 of file SpaceVoxel.cc.
References myEtaMax, and myEtaMin.
Referenced by contains().
|
virtual |
Definition at line 46 of file SpaceVoxel.cc.
References myPhiMax, and myPhiMin.
Referenced by contains().
|
inlinevirtual |
void SpaceVoxel::getName | ( | std::string & | s | ) | const |
Definition at line 76 of file SpaceVoxel.cc.
References ecalValid_, hcalValid_, myEnergyMax, myEnergyMin, myEtaMax, myEtaMin, myPhiMax, myPhiMin, and toString().
|
inlinevirtual |
|
inline |
|
inline |
bool SpaceVoxel::operator() | ( | const SpaceVoxel & | sv1, |
const SpaceVoxel & | sv2 | ||
) |
bool pftools::SpaceVoxel::operator() | ( | const boost::shared_ptr< SpaceVoxel > & | sv1, |
const boost::shared_ptr< SpaceVoxel > & | sv2 | ||
) |
void SpaceVoxel::print | ( | std::ostream & | s | ) | const |
Definition at line 65 of file SpaceVoxel.cc.
References ecalValid_, hcalValid_, myEnergyMax, myEnergyMin, myEtaMax, myEtaMin, myPhiMax, and myPhiMin.
Referenced by pftools::operator<<().
|
inline |
Definition at line 61 of file SpaceVoxel.h.
References gather_cfg::cout.
|
friend |
|
private |
Definition at line 84 of file SpaceVoxel.h.
Referenced by contains(), ecalValid(), getName(), print(), and SpaceVoxel().
|
private |
Definition at line 85 of file SpaceVoxel.h.
Referenced by contains(), getName(), hcalValid(), print(), and SpaceVoxel().
|
private |
Definition at line 83 of file SpaceVoxel.h.
Referenced by containsEnergy(), getName(), maxEnergy(), and print().
|
private |
Definition at line 82 of file SpaceVoxel.h.
Referenced by containsEnergy(), getName(), minEnergy(), and print().
|
private |
Definition at line 79 of file SpaceVoxel.h.
Referenced by containsEta(), getName(), and print().
|
private |
Definition at line 78 of file SpaceVoxel.h.
Referenced by containsEta(), getName(), and print().
|
private |
Definition at line 81 of file SpaceVoxel.h.
Referenced by containsPhi(), getName(), and print().
|
private |
Definition at line 80 of file SpaceVoxel.h.
Referenced by containsPhi(), getName(), and print().