 |
ATLAS Offline Software
|
#include <LArReadSC.h>
|
| | LArReadSC (const std::string &name, ISvcLocator *pSvcLocator) |
| |
| virtual | ~LArReadSC () |
| |
| virtual StatusCode | initialize () |
| |
| virtual StatusCode | execute () |
| |
| virtual StatusCode | finalize () |
| |
| 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, V, H > &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 |
| |
|
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| | specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
| |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
| |
|
| Gaudi::Property< double > | m_etcut {this,"etCut",7500.,"Et cut to dump cells"} |
| |
| Gaudi::Property< std::string > | m_outStream {this, "output","SPLASH", "to which stream write the ntuple"} |
| |
| const CaloCell_SuperCell_ID * | m_calo_id = nullptr |
| |
| const LArOnline_SuperCellID * | m_lar_online_id = nullptr |
| |
| SG::ReadCondHandleKey< LArOnOffIdMapping > | m_cablingKey {this,"CablingKey","LArOnOffIdMapSC","SG Key of LArOnOffIdMapping object"} |
| |
| SG::ReadCondHandleKey< ILArPedestal > | m_pedestalKey {this,"PedestalKey","LArPedestalSC","SG Key of Pedestal conditions object"} |
| |
| SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > | m_caloMgrKey {this,"CaloDetDescrManager", "CaloSuperCellDetDescrManager"} |
| |
| SG::ReadHandleKey< LArDigitContainer > | m_contKey {this, "DigitsKey", "", "key for LArDigitContainer"} |
| |
| SG::ReadHandleKey< CaloCellContainer > | m_SCKey {this, "SCContainerKey", "", "key for SC cell container from raw"} |
| |
| SG::ReadHandleKey< CaloCellContainer > | m_SCRecoKey {this, "SCRecoContainerKey", "", "key for SC reco cell container"} |
| |
| TTree * | m_tree = nullptr |
| |
| int | m_runNumber = 0 |
| |
| int | m_lbNumber = 0 |
| |
| int | m_eventNumber = 0 |
| |
| int | m_bcid = 0 |
| |
| int | m_error = 0 |
| |
| int | m_ncells = 0 |
| |
| std::vector< float > | m_ECell |
| |
| std::vector< float > | m_EtaCell |
| |
| std::vector< float > | m_PhiCell |
| |
| std::vector< int > | m_LayerCell |
| |
| std::vector< int > | m_ProvCell |
| |
| std::vector< int > | m_ChidCell |
| |
| std::vector< int > | m_HwidCell |
| |
| std::vector< std::array< float,32 > > | m_ADC |
| |
| std::vector< float > | m_TCell |
| |
| std::vector< float > | m_ErecoCell |
| |
| 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 24 of file LArReadSC.h.
◆ StoreGateSvc_t
◆ LArReadSC()
| LArReadSC::LArReadSC |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArReadSC()
| LArReadSC::~LArReadSC |
( |
| ) |
|
|
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 LArReadSC::execute |
( |
| ) |
|
|
virtual |
Definition at line 92 of file LArReadSC.cxx.
94 const EventContext& ctx = Gaudi::Hive::currentContext();
99 ATH_MSG_ERROR(
"Do not have cabling object LArOnOffIdMapping" );
100 return StatusCode::FAILURE;
121 std::vector<const LArDigit*> IndexDigit;
123 IndexDigit.resize(nCell,
nullptr);
128 if(!hdlDigit.isValid()) {
131 digit_container = hdlDigit.cptr();
135 if(digit_container) {
138 for (; first_digit != end_digit; ++first_digit) {
148 if(!
cells.isValid()){
150 return StatusCode::FAILURE;
157 if(recocells.isValid()) recocell_container=recocells.cptr();
160 std::vector<int> iflag_cell;
161 iflag_cell.resize(nCell,0);
170 double et = (*cell)->et();
176 myList.select((*cell)->eta(),(*cell)->phi(),0.10);
192 if (iflag_cell[
index]==1 ){
207 pedestal = larPedestal->
pedestal(hwid,(*cell)->gain());
211 if (IndexDigit[
index]) {
212 const std::vector<short>& vSamples=(IndexDigit[
index])->samples();
221 if(recocell_container) {
236 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 LArReadSC::finalize |
( |
| ) |
|
|
virtual |
Definition at line 86 of file LArReadSC.cxx.
89 return StatusCode::SUCCESS;
◆ initialize()
| StatusCode LArReadSC::initialize |
( |
| ) |
|
|
virtual |
Definition at line 40 of file LArReadSC.cxx.
45 m_tree =
new TTree(
"myTree",
"myTree");
83 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()
◆ 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_ADC
| std::vector<std::array<float ,32> > LArReadSC::m_ADC |
|
private |
◆ m_bcid
| int LArReadSC::m_bcid = 0 |
|
private |
◆ m_cablingKey
◆ m_calo_id
◆ m_caloMgrKey
◆ m_ChidCell
| std::vector<int> LArReadSC::m_ChidCell |
|
private |
◆ m_contKey
◆ m_detStore
◆ m_ECell
| std::vector<float> LArReadSC::m_ECell |
|
private |
◆ m_ErecoCell
| std::vector<float> LArReadSC::m_ErecoCell |
|
private |
◆ m_error
| int LArReadSC::m_error = 0 |
|
private |
◆ m_EtaCell
| std::vector<float> LArReadSC::m_EtaCell |
|
private |
◆ m_etcut
| Gaudi::Property<double> LArReadSC::m_etcut {this,"etCut",7500.,"Et cut to dump cells"} |
|
private |
◆ m_eventNumber
| int LArReadSC::m_eventNumber = 0 |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
| DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_HwidCell
| std::vector<int> LArReadSC::m_HwidCell |
|
private |
◆ m_lar_online_id
◆ m_LayerCell
| std::vector<int> LArReadSC::m_LayerCell |
|
private |
◆ m_lbNumber
| int LArReadSC::m_lbNumber = 0 |
|
private |
◆ m_ncells
| int LArReadSC::m_ncells = 0 |
|
private |
◆ m_outStream
| Gaudi::Property< std::string > LArReadSC::m_outStream {this, "output","SPLASH", "to which stream write the ntuple"} |
|
private |
◆ m_pedestalKey
◆ m_PhiCell
| std::vector<float> LArReadSC::m_PhiCell |
|
private |
◆ m_ProvCell
| std::vector<int> LArReadSC::m_ProvCell |
|
private |
◆ m_runNumber
| int LArReadSC::m_runNumber = 0 |
|
private |
◆ m_SCKey
◆ m_SCRecoKey
◆ m_TCell
| std::vector<float> LArReadSC::m_TCell |
|
private |
◆ m_tree
| TTree* LArReadSC::m_tree = nullptr |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
virtual float pedestal(const HWIdentifier &id, int gain) const =0
Extra patterns decribing particle interation process.
Const iterator class for DataVector/DataList.
IdentifierHash calo_cell_hash(const Identifier cellId) const
create hash id from 'global' cell id
std::vector< int > m_ProvCell
uint64_t eventNumber() const
The current event's event number.
const LArOnline_SuperCellID * m_lar_online_id
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
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.
SG::ReadHandleKey< CaloCellContainer > m_SCKey
const std::string & key() const
Return the StoreGate ID for the referenced object.
float time() const
get time (data member)
@ LAr
The LAr calorimeter.
value_type get_compact() const
Get the compact id.
std::vector< int > m_ChidCell
uint32_t runNumber() const
The current event's run number.
std::vector< float > m_PhiCell
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)
@ Error
The sub-detector issued an error.
SG::ReadHandleKey< LArDigitContainer > m_contKey
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::vector< float > m_ErecoCell
std::vector< float > m_TCell
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.
size_type calo_cell_hash_max() const
cell 'global' hash table max size
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< double > m_etcut
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
uint32_t lumiBlock() const
The current event's luminosity block number.
virtual void renounce()=0
const CaloCell * findCell(const IdentifierHash theHash) const
fast find method given identifier hash.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::ReadHandleKey< CaloCellContainer > m_SCRecoKey
StatusCode initialize(bool used=true)
Container class for CaloCell.
std::vector< float > m_ECell
SG::ReadCondHandleKey< ILArPedestal > m_pedestalKey
Class describing the basic event information.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataObjIDColl m_extendedExtraObjects
std::vector< std::array< float,32 > > m_ADC
std::vector< float > m_EtaCell
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
std::vector< int > m_LayerCell
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > m_caloMgrKey
const CaloCell_SuperCell_ID * getCaloCell_SuperCell_ID(void) const
EventFlagErrorState errorState(EventFlagSubDet subDet) const
Get the error state for a particular sub-detector.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Container class for LArDigit.
const CaloCell_SuperCell_ID * m_calo_id
AthAlgorithm()
Default constructor:
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
uint32_t bcid() const
The bunch crossing ID of the event.
std::vector< int > m_HwidCell
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
Gaudi::Property< std::string > m_outStream