ATLAS Offline Software
L1CaloRdoEfexTob.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
5 
7 
8 #include <iomanip>
9 #include <iostream>
10 
11 //>>#include "channelMappings/CpmTowerMapping.h" // Use Efex mapping!!
12 
30 L1CaloRdoEfexTob::L1CaloRdoEfexTob( int crate, int module, int eta, int phi, int numSlices,
31  TobType tobType, TobSource source, int id, int fibre, int tobSeq )
32 : L1CaloRdoFexTob( crate, module, eta, phi, numSlices, tobType, source, id, fibre, tobSeq )
33 {
34  int fpga = (eta-1)/4;
35  if ( fpga < 0 )
36  fpga = 0;
37  if ( fpga > 3 )
38  fpga = 3;
39  int localeta = eta-4*fpga;
41  EfexCellMapping map( roi, crate, module, fpga, localeta, phi );
43 }
44 
45 void
47 {
48  std::cout << " Isolation: " << std::hex;
49  for ( size_t s = 0 ; s < numSlices() ; ++s )
50  {
51  std::cout << std::setw(2) << getIsol( s ) << " ";
52  }
53  std::cout << std::dec << std::endl;
54 }
55 
56 /*
57 bool
58 L1CaloRdoEfexTob::getOverflow( size_t slice ) const
59 {
60  return ( getFlag( slice ) & 0x10 ); // **FIXME**
61 }
62 
63 bool
64 L1CaloRdoEfexTob::getOverflow( ) const
65 {
66  return getOverflow( getL1aPos() );
67 }
68 */
69 
73 int
75 {
76  return ( getValue( slice ) & 0xffff );
77 }
78 
79 int
81 {
82  return getClusterEt( getL1aPos() );
83 }
84 
88 int
90 {
91  return ( ( getFlag( slice ) >> 18 ) & 0x3f );
92 }
93 
94 int
96 {
97  return getIsol( getL1aPos() );
98 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
EfexCellMapping::getDetectorRegion
L1CaloDetectorRegion getDetectorRegion() const
Definition: EfexCellMapping.cxx:73
L1CaloRdoEfexTob::infoSpecific
virtual void infoSpecific() const override
Definition: L1CaloRdoEfexTob.cxx:46
L1CaloRdo::getL1aPos
int getL1aPos() const
Definition: L1CaloRdo.cxx:131
L1CaloRdoEfexTob::L1CaloRdoEfexTob
L1CaloRdoEfexTob(int crate, int module, int eta, int phi, int numSlices, TobType tobType, TobSource source, int id=0, int fibre=0, int tobSeq=0)
Definition: L1CaloRdoEfexTob.cxx:30
python.PyAthena.module
module
Definition: PyAthena.py:131
EfexCellMapping::Roi
@ Roi
Definition: EfexCellMapping.h:17
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
L1CaloRdoEfexTob::getIsol
int getIsol() const
Definition: L1CaloRdoEfexTob.cxx:95
L1CaloRdo::numSlices
size_t numSlices() const
Definition: L1CaloRdo.cxx:204
EfexCellMapping::roiType
roiType
Definition: EfexCellMapping.h:17
L1CaloRdoFexTob::TobSource
TobSource
Definition: L1CaloRdoFexTob.h:15
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
EfexCellMapping.h
L1CaloRdoEfexTob::getClusterEt
int getClusterEt() const
Definition: L1CaloRdoEfexTob.cxx:80
L1CaloRdoEfexTob.h
L1CaloRdoFexTob
Definition: L1CaloRdoFexTob.h:12
L1CaloRdo::setRegion
void setRegion(const L1CaloDetectorRegion &region)
Definition: L1CaloRdo.cxx:283
copySelective.source
string source
Definition: copySelective.py:32
EfexCellMapping
Definition: EfexCellMapping.h:14
L1CaloRdo::getFlag
int getFlag() const
Definition: L1CaloRdo.cxx:125
L1CaloRdo::getValue
int getValue() const
Definition: L1CaloRdo.cxx:111
L1CaloRdoFexTob::TobType
TobType
Definition: L1CaloRdoFexTob.h:14