 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "Identifier/Identifier.h"
12 #include "CaloGeoHelpers/CaloSampling.h"
16 #include "GaudiKernel/ITHistSvc.h"
17 #include "GaudiKernel/ServiceHandle.h"
45 m_tree =
new TTree(
"myTree",
"myTree");
83 return StatusCode::SUCCESS;
89 return StatusCode::SUCCESS;
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);
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;
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
void select(double eta, double phi, double deta, double dphi)
uint64_t eventNumber() const
The current event's event number.
const_pointer_type cptr()
Dereference the pointer.
virtual StatusCode finalize()
virtual StatusCode initialize()
const LArOnline_SuperCellID * m_lar_online_id
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
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.
double energy() const
get energy (data member)
@ Error
The sub-detector issued an error.
SG::ReadHandleKey< LArDigitContainer > m_contKey
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
This class initializes the Calo (LAr and Tile) offline identifiers.
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
Helper class for offline supercell identifiers.
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode execute()
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 bool isValid() override final
Can the handle be successfully dereferenced?
const CaloCell * findCell(const IdentifierHash theHash) const
fast find method given identifier hash.
SG::ReadHandleKey< CaloCellContainer > m_SCRecoKey
StatusCode initialize(bool used=true)
LArReadSC(const std::string &name, ISvcLocator *pSvcLocator)
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.
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.
Container class for LArDigit.
const CaloCell_SuperCell_ID * m_calo_id
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