ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRecEvent
src
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
"
7
#include "
CaloIdentifier/LArEM_ID.h
"
8
#include "
FourMomUtils/P4Helpers.h
"
9
10
#include <iostream>
11
#include "
LArElecCalib/LArProvenance.h
"
12
13
LArCell::~LArCell
()
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
}
LArCell.h
LArEM_ID.h
LArProvenance.h
P4Helpers.h
CaloCell::time
float time() const
get time (data member)
Definition
CaloCell.h:368
CaloCell::e
virtual double e() const override final
get energy (data member) (synonym to method energy()
Definition
CaloCell.h:333
CaloCell::phi
virtual double phi() const override final
get phi (through CaloDetDescrElement)
Definition
CaloCell.h:375
CaloCell::energy
double energy() const
get energy (data member)
Definition
CaloCell.h:327
CaloCell::caloDDE
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
Definition
CaloCell.h:321
CaloCell::provenance
uint16_t provenance() const
get provenance (data member)
Definition
CaloCell.h:354
CaloCell::eta
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Definition
CaloCell.h:382
CaloCell::quality
uint16_t quality() const
get quality (data member)
Definition
CaloCell.h:348
CaloCell::gain
CaloGain::CaloGain gain() const
get gain (data member )
Definition
CaloCell.h:361
CaloCell::ID
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Definition
CaloCell.h:295
Identifier::get_compact
value_type get_compact() const
Get the compact id.
LArCell::badcell
virtual bool badcell() const override final
Check from provenance bit is cell is dead.
Definition
LArCell.cxx:45
LArCell::clone
virtual std::unique_ptr< CaloCell > clone() const override final
clone this cell into another one
Definition
LArCell.cxx:33
LArCell::deltaR
double deltaR(const LArCell *other) const
get deltaR (using 4mom helper) with respect to another cell
Definition
LArCell.cxx:17
LArCell::print
void print(void) const
print all relevant info about this cell
Definition
LArCell.cxx:25
LArCell::~LArCell
virtual ~LArCell()
default destructor
Definition
LArCell.cxx:13
LArCell::LArCell
LArCell()
default constructor (should not be used, only there for persistency reason)
Definition
LArCell.h:151
LArProv::test
bool test(const uint16_t prov, const LArProvenance check)
Definition
LArProvenance.h:38
LArProv::MASKED
@ MASKED
Definition
LArProvenance.h:32
P4Helpers::deltaR
double deltaR(const I4Momentum &p4, double eta, double phi)
from 1 I4Momentum
Definition
P4Helpers.h:209
Generated on
for ATLAS Offline Software by
1.17.0