|
ATLAS Offline Software
|
Go to the documentation of this file.
40 return p1->energy() <
p2->energy();
72 ATH_MSG_INFO(
"TileCellVerify initialization completed" );
74 return StatusCode::SUCCESS;
87 int nCells1 = cellContainer1->
size();
88 int nCells2 = cellContainer2->
size();
92 if (nCells1 != nCells2) {
93 ATH_MSG_ERROR(
"The number of cells is not equal in the two cell "
97 return (StatusCode::SUCCESS);
101 vector<const CaloCell*> cells1;
102 vector<const CaloCell*> cells2;
108 cells1.push_back(
cell);
112 cells2.push_back(
cell);
120 bool bErrorFlag =
false;
121 bool bOnlyOnceFlag =
false;
123 for (
int i = 0;
i < nCells1; ++
i) {
129 cell1 = (*cellContainer1)[
i];
130 cell2 = (*cellContainer2)[
i];
135 if (id1 !=
id2) bErrorFlag =
true;
138 if (!bOnlyOnceFlag) {
141 msg(
MSG::VERBOSE) <<
"--------------------------------------------------------------------------------" <<
endmsg;
142 bOnlyOnceFlag =
true;
154 }
else if (bErrorFlag){
159 msg(
MSG::VERBOSE) <<
"--------------------------------------------------------------------------------" <<
endmsg;
170 ATH_MSG_INFO(
"TileCellVerify execution completed successfully" );
172 return StatusCode::SUCCESS;
179 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
TileCellVerify(const std::string &name, ISvcLocator *pSvcLocator)
bool msgLvl(const MSG::Level lvl) const
bool operator()(const CaloCell *p1, const CaloCell *p2)
SG::ReadHandleKey< CaloCellContainer > m_cellContainer1Key
const std::string & key() const
Return the StoreGate ID for the referenced object.
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
double energy() const
get energy (data member)
virtual ~TileCellVerify()
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Helpers for checking error return status codes and reporting errors.
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Data object for each calorimeter readout cell.
std::string to_string(const Identifier &id, int level=0) const
Handle class for reading from StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.
SG::ReadHandleKey< CaloCellContainer > m_cellContainer2Key