Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:50

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 AlignmentClusterFlag::AlignmentClusterFlag(const AlignmentClusterFlag &acf)
0008     : detId_(acf.detId_), hitFlag_(acf.hitFlag_) {}
0009 
0010 AlignmentClusterFlag::~AlignmentClusterFlag() {
0011   //
0012 }
0013 
0014 bool AlignmentClusterFlag::isTaken() const { return ((hitFlag_ & (1 << 0)) != 0); }
0015 
0016 bool AlignmentClusterFlag::isOverlap() const { return ((hitFlag_ & (1 << 1)) != 0); }
0017 
0018 void AlignmentClusterFlag::SetTakenFlag() { hitFlag_ |= (1 << 0); }
0019 
0020 void AlignmentClusterFlag::SetOverlapFlag() { hitFlag_ |= (1 << 1); }
0021 
0022 void AlignmentClusterFlag::SetDetId(const DetId &newdetid) { detId_ = newdetid; }