ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArTT_Sampling Class Reference

#include <LArTT_Sampling.h>

Collaboration diagram for LArTT_Sampling:

Public Member Functions

 LArTT_Sampling (const IdentifierHash &hash, unsigned int sam)
 
 LArTT_Sampling (unsigned int)
 
unsigned int combinedId ()
 
unsigned int sampling ()
 
IdentifierHash TT_id ()
 

Private Attributes

unsigned int m_id
 

Detailed Description

Definition at line 17 of file LArTT_Sampling.h.

Constructor & Destructor Documentation

◆ LArTT_Sampling() [1/2]

LArTT_Sampling::LArTT_Sampling ( const IdentifierHash hash,
unsigned int  sam 
)
inline

Definition at line 36 of file LArTT_Sampling.h.

38 {
39  unsigned int i=(unsigned int)hash;
40  m_id = (i<<2)+ sam;
41  return ;
42 }

◆ LArTT_Sampling() [2/2]

LArTT_Sampling::LArTT_Sampling ( unsigned int  id)
inline

Definition at line 46 of file LArTT_Sampling.h.

47 {
48  m_id = id;
49  return ;
50 }

Member Function Documentation

◆ combinedId()

unsigned int LArTT_Sampling::combinedId ( )
inline

Definition at line 53 of file LArTT_Sampling.h.

54 {
55  return m_id;
56 }

◆ sampling()

unsigned int LArTT_Sampling::sampling ( )
inline

Definition at line 59 of file LArTT_Sampling.h.

60 {
61  unsigned int id = m_id & 3;
62  return id;
63 }

◆ TT_id()

IdentifierHash LArTT_Sampling::TT_id ( )
inline

Definition at line 66 of file LArTT_Sampling.h.

67 {
68  unsigned int id = m_id >>2;
69  return IdentifierHash(id) ;
70 }

Member Data Documentation

◆ m_id

unsigned int LArTT_Sampling::m_id
private

Definition at line 31 of file LArTT_Sampling.h.


The documentation for this class was generated from the following file:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
LArTT_Sampling::m_id
unsigned int m_id
Definition: LArTT_Sampling.h:31
lumiFormat.i
int i
Definition: lumiFormat.py:85
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25