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) { ; };
const DetId & ref_
Definition: Crystal.h:126

◆ ~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.

References Crystal::getDetId(), and ref_.

123 { return (ref_ == xtal.getDetId()); }
const DetId & getDetId() const
get the DetId
Definition: Crystal.h:46
const DetId & ref_
Definition: Crystal.h:126

Member Data Documentation

◆ ref_

const DetId& Crystal::crystalEqual::ref_
private

Definition at line 126 of file Crystal.h.

Referenced by operator()().