Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DataFormats_LaserAlignment_AlignmentClusterFlag_h
0002 #define DataFormats_LaserAlignment_AlignmentClusterFlag_h
0003 
0004 #include "DataFormats/DetId/interface/DetId.h"
0005 
0006 /**
0007  * Class that defines a flag for each cluster used by the alignment
0008  * The flag contains informations used to categorise and (eventually)
0009  * decide whether to use the hit for the final alignment. This informations
0010  * are bit-packed into a 8-bit word.
0011  *
0012  * Original author: A. Bonato
0013  */
0014 
0015 class AlignmentClusterFlag {
0016 public:
0017   AlignmentClusterFlag();
0018   AlignmentClusterFlag(const DetId &id);
0019 
0020   bool isTaken() const;
0021   bool isOverlap() const;
0022   void SetTakenFlag();
0023   void SetOverlapFlag();
0024   void SetDetId(const DetId &newdetid);
0025   const DetId &detId() const { return detId_; }
0026   char hitFlag() const { return hitFlag_; }
0027 
0028 private:
0029   DetId detId_;
0030   char hitFlag_;
0031 };
0032 #endif