Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:49:13

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   AlignmentClusterFlag(const AlignmentClusterFlag &ahf);
0020 
0021   ~AlignmentClusterFlag();
0022 
0023   bool isTaken() const;
0024   bool isOverlap() const;
0025   void SetTakenFlag();
0026   void SetOverlapFlag();
0027   void SetDetId(const DetId &newdetid);
0028   const DetId &detId() const { return detId_; }
0029   char hitFlag() const { return hitFlag_; }
0030 
0031 private:
0032   DetId detId_;
0033   char hitFlag_;
0034 };
0035 #endif