CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DataFormats/Alignment/src/AlignmentClusterFlag.cc

Go to the documentation of this file.
00001 #include "DataFormats/Alignment/interface/AlignmentClusterFlag.h"
00002 
00003 
00004 AlignmentClusterFlag::AlignmentClusterFlag()
00005   :  detId_(0), hitFlag_(0)
00006 {}
00007 
00008 
00009 AlignmentClusterFlag::AlignmentClusterFlag(const DetId &id)
00010   : detId_(id), hitFlag_(0)
00011 {}
00012 
00013 
00014 AlignmentClusterFlag::AlignmentClusterFlag(const AlignmentClusterFlag &acf)
00015   : detId_(acf.detId_), hitFlag_(acf.hitFlag_)
00016 {}
00017 
00018 
00019 AlignmentClusterFlag::~AlignmentClusterFlag()
00020 {
00021   //
00022 }
00023 
00024 bool AlignmentClusterFlag::isTaken() const
00025 {
00026   return ((hitFlag_ & (1<<0)) != 0);
00027 }
00028 
00029 
00030 bool AlignmentClusterFlag::isOverlap() const
00031 {
00032   return ((hitFlag_ & (1<<1)) != 0);
00033 }
00034 
00035 void AlignmentClusterFlag::SetTakenFlag()
00036 {
00037   hitFlag_ |= (1<<0);
00038 }
00039 
00040 void AlignmentClusterFlag::SetOverlapFlag()
00041 {
00042   hitFlag_ |= (1<<1);
00043 }
00044 
00045 void AlignmentClusterFlag::SetDetId(const DetId &newdetid)
00046 {
00047   detId_ = newdetid;
00048 }