![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Add non linearity in calorimeter for test at L2.
More...
#include <LArNonLinearity.h>
|
| LArNonLinearity (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~LArNonLinearity () |
|
virtual StatusCode | initialize () override |
|
virtual void | MakeCorrection (CaloCell *theCell, const EventContext &ctx) const override |
|
virtual StatusCode | execute (CaloCellContainer *cellCollection, const EventContext &ctx) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Add non linearity in calorimeter for test at L2.
PACKAGE: offline/LArCalorimeter/LArCellRec
- Author
- G.Unal CREATED: August 2003
(non linearity = residuals of a linear calibration
fit, from L.Serin)
Definition at line 31 of file LArNonLinearity.h.
◆ StoreGateSvc_t
◆ LArNonLinearity()
LArNonLinearity::LArNonLinearity |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~LArNonLinearity()
LArNonLinearity::~LArNonLinearity |
( |
| ) |
|
|
virtualdefault |
◆ addenergy()
void CaloCellCorrection::addenergy |
( |
CaloCell * |
lar_cell, |
|
|
float |
energy |
|
) |
| |
|
staticprotectedinherited |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
Definition at line 58 of file CaloCellCorrection.cxx.
64 if (!cellCollection) {
65 ATH_MSG_ERROR(
"Cell Correction tool receives invalid cell Collection" );
66 return StatusCode::FAILURE;
79 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ initialize()
StatusCode LArNonLinearity::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
static const InterfaceID& CaloCellCorrection::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
◆ MakeCorrection()
void LArNonLinearity::MakeCorrection |
( |
CaloCell * |
theCell, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
overridevirtual |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ scaleenergy()
void CaloCellCorrection::scaleenergy |
( |
CaloCell * |
lar_cell, |
|
|
float |
scale |
|
) |
| |
|
staticprotectedinherited |
◆ setenergy()
void CaloCellCorrection::setenergy |
( |
CaloCell * |
lar_cell, |
|
|
float |
energy |
|
) |
| |
|
staticprotectedinherited |
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_emax
const double LArNonLinearity::m_emax |
|
staticprivate |
◆ m_emID
◆ m_etatrans
const double LArNonLinearity::m_etatrans = 0.8 |
|
staticprivate |
◆ m_etrans
const double LArNonLinearity::m_etrans |
|
staticprivate |
◆ m_evtStore
◆ m_fcalID
◆ m_hecID
◆ m_p0
const double LArNonLinearity::m_p0 |
|
staticprivate |
Initial value:=
{{0.44e-2, 0.158}, {0.691e-3, 0.121},
{0.166e-1, 0.226}, {0.347e-1, 0.753},
{0.869e-2, 0.269}, {0.422e-1, 0.3598}}
Definition at line 50 of file LArNonLinearity.h.
◆ m_p1
const double LArNonLinearity::m_p1 |
|
staticprivate |
Initial value:=
{{-0.16e-2/
GeV, -0.159e-1/
GeV}, {+0.379e-2/
GeV, -0.100e-1/
GeV},
{-0.105e-2/
GeV, -0.1559e-2/
GeV}, {-0.605e-2/
GeV, -0.452e-2/
GeV},
{+0.248e-2/
GeV, -0.252e-2/
GeV}, {-0.690e-2/
GeV, -0.881e-2/
GeV}}
Definition at line 51 of file LArNonLinearity.h.
◆ m_p2
const double LArNonLinearity::m_p2 |
|
staticprivate |
◆ m_p3
const double LArNonLinearity::m_p3 |
|
staticprivate |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
static const double m_emax[6]
static const double m_p3[6][2]
static const double m_p2[6][2]
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
static const double m_p0[6][2]
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
int sampling(const Identifier id) const
return sampling according to :
const LArFCAL_ID * m_fcalID
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
double energy() const
get energy (data member)
virtual void MakeCorrection(CaloCell *cellCollection, const EventContext &ctx) const =0
CaloCellCorrection(const std::string &type, const std::string &name, const IInterface *parent)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Data object for each calorimeter readout cell.
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
static void setenergy(CaloCell *lar_cell, float energy)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
static const double m_p1[6][2]
const LArHEC_ID * m_hecID
static const double m_etrans[6]
static const double m_etatrans
bool is_lar_em(Identifier id) const
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual double eta() const override final
get eta (through CaloDetDescrElement)