  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   45   , m_tileCablingService(0)
 
   67   ATH_MSG_INFO( 
"TileCellToTTL1 initialization completed");
 
   69   return StatusCode::SUCCESS;
 
   92   ATH_CHECK( ttl1CellContainer.
record(std::make_unique<TileTTL1CellContainer>()) );
 
  100   float ttTimeAve[32][64];      
 
  101   float ttCorrFact[32][64];     
 
  104   for (
int i = 0; 
i < 32; 
i++) {
 
  105     for (
int j = 0; j < 64; j++) {
 
  109       ttStatusCells[
i][j] = 0;
 
  110       ttStatusChans[
i][j] = 0;
 
  111       ttTimeAve[
i][j] = 0.0;
 
  112       ttCorrFact[
i][j] = 1.0; 
 
  127     if (!tilecell) 
continue;
 
  129     float cell_ene = 
cell->energy();
 
  130     float cell_time = 
cell->time();
 
  132     int bad_cell = tilecell->
badcell();
 
  134     bad_chan[0] = tilecell->
badch1();
 
  135     bad_chan[1] = tilecell->
badch2();
 
  141     for (
int ipmt = 0; ipmt < 2; ipmt++) {
 
  165       if (ttNpmt[ieta][iphi] > 0) {
 
  166         ttAmp[ieta][iphi] += cell_ene * 0.5;
 
  167         ttNpmt[ieta][iphi]++;
 
  168         ttStatusCells[ieta][iphi] += (
uint16_t) bad_cell;
 
  169         ttStatusChans[ieta][iphi] += (
uint16_t) bad_chan[ipmt];
 
  170         ttTimeAve[ieta][iphi] += cell_time;
 
  174         ttId[ieta][iphi] = tt_id;
 
  175         ttNpmt[ieta][iphi]++;
 
  176         ttAmp[ieta][iphi] = cell_ene * 0.5;
 
  177         ttStatusCells[ieta][iphi] = (
uint16_t) bad_cell;
 
  178         ttStatusChans[ieta][iphi] = (
uint16_t) bad_chan[ipmt];
 
  179         ttTimeAve[ieta][iphi] = cell_time;
 
  185   for (
int ieta = 0; ieta < 32; ieta++) {
 
  186     for (
int iphi = 0; iphi < 64; iphi++) {
 
  189       if (ttNpmt[ieta][iphi] == 0) 
continue;
 
  191       float time_ave = ttTimeAve[ieta][iphi] / ((
float) ttNpmt[ieta][iphi]);
 
  194       if (ttStatusChans[ieta][iphi] == ttNpmt[ieta][iphi])
 
  196       if (ttStatusCells[ieta][iphi] > 0)
 
  198       if (ttStatusChans[ieta][iphi] > 0)
 
  201       ttl1CellContainer->
push_back(std::make_unique<TileTTL1Cell>(ttId[ieta][iphi], 
 
  204                                                                   ttCorrFact[ieta][iphi], 
 
  214   return StatusCode::SUCCESS;
 
  221   return StatusCode::SUCCESS;
 
  
def retrieve(aClass, aKey=None)
 
virtual bool badcell(void) const override final
check if whole cell is bad (i.e.
 
const CaloLVL1_ID * m_TT_ID
 
Identifier pmt2tt_id(const Identifier &id) const
 
static const TileCablingService * getInstance()
get pointer to service instance
 
SG::ReadHandleKey< CaloCellContainer > m_cellContainerKey
 
bool badch1(void) const
check if first PMT is in bad channel list and masked
 
TileCellToTTL1(const std::string &name, ISvcLocator *pSvcLocator)
 
int sample(const Identifier &id) const
 
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
 
int phi(const Identifier id) const
return phi according to :
 
Handle class for recording to StoreGate.
 
::StatusCode StatusCode
StatusCode definition for legacy code.
 
bool badch2(void) const
check if second PMT is in bad channel list and masked
 
SG::WriteHandleKey< TileTTL1CellContainer > m_ttl1CellContainerKey
 
#define CHECK(...)
Evaluate an expression and check for errors.
 
bool is_tile(Identifier id) const
 
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
 
virtual bool isValid() override final
Can the handle be successfully dereferenced?
 
Helpers for checking error return status codes and reporting errors.
 
int eta(const Identifier id) const
return eta according to :
 
value_type push_back(value_type pElem)
Add an element to the end of the collection.
 
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
 
Data object for each calorimeter readout cell.
 
Identifier pmt_id(const Identifier &any_id) const
 
bool is_negative(const Identifier &id) const
 
Handle class for reading from StoreGate.
 
virtual ~TileCellToTTL1()
 
const TileCablingService * m_tileCablingService