Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:46

0001 #include "DataFormats/Alignment/interface/AlignmentClusterFlag.h"
0002 
0003 AlignmentClusterFlag::AlignmentClusterFlag() : detId_(0), hitFlag_(0) {}
0004 
0005 AlignmentClusterFlag::AlignmentClusterFlag(const DetId &id) : detId_(id), hitFlag_(0) {}
0006 
0007 bool AlignmentClusterFlag::isTaken() const { return ((hitFlag_ & (1 << 0)) != 0); }
0008 
0009 bool AlignmentClusterFlag::isOverlap() const { return ((hitFlag_ & (1 << 1)) != 0); }
0010 
0011 void AlignmentClusterFlag::SetTakenFlag() { hitFlag_ |= (1 << 0); }
0012 
0013 void AlignmentClusterFlag::SetOverlapFlag() { hitFlag_ |= (1 << 1); }
0014 
0015 void AlignmentClusterFlag::SetDetId(const DetId &newdetid) { detId_ = newdetid; }