CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
AlignmentClusterFlag Class Reference

#include <AlignmentClusterFlag.h>

Public Member Functions

 AlignmentClusterFlag ()
 
 AlignmentClusterFlag (const DetId &id)
 
const DetIddetId () const
 
char hitFlag () const
 
bool isOverlap () const
 
bool isTaken () const
 
void SetDetId (const DetId &newdetid)
 
void SetOverlapFlag ()
 
void SetTakenFlag ()
 

Private Attributes

DetId detId_
 
char hitFlag_
 

Detailed Description

Class that defines a flag for each cluster used by the alignment The flag contains informations used to categorise and (eventually) decide whether to use the hit for the final alignment. This informations are bit-packed into a 8-bit word.

Original author: A. Bonato

Definition at line 15 of file AlignmentClusterFlag.h.

Constructor & Destructor Documentation

◆ AlignmentClusterFlag() [1/2]

AlignmentClusterFlag::AlignmentClusterFlag ( )

Definition at line 3 of file AlignmentClusterFlag.cc.

◆ AlignmentClusterFlag() [2/2]

AlignmentClusterFlag::AlignmentClusterFlag ( const DetId id)

Definition at line 5 of file AlignmentClusterFlag.cc.

Member Function Documentation

◆ detId()

const DetId& AlignmentClusterFlag::detId ( ) const
inline

Definition at line 25 of file AlignmentClusterFlag.h.

References detId_.

25 { return detId_; }

◆ hitFlag()

char AlignmentClusterFlag::hitFlag ( ) const
inline

Definition at line 26 of file AlignmentClusterFlag.h.

References hitFlag_.

26 { return hitFlag_; }

◆ isOverlap()

bool AlignmentClusterFlag::isOverlap ( ) const

Definition at line 9 of file AlignmentClusterFlag.cc.

References hitFlag_.

Referenced by AlignmentStats::analyze().

9 { return ((hitFlag_ & (1 << 1)) != 0); }

◆ isTaken()

bool AlignmentClusterFlag::isTaken ( ) const

Definition at line 7 of file AlignmentClusterFlag.cc.

References hitFlag_.

Referenced by HIPAlignmentAlgorithm::run().

7 { return ((hitFlag_ & (1 << 0)) != 0); }

◆ SetDetId()

void AlignmentClusterFlag::SetDetId ( const DetId newdetid)

Definition at line 15 of file AlignmentClusterFlag.cc.

References detId_.

15 { detId_ = newdetid; }

◆ SetOverlapFlag()

void AlignmentClusterFlag::SetOverlapFlag ( )

Definition at line 13 of file AlignmentClusterFlag.cc.

References hitFlag_.

Referenced by TkAlCaOverlapTagger::produce().

13 { hitFlag_ |= (1 << 1); }

◆ SetTakenFlag()

void AlignmentClusterFlag::SetTakenFlag ( )

Definition at line 11 of file AlignmentClusterFlag.cc.

References hitFlag_.

11 { hitFlag_ |= (1 << 0); }

Member Data Documentation

◆ detId_

DetId AlignmentClusterFlag::detId_
private

Definition at line 29 of file AlignmentClusterFlag.h.

Referenced by detId(), and SetDetId().

◆ hitFlag_

char AlignmentClusterFlag::hitFlag_
private

Definition at line 30 of file AlignmentClusterFlag.h.

Referenced by hitFlag(), isOverlap(), isTaken(), SetOverlapFlag(), and SetTakenFlag().