ATLAS Offline Software
LArCell.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #include "LArRecEvent/LArCell.h"
9 
10 #include <iostream>
12 
14 { }
15 
16 
17 double LArCell::deltaR(const LArCell* other) const
18 {
19 
20  return P4Helpers::deltaR(this,other);
21 
22 }
23 
24 
25 void LArCell::print() const
26 {
27  std::cout << "ID = " << this->ID().get_compact()<< std::endl;
28  std::cout << "Energy = " << this->e()<< std::endl;
29  std::cout << "Eta = " << this->eta() << std::endl;
30  std::cout << "Phi = " << this->phi() << std::endl;
31 }
32 
33 std::unique_ptr<CaloCell> LArCell::clone() const
34 {
35  return std::make_unique<LArCell>(this->caloDDE(),
36  this->ID(),
37  this->energy(),
38  this->time(),
39  this->quality(),
40  this->provenance(),
41  this->gain());
42 }
43 
44 
45 bool LArCell::badcell() const
46 {
47  return LArProv::test(this->provenance(),LArProv::MASKED);
48 }
LArEM_ID.h
CaloCell::phi
virtual double phi() const override final
get phi (through CaloDetDescrElement)
Definition: CaloCell.h:359
Identifier::get_compact
value_type get_compact() const
Get the compact id.
CaloCell::e
virtual double e() const override final
get energy (data member) (synonym to method energy()
Definition: CaloCell.h:317
CaloCell::provenance
uint16_t provenance() const
get provenance (data member)
Definition: CaloCell.h:338
CaloCell::time
float time() const
get time (data member)
Definition: CaloCell.h:352
LArCell::print
void print(void) const
print all relevant info about this cell
Definition: LArCell.cxx:25
CaloCell::energy
double energy() const
get energy (data member)
Definition: CaloCell.h:311
LArCell::clone
virtual std::unique_ptr< CaloCell > clone() const override final
clone this cell into another one
Definition: LArCell.cxx:33
LArCell::~LArCell
virtual ~LArCell()
default destructor
Definition: LArCell.cxx:13
CaloCell::caloDDE
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
Definition: CaloCell.h:305
LArCell::deltaR
double deltaR(const LArCell *other) const
get deltaR (using 4mom helper) with respect to another cell
Definition: LArCell.cxx:17
P4Helpers::deltaR
double deltaR(const I4Momentum &p4, double eta, double phi)
from 1 I4Momentum
Definition: P4Helpers.h:209
CaloCell::quality
uint16_t quality() const
get quality (data member)
Definition: CaloCell.h:332
P4Helpers.h
LArProv::test
bool test(const uint16_t prov, const LArProvenance check)
Definition: LArProvenance.h:38
LArProv::MASKED
@ MASKED
Definition: LArProvenance.h:32
LArCell.h
CaloCell::gain
CaloGain::CaloGain gain() const
get gain (data member )
Definition: CaloCell.h:345
LArCell
Data object for LAr calorimeter readout cell.
Definition: LArCell.h:53
CaloCell::ID
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Definition: CaloCell.h:279
LArCell::badcell
virtual bool badcell() const override final
Check from provenance bit is cell is dead.
Definition: LArCell.cxx:45
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
LArProvenance.h
CaloCell::eta
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Definition: CaloCell.h:366