src
DataFormats
Alignment
src
AlignmentClusterFlag.cc
Go to the documentation of this file.
1
#include "
DataFormats/Alignment/interface/AlignmentClusterFlag.h
"
2
3
AlignmentClusterFlag::AlignmentClusterFlag
() : detId_(0), hitFlag_(0) {}
4
5
AlignmentClusterFlag::AlignmentClusterFlag
(
const
DetId
&
id
) : detId_(
id
), hitFlag_(0) {}
6
7
bool
AlignmentClusterFlag::isTaken
()
const
{
return
((
hitFlag_
& (1 << 0)) != 0); }
8
9
bool
AlignmentClusterFlag::isOverlap
()
const
{
return
((
hitFlag_
& (1 << 1)) != 0); }
10
11
void
AlignmentClusterFlag::SetTakenFlag
() {
hitFlag_
|= (1 << 0); }
12
13
void
AlignmentClusterFlag::SetOverlapFlag
() {
hitFlag_
|= (1 << 1); }
14
15
void
AlignmentClusterFlag::SetDetId
(
const
DetId
&newdetid) {
detId_
= newdetid; }
AlignmentClusterFlag::AlignmentClusterFlag
AlignmentClusterFlag()
Definition:
AlignmentClusterFlag.cc:3
AlignmentClusterFlag::isTaken
bool isTaken() const
Definition:
AlignmentClusterFlag.cc:7
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:86
AlignmentClusterFlag::detId_
DetId detId_
Definition:
AlignmentClusterFlag.h:29
AlignmentClusterFlag::isOverlap
bool isOverlap() const
Definition:
AlignmentClusterFlag.cc:9
DetId
Definition:
DetId.h:17
AlignmentClusterFlag::SetOverlapFlag
void SetOverlapFlag()
Definition:
AlignmentClusterFlag.cc:13
AlignmentClusterFlag::hitFlag_
char hitFlag_
Definition:
AlignmentClusterFlag.h:30
AlignmentClusterFlag::SetTakenFlag
void SetTakenFlag()
Definition:
AlignmentClusterFlag.cc:11
AlignmentClusterFlag.h
AlignmentClusterFlag::SetDetId
void SetDetId(const DetId &newdetid)
Definition:
AlignmentClusterFlag.cc:15
Generated for CMSSW Reference Manual by
1.8.14