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 AlignmentClusterFlag &ahf)
 
 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 ()
 
 ~AlignmentClusterFlag ()
 

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/3]

AlignmentClusterFlag::AlignmentClusterFlag ( )

Definition at line 3 of file AlignmentClusterFlag.cc.

3 : detId_(0), hitFlag_(0) {}

◆ AlignmentClusterFlag() [2/3]

AlignmentClusterFlag::AlignmentClusterFlag ( const DetId id)

Definition at line 5 of file AlignmentClusterFlag.cc.

5 : detId_(id), hitFlag_(0) {}

◆ AlignmentClusterFlag() [3/3]

AlignmentClusterFlag::AlignmentClusterFlag ( const AlignmentClusterFlag ahf)

Definition at line 7 of file AlignmentClusterFlag.cc.

8  : detId_(acf.detId_), hitFlag_(acf.hitFlag_) {}

◆ ~AlignmentClusterFlag()

AlignmentClusterFlag::~AlignmentClusterFlag ( )

Definition at line 10 of file AlignmentClusterFlag.cc.

10  {
11  //
12 }

Member Function Documentation

◆ detId()

const DetId& AlignmentClusterFlag::detId ( ) const
inline

Definition at line 28 of file AlignmentClusterFlag.h.

28 { return detId_; }

References detId_.

◆ hitFlag()

char AlignmentClusterFlag::hitFlag ( ) const
inline

Definition at line 29 of file AlignmentClusterFlag.h.

29 { return hitFlag_; }

References hitFlag_.

◆ isOverlap()

bool AlignmentClusterFlag::isOverlap ( ) const

Definition at line 16 of file AlignmentClusterFlag.cc.

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

References hitFlag_.

Referenced by AlignmentStats::analyze().

◆ isTaken()

bool AlignmentClusterFlag::isTaken ( ) const

Definition at line 14 of file AlignmentClusterFlag.cc.

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

References hitFlag_.

Referenced by HIPAlignmentAlgorithm::run().

◆ SetDetId()

void AlignmentClusterFlag::SetDetId ( const DetId newdetid)

Definition at line 22 of file AlignmentClusterFlag.cc.

22 { detId_ = newdetid; }

References detId_.

◆ SetOverlapFlag()

void AlignmentClusterFlag::SetOverlapFlag ( )

Definition at line 20 of file AlignmentClusterFlag.cc.

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

References hitFlag_.

Referenced by TkAlCaOverlapTagger::produce().

◆ SetTakenFlag()

void AlignmentClusterFlag::SetTakenFlag ( )

Definition at line 18 of file AlignmentClusterFlag.cc.

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

References hitFlag_.

Member Data Documentation

◆ detId_

DetId AlignmentClusterFlag::detId_
private

Definition at line 32 of file AlignmentClusterFlag.h.

Referenced by detId(), and SetDetId().

◆ hitFlag_

char AlignmentClusterFlag::hitFlag_
private

Definition at line 33 of file AlignmentClusterFlag.h.

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

AlignmentClusterFlag::detId_
DetId detId_
Definition: AlignmentClusterFlag.h:32
AlignmentClusterFlag::hitFlag_
char hitFlag_
Definition: AlignmentClusterFlag.h:33