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
AlignmentClusterFlag::AlignmentClusterFlag
(
const
AlignmentClusterFlag
&acf)
8
: detId_(acf.detId_), hitFlag_(acf.hitFlag_) {}
9
10
AlignmentClusterFlag::~AlignmentClusterFlag
() {
11
//
12
}
13
14
bool
AlignmentClusterFlag::isTaken
()
const
{
return
((
hitFlag_
& (1 << 0)) != 0); }
15
16
bool
AlignmentClusterFlag::isOverlap
()
const
{
return
((
hitFlag_
& (1 << 1)) != 0); }
17
18
void
AlignmentClusterFlag::SetTakenFlag
() {
hitFlag_
|= (1 << 0); }
19
20
void
AlignmentClusterFlag::SetOverlapFlag
() {
hitFlag_
|= (1 << 1); }
21
22
void
AlignmentClusterFlag::SetDetId
(
const
DetId
&newdetid) {
detId_
= newdetid; }
AlignmentClusterFlag::~AlignmentClusterFlag
~AlignmentClusterFlag()
Definition:
AlignmentClusterFlag.cc:10
AlignmentClusterFlag::AlignmentClusterFlag
AlignmentClusterFlag()
Definition:
AlignmentClusterFlag.cc:3
AlignmentClusterFlag::isTaken
bool isTaken() const
Definition:
AlignmentClusterFlag.cc:14
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:85
AlignmentClusterFlag
Definition:
AlignmentClusterFlag.h:15
AlignmentClusterFlag::detId_
DetId detId_
Definition:
AlignmentClusterFlag.h:32
AlignmentClusterFlag::isOverlap
bool isOverlap() const
Definition:
AlignmentClusterFlag.cc:16
DetId
Definition:
DetId.h:17
AlignmentClusterFlag::SetOverlapFlag
void SetOverlapFlag()
Definition:
AlignmentClusterFlag.cc:20
AlignmentClusterFlag::hitFlag_
char hitFlag_
Definition:
AlignmentClusterFlag.h:33
AlignmentClusterFlag::SetTakenFlag
void SetTakenFlag()
Definition:
AlignmentClusterFlag.cc:18
AlignmentClusterFlag.h
AlignmentClusterFlag::SetDetId
void SetDetId(const DetId &newdetid)
Definition:
AlignmentClusterFlag.cc:22
Generated for CMSSW Reference Manual by
1.8.14