CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Crystal::crystalEqual Class Reference

#include <Crystal.h>

Public Member Functions

 crystalEqual (const DetId &cell)
 
bool operator() (const Crystal &xtal) const
 
 ~crystalEqual ()
 

Private Attributes

const DetIdref_
 

Detailed Description

Definition at line 119 of file Crystal.h.

Constructor & Destructor Documentation

◆ crystalEqual()

Crystal::crystalEqual::crystalEqual ( const DetId cell)
inline

Definition at line 121 of file Crystal.h.

121 : ref_(cell) { ; };

◆ ~crystalEqual()

Crystal::crystalEqual::~crystalEqual ( )
inline

Definition at line 122 of file Crystal.h.

122 { ; };

Member Function Documentation

◆ operator()()

bool Crystal::crystalEqual::operator() ( const Crystal xtal) const
inline

Definition at line 123 of file Crystal.h.

123 { return (ref_ == xtal.getDetId()); }

References Crystal::getDetId(), and ref_.

Member Data Documentation

◆ ref_

const DetId& Crystal::crystalEqual::ref_
private

Definition at line 126 of file Crystal.h.

Referenced by operator()().

Crystal::getDetId
const DetId & getDetId() const
get the DetId
Definition: Crystal.h:46
Crystal::crystalEqual::ref_
const DetId & ref_
Definition: Crystal.h:126