test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
Alignment
src
AlignmentClusterFlag.cc
Go to the documentation of this file.
1
#include "
DataFormats/Alignment/interface/AlignmentClusterFlag.h
"
2
3
4
AlignmentClusterFlag::AlignmentClusterFlag
()
5
: detId_(0), hitFlag_(0)
6
{}
7
8
9
AlignmentClusterFlag::AlignmentClusterFlag
(
const
DetId
&
id
)
10
: detId_(id), hitFlag_(0)
11
{}
12
13
14
AlignmentClusterFlag::AlignmentClusterFlag
(
const
AlignmentClusterFlag
&acf)
15
: detId_(acf.detId_), hitFlag_(acf.hitFlag_)
16
{}
17
18
19
AlignmentClusterFlag::~AlignmentClusterFlag
()
20
{
21
//
22
}
23
24
bool
AlignmentClusterFlag::isTaken
()
const
25
{
26
return
((
hitFlag_
& (1<<0)) != 0);
27
}
28
29
30
bool
AlignmentClusterFlag::isOverlap
()
const
31
{
32
return
((
hitFlag_
& (1<<1)) != 0);
33
}
34
35
void
AlignmentClusterFlag::SetTakenFlag
()
36
{
37
hitFlag_
|= (1<<0);
38
}
39
40
void
AlignmentClusterFlag::SetOverlapFlag
()
41
{
42
hitFlag_
|= (1<<1);
43
}
44
45
void
AlignmentClusterFlag::SetDetId
(
const
DetId
&newdetid)
46
{
47
detId_
= newdetid;
48
}
AlignmentClusterFlag::~AlignmentClusterFlag
~AlignmentClusterFlag()
Definition:
AlignmentClusterFlag.cc:19
AlignmentClusterFlag::isOverlap
bool isOverlap() const
Definition:
AlignmentClusterFlag.cc:30
AlignmentClusterFlag::AlignmentClusterFlag
AlignmentClusterFlag()
Definition:
AlignmentClusterFlag.cc:4
AlignmentClusterFlag
Definition:
AlignmentClusterFlag.h:15
AlignmentClusterFlag::detId_
DetId detId_
Definition:
AlignmentClusterFlag.h:33
DetId
Definition:
DetId.h:18
AlignmentClusterFlag::isTaken
bool isTaken() const
Definition:
AlignmentClusterFlag.cc:24
AlignmentClusterFlag::SetOverlapFlag
void SetOverlapFlag()
Definition:
AlignmentClusterFlag.cc:40
AlignmentClusterFlag::hitFlag_
char hitFlag_
Definition:
AlignmentClusterFlag.h:34
AlignmentClusterFlag::SetTakenFlag
void SetTakenFlag()
Definition:
AlignmentClusterFlag.cc:35
AlignmentClusterFlag.h
AlignmentClusterFlag::SetDetId
void SetDetId(const DetId &newdetid)
Definition:
AlignmentClusterFlag.cc:45
Generated for CMSSW Reference Manual by
1.8.5