|
ATLAS Offline Software
|
#include <LArReadCells.h>
|
| LArReadCells (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~LArReadCells () |
|
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 > &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::Property< double > | m_etcut {this,"etCut",7500.,"Et cut to dump cells"} |
|
Gaudi::Property< double > | m_etcut2 {this,"etCut2",7500.,"Et cut to dump cells from second layer"} |
|
Gaudi::Property< std::string > | m_outStream {this, "output","SPLASH", "to which stream write the ntuple"} |
|
const CaloCell_ID * | m_calo_id = nullptr |
|
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_TCell |
|
std::vector< float > | m_EtaCell |
|
std::vector< float > | m_PhiCell |
|
std::vector< int > | m_LayerCell |
|
std::vector< int > | m_ProvCell |
|
std::vector< int > | m_QuaCell |
|
std::vector< int > | m_GainCell |
|
std::vector< int > | m_ChidCell |
|
std::vector< int > | m_HwidCell |
|
std::vector< std::array< float,32 > > | m_ADC |
|
SG::ReadCondHandleKey< LArOnOffIdMapping > | m_cablingKey {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"} |
|
SG::ReadCondHandleKey< ILArPedestal > | m_pedestalKey {this,"PedestalKey","LArPedestal","SG Key of Pedestal conditions object"} |
|
SG::ReadCondHandleKey< CaloDetDescrManager > | m_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"} |
|
const LArOnlineID * | m_lar_online_id = nullptr |
|
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 21 of file LArReadCells.h.
◆ StoreGateSvc_t
◆ LArReadCells()
LArReadCells::LArReadCells |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArReadCells()
LArReadCells::~LArReadCells |
( |
| ) |
|
|
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 LArReadCells::execute |
( |
| ) |
|
|
virtual |
Definition at line 93 of file LArReadCells.cxx.
99 ATH_MSG_ERROR(
"Do not have cabling object LArOnOffIdMapping" );
100 return StatusCode::FAILURE;
122 std::vector<const LArDigit*> IndexDigit;
124 IndexDigit.resize(nCell,
nullptr);
127 if (
evtStore()->contains<LArDigitContainer>(
"FREE")) {
131 for (; first_digit != end_digit; ++first_digit)
144 std::vector<int> iflag_cell;
145 iflag_cell.resize(nCell,0);
150 for (; first_cell != end_cell; ++first_cell)
154 double et = (*first_cell)->et();
163 myList.select((*first_cell)->eta(),(*first_cell)->phi(),0.10);
173 first_cell = cell_container->
begin();
174 for (; first_cell != end_cell; ++first_cell) {
179 if (iflag_cell[
index]==1 ){
199 if (barrel_ec<2 && pos_neg<2 &&
FT<32 && slot<16 &&
channel<128)
200 myid = (
channel) | (slot << 7) | (
FT<<11) | (pos_neg << 16) | (barrel_ec << 17);
207 pedestal = larPedestal->
pedestal(hwid,(*first_cell)->gain());
213 if (IndexDigit[
index]) {
214 const std::vector<short>& vSamples=(IndexDigit[
index])->samples();
229 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 LArReadCells::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode LArReadCells::initialize |
( |
| ) |
|
|
virtual |
Definition at line 47 of file LArReadCells.cxx.
52 m_tree =
new TTree(
"myTree",
"myTree");
72 m_tree->Branch(
"ADC",
m_ADC.data(),
"ADC[ncells][32]/F");
84 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> > LArReadCells::m_ADC |
|
private |
◆ m_bcid
int LArReadCells::m_bcid = 0 |
|
private |
◆ m_cablingKey
◆ m_calo_id
◆ m_caloMgrKey
◆ m_ChidCell
std::vector<int> LArReadCells::m_ChidCell |
|
private |
◆ m_detStore
◆ m_ECell
std::vector<float> LArReadCells::m_ECell |
|
private |
◆ m_error
int LArReadCells::m_error = 0 |
|
private |
◆ m_EtaCell
std::vector<float> LArReadCells::m_EtaCell |
|
private |
◆ m_etcut
Gaudi::Property<double> LArReadCells::m_etcut {this,"etCut",7500.,"Et cut to dump cells"} |
|
private |
◆ m_etcut2
Gaudi::Property<double> LArReadCells::m_etcut2 {this,"etCut2",7500.,"Et cut to dump cells from second layer"} |
|
private |
◆ m_eventNumber
int LArReadCells::m_eventNumber = 0 |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_GainCell
std::vector<int> LArReadCells::m_GainCell |
|
private |
◆ m_HwidCell
std::vector<int> LArReadCells::m_HwidCell |
|
private |
◆ m_lar_online_id
◆ m_LayerCell
std::vector<int> LArReadCells::m_LayerCell |
|
private |
◆ m_lbNumber
int LArReadCells::m_lbNumber = 0 |
|
private |
◆ m_ncells
int LArReadCells::m_ncells = 0 |
|
private |
◆ m_outStream
Gaudi::Property< std::string > LArReadCells::m_outStream {this, "output","SPLASH", "to which stream write the ntuple"} |
|
private |
◆ m_pedestalKey
◆ m_PhiCell
std::vector<float> LArReadCells::m_PhiCell |
|
private |
◆ m_ProvCell
std::vector<int> LArReadCells::m_ProvCell |
|
private |
◆ m_QuaCell
std::vector<int> LArReadCells::m_QuaCell |
|
private |
◆ m_runNumber
int LArReadCells::m_runNumber = 0 |
|
private |
◆ m_TCell
std::vector<float> LArReadCells::m_TCell |
|
private |
◆ m_tree
TTree* LArReadCells::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
Gaudi::Property< double > m_etcut
uint64_t eventNumber() const
The current event's event number.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< int > m_GainCell
const LArOnlineID * m_lar_online_id
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
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::ReadCondHandleKey< ILArPedestal > m_pedestalKey
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
@ LAr
The LAr calorimeter.
value_type get_compact() const
Get the compact id.
uint32_t runNumber() const
The current event's run number.
std::vector< std::array< float,32 > > m_ADC
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
@ Error
The sub-detector issued an error.
Gaudi::Property< std::string > m_outStream
std::vector< int > m_ProvCell
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
virtual StatusCode sysInitialize() override
Override sysInitialize.
std::vector< float > m_ECell
This class initializes the Calo (LAr and Tile) offline identifiers.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< int > m_LayerCell
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
uint32_t lumiBlock() const
The current event's luminosity block number.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< int > m_ChidCell
const CaloCell_ID * m_calo_id
const CaloCell_ID * getCaloCell_ID(void) const
Access to IdHelper.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
StatusCode initialize(bool used=true)
std::vector< float > m_EtaCell
Container class for CaloCell.
Class describing the basic event information.
std::vector< float > m_TCell
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataObjIDColl m_extendedExtraObjects
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
This class provides the client interface for accessing the detector description information common to...
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
std::vector< int > m_HwidCell
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.
AthAlgorithm()
Default constructor:
std::vector< int > m_QuaCell
std::vector< float > m_PhiCell
uint32_t bcid() const
The bunch crossing ID of the event.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Gaudi::Property< double > m_etcut2
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size