|
ATLAS Offline Software
|
#include <CaloRescaleNoise.h>
|
| CaloRescaleNoise (const std::string &name, ISvcLocator *pSvcLocator) |
| Standard Athena-Algorithm Constructor. More...
|
|
virtual | ~CaloRescaleNoise () |
| Default Destructor. More...
|
|
virtual StatusCode | initialize () override |
| standard Athena-Algorithm method More...
|
|
virtual StatusCode | execute () override |
| standard Athena-Algorithm method More...
|
|
virtual StatusCode | finalize () override |
| standard Athena-Algorithm method More...
|
|
virtual StatusCode | stop () override |
| standard Athena-Algorithm method More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
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 | 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 |
|
|
ServiceHandle< ITHistSvc > | m_thistSvc {this,"THistSvc","THistSvc"} |
|
const CaloCell_ID * | m_calo_id {} |
|
SG::ReadCondHandleKey< CaloNoise > | m_totalNoiseKey { this, "TotalNoiseKey", "totalNoise", "SG key for total noise" } |
|
SG::ReadCondHandleKey< CaloNoise > | m_elecNoiseKey { this, "ElecNoiseKey", "electronicNoise", "SG key for electronic noise" } |
|
SG::ReadCondHandleKey< CaloNoise > | m_pileupNoiseKey { this, "PileupNoiseKey", "pileupNoise", "SG key for pileup noise" } |
|
SG::ReadCondHandleKey< ILArHVScaleCorr > | m_scaleCorrKey { this, "LArHVScaleCorr", "LArHVScaleCorrRecomputed", "" } |
|
SG::ReadCondHandleKey< LArOnOffIdMapping > | m_cablingKey { this, "CablingKey", "LArOnOffIdMap", "SG Key of LArOnOffIdMapping object"} |
|
SG::ReadCondHandleKey< ILArHVScaleCorr > | m_onlineScaleCorrKey { this, "OnlineLArHVScaleCorr", "LArHVScaleCorr", "" } |
|
SG::ReadCondHandleKey< CaloDetDescrManager > | m_caloMgrKey { this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" } |
|
int | m_iCool {} |
|
int | m_SubHash {} |
|
int | m_Hash {} |
|
int | m_OffId {} |
|
float | m_eta {} |
|
float | m_phi {} |
|
int | m_layer {} |
|
int | m_Gain {} |
|
float | m_noise {} |
|
float | m_elecNoise {} |
|
float | m_pileupNoise {} |
|
float | m_elecNoiseRescaled {} |
|
TTree * | m_tree {} |
|
bool | m_absScaling {} |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 31 of file CaloRescaleNoise.h.
◆ StoreGateSvc_t
◆ CaloRescaleNoise()
CaloRescaleNoise::CaloRescaleNoise |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CaloRescaleNoise()
CaloRescaleNoise::~CaloRescaleNoise |
( |
| ) |
|
|
virtual |
◆ 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);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ 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()
StatusCode CaloRescaleNoise::execute |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 82 of file CaloRescaleNoise.cxx.
85 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
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode CaloRescaleNoise::finalize |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 224 of file CaloRescaleNoise.cxx.
226 return StatusCode::SUCCESS;
◆ initialize()
StatusCode CaloRescaleNoise::initialize |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 45 of file CaloRescaleNoise.cxx.
63 m_tree =
new TTree(
"mytree",
"Calo Noise ntuple");
78 ATH_MSG_INFO (
" end of CaloRescaleNoise::initialize " );
79 return StatusCode::SUCCESS;
◆ 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.
◆ 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()
◆ stop()
StatusCode CaloRescaleNoise::stop |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 89 of file CaloRescaleNoise.cxx.
91 const EventContext& ctx = Gaudi::Hive::currentContext();
96 return StatusCode::FAILURE;
99 FILE*
fp = std::fopen(
"calonoise.txt",
"w");
107 if( not caloMgrHandle.isValid()){
109 ATH_MSG_ERROR(
"CaloRescaleNoise::stop: caloMgrHandle invalid.");
110 return StatusCode::FAILURE;
149 int ii = (
int) (idSubHash);
154 m_OffId = (
int)(
id.get_identifier32().get_compact());
161 if (subCalo<3)
ngain=3;
168 hvcorr = scaleCorr->HVScaleCorr(hwid);
169 hvonline = onlineScaleCorr->HVScaleCorr(hwid);
195 if (iCool<48 && m_elecNoise>0. && hvonline > 1.) {
204 " layer/eta/phi " <<
m_layer <<
" " <<
m_eta <<
" " <<
m_phi <<
" OldNoise,NewNoise " <<
221 return StatusCode::SUCCESS;
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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_absScaling
bool CaloRescaleNoise::m_absScaling {} |
|
private |
◆ m_cablingKey
◆ m_calo_id
◆ m_caloMgrKey
◆ m_detStore
◆ m_elecNoise
float CaloRescaleNoise::m_elecNoise {} |
|
private |
◆ m_elecNoiseKey
◆ m_elecNoiseRescaled
float CaloRescaleNoise::m_elecNoiseRescaled {} |
|
private |
◆ m_eta
float CaloRescaleNoise::m_eta {} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_Gain
int CaloRescaleNoise::m_Gain {} |
|
private |
◆ m_Hash
int CaloRescaleNoise::m_Hash {} |
|
private |
◆ m_iCool
int CaloRescaleNoise::m_iCool {} |
|
private |
◆ m_layer
int CaloRescaleNoise::m_layer {} |
|
private |
◆ m_noise
float CaloRescaleNoise::m_noise {} |
|
private |
◆ m_OffId
int CaloRescaleNoise::m_OffId {} |
|
private |
◆ m_onlineScaleCorrKey
◆ m_phi
float CaloRescaleNoise::m_phi {} |
|
private |
◆ m_pileupNoise
float CaloRescaleNoise::m_pileupNoise {} |
|
private |
◆ m_pileupNoiseKey
◆ m_scaleCorrKey
◆ m_SubHash
int CaloRescaleNoise::m_SubHash {} |
|
private |
◆ m_thistSvc
ServiceHandle<ITHistSvc> CaloRescaleNoise::m_thistSvc {this,"THistSvc","THistSvc"} |
|
private |
◆ m_totalNoiseKey
◆ m_tree
TTree* CaloRescaleNoise::m_tree {} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool is_em_endcap(const Identifier id) const
test if the id belongs to the EM Endcap
int pos_neg(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
SG::ReadCondHandleKey< CaloNoise > m_pileupNoiseKey
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
bool is_hec(const Identifier id) const
test if the id belongs to the HEC
float eta_raw() const
cell eta_raw
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< ITHistSvc > m_thistSvc
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
bool is_em(const Identifier id) const
test if the id belongs to LArEM
virtual StatusCode sysInitialize() override
Override sysInitialize.
This class initializes the Calo (LAr and Tile) offline identifiers.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
::StatusCode StatusCode
StatusCode definition for legacy code.
int eta(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
IdentifierHash subcalo_cell_hash(const Identifier cellId, int &subCalo) const
create hash id from 'global' cell id
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
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
SG::ReadCondHandleKey< ILArHVScaleCorr > m_onlineScaleCorrKey
float m_elecNoiseRescaled
StatusCode initialize(bool used=true)
int phi(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
Identifier cell_id(const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, const int eta, const int phi) const
Make a cell (== channel) ID from constituting fields and subCalo index; for (Mini)FCAL,...
DataObjIDColl m_extendedExtraObjects
This class provides the client interface for accessing the detector description information common to...
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
#define ATH_MSG_WARNING(x)
SG::ReadCondHandleKey< ILArHVScaleCorr > m_scaleCorrKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
const CaloCell_ID * m_calo_id
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
float phi_raw() const
cell phi_raw
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size