ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10#include <iostream>
12
15
16
17double LArCell::deltaR(const LArCell* other) const
18{
19
20 return P4Helpers::deltaR(this,other);
21
22}
23
24
25void 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
33std::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
45bool LArCell::badcell() const
46{
48}
float time() const
get time (data member)
Definition CaloCell.h:368
virtual double e() const override final
get energy (data member) (synonym to method energy()
Definition CaloCell.h:333
virtual double phi() const override final
get phi (through CaloDetDescrElement)
Definition CaloCell.h:375
double energy() const
get energy (data member)
Definition CaloCell.h:327
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
Definition CaloCell.h:321
uint16_t provenance() const
get provenance (data member)
Definition CaloCell.h:354
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Definition CaloCell.h:382
uint16_t quality() const
get quality (data member)
Definition CaloCell.h:348
CaloGain::CaloGain gain() const
get gain (data member )
Definition CaloCell.h:361
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Definition CaloCell.h:295
value_type get_compact() const
Get the compact id.
virtual bool badcell() const override final
Check from provenance bit is cell is dead.
Definition LArCell.cxx:45
virtual std::unique_ptr< CaloCell > clone() const override final
clone this cell into another one
Definition LArCell.cxx:33
double deltaR(const LArCell *other) const
get deltaR (using 4mom helper) with respect to another cell
Definition LArCell.cxx:17
void print(void) const
print all relevant info about this cell
Definition LArCell.cxx:25
virtual ~LArCell()
default destructor
Definition LArCell.cxx:13
LArCell()
default constructor (should not be used, only there for persistency reason)
Definition LArCell.h:151
bool test(const uint16_t prov, const LArProvenance check)
double deltaR(const I4Momentum &p4, double eta, double phi)
from 1 I4Momentum
Definition P4Helpers.h:209