|
ATLAS Offline Software
|
#include <CaloNoise2Ntuple.h>
|
| CaloNoise2Ntuple (const std::string &name, ISvcLocator *pSvcLocator) |
| Standard Athena-Algorithm Constructor. More...
|
|
virtual | ~CaloNoise2Ntuple () |
| 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< CaloDetDescrManager > | m_caloMgrKey {this,"CaloDetDescrManager","CaloDetDescrManager","SG Key for CaloDetDescrManager in the Condition Store" } |
|
std::string | m_treeName |
|
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 |
|
TTree * | m_tree |
|
int | m_runNumber |
|
int | m_lumiBlock |
|
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 28 of file CaloNoise2Ntuple.h.
◆ StoreGateSvc_t
◆ CaloNoise2Ntuple()
CaloNoise2Ntuple::CaloNoise2Ntuple |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CaloNoise2Ntuple()
CaloNoise2Ntuple::~CaloNoise2Ntuple |
( |
| ) |
|
|
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 CaloNoise2Ntuple::execute |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 75 of file CaloNoise2Ntuple.cxx.
82 return StatusCode::SUCCESS;
87 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 CaloNoise2Ntuple::finalize |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 181 of file CaloNoise2Ntuple.cxx.
183 return StatusCode::SUCCESS;
◆ initialize()
StatusCode CaloNoise2Ntuple::initialize |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 41 of file CaloNoise2Ntuple.cxx.
70 ATH_MSG_INFO (
" end of CaloNoise2Ntuple::initialize " );
71 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 CaloNoise2Ntuple::stop |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 91 of file CaloNoise2Ntuple.cxx.
95 const EventContext& ctx = Gaudi::Hive::currentContext();
137 int ii = (
int) (idSubHash);
142 m_OffId = (
int)(
id.get_identifier32().get_compact());
149 if (subCalo<3)
ngain=3;
178 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()
◆ action
◆ args
◆ AtlasVersion
CaloNoise2Ntuple.AtlasVersion |
◆ cfg
CaloNoise2Ntuple.cfg = MainServicesCfg(flags) |
◆ DatabaseInstance
CaloNoise2Ntuple.DatabaseInstance |
◆ dbstr [1/2]
CaloNoise2Ntuple.dbstr = None |
◆ dbstr [2/2]
string CaloNoise2Ntuple.dbstr = "sqlite://;schema="+args.database+";dbname=" + flags.IOVDb.DatabaseInstance |
◆ default
◆ doAlign
◆ doHVCorr
CaloNoise2Ntuple.doHVCorr |
◆ flags
CaloNoise2Ntuple.flags = initConfigFlags() |
◆ GlobalTag
CaloNoise2Ntuple.GlobalTag |
◆ help
◆ int
◆ isMC
◆ leftover
CaloNoise2Ntuple.leftover |
◆ m_calo_id
◆ m_caloMgrKey
◆ m_detStore
◆ m_elecNoise
float CaloNoise2Ntuple::m_elecNoise |
|
private |
◆ m_elecNoiseKey
◆ m_eta
float CaloNoise2Ntuple::m_eta |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_Gain
int CaloNoise2Ntuple::m_Gain |
|
private |
◆ m_Hash
int CaloNoise2Ntuple::m_Hash |
|
private |
◆ m_iCool
int CaloNoise2Ntuple::m_iCool |
|
private |
◆ m_layer
int CaloNoise2Ntuple::m_layer |
|
private |
◆ m_lumiBlock
int CaloNoise2Ntuple::m_lumiBlock |
|
private |
◆ m_noise
float CaloNoise2Ntuple::m_noise |
|
private |
◆ m_OffId
int CaloNoise2Ntuple::m_OffId |
|
private |
◆ m_phi
float CaloNoise2Ntuple::m_phi |
|
private |
◆ m_pileupNoise
float CaloNoise2Ntuple::m_pileupNoise |
|
private |
◆ m_pileupNoiseKey
◆ m_runNumber
int CaloNoise2Ntuple::m_runNumber |
|
private |
◆ m_SubHash
int CaloNoise2Ntuple::m_SubHash |
|
private |
◆ m_thistSvc
ServiceHandle<ITHistSvc> CaloNoise2Ntuple::m_thistSvc {this,"THistSvc","THistSvc"} |
|
private |
◆ m_totalNoiseKey
◆ m_tree
TTree* CaloNoise2Ntuple::m_tree |
|
private |
◆ m_treeName
std::string CaloNoise2Ntuple::m_treeName |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ MCCampaign
CaloNoise2Ntuple.MCCampaign |
◆ None
◆ OutputLevel
CaloNoise2Ntuple.OutputLevel |
◆ parser
CaloNoise2Ntuple.parser = argparse.ArgumentParser() |
◆ RunNumbers
CaloNoise2Ntuple.RunNumbers |
◆ sc
◆ sequenceName
CaloNoise2Ntuple.sequenceName |
◆ type
◆ x7fffffff
CaloNoise2Ntuple.x7fffffff |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
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
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
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
uint32_t runNumber() const
The current event's run number.
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< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
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.
const CaloCell_ID * m_calo_id
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
::StatusCode StatusCode
StatusCode definition for legacy code.
ServiceHandle< ITHistSvc > m_thistSvc
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)
uint32_t lumiBlock() const
The current event's luminosity block number.
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
StatusCode initialize(bool used=true)
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,...
Class describing the basic event information.
DataObjIDColl m_extendedExtraObjects
This class provides the client interface for accessing the detector description information common to...
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
SG::ReadCondHandleKey< CaloNoise > m_pileupNoiseKey
AthAlgorithm()
Default constructor:
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
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
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey