![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
16 m_ntpath =
"/NTUPLES/FILE1/LARDIGITS";
32 if (
sc!=StatusCode::SUCCESS) {
39 if (
sc!=StatusCode::SUCCESS) {
46 if (
sc!=StatusCode::SUCCESS) {
53 if (
sc!=StatusCode::SUCCESS) {
60 if (
sc!=StatusCode::SUCCESS) {
67 if (
sc!=StatusCode::SUCCESS) {
80 return StatusCode::FAILURE;
86 if (
sc!=StatusCode::SUCCESS) {
103 return StatusCode::SUCCESS;
110 const EventContext& ctx = Gaudi::Hive::currentContext();
117 unsigned long long thisevent;
118 unsigned long thisbcid = 0;
119 unsigned long thisELVL1Id = 0;
121 thisevent = ctx.eventID().event_number();
133 thisELVL1Id = (*hdrCont->
begin())->ELVL1Id();
138 thisbcid = ctx.eventID().bunch_crossing_id();
144 return StatusCode::SUCCESS;
150 if(!hdlDigit.
cptr()) {
152 return StatusCode::SUCCESS;
155 for(
const LArDigit *digi : DigitContainer ){
161 unsigned int trueMaxSample = digi->nsamples();
169 ATH_MSG_WARNING(
"The number of digi samples in data is larger than the one specified by JO: " << trueMaxSample <<
" > " <<
m_Nsamples <<
" --> only " <<
m_Nsamples <<
" will be available in the ntuple " );
176 ATH_MSG_WARNING(
"The number of digi samples in data is lower than the one specified by JO: " << trueMaxSample <<
" > " <<
m_Nsamples <<
" --> only " << trueMaxSample <<
" will be available in the ntuple " );
199 for(
unsigned i = 0;
i<trueMaxSample;++
i)
m_samples[
i] = digi->samples().at(
i);
208 m_LB = ctx.eventID().lumi_block();
211 if (
sc != StatusCode::SUCCESS) {
218 return StatusCode::SUCCESS;
SG::ReadHandleKey< LArFebHeaderContainer > m_LArFebHeaderContainerKey
NTuple::Item< unsigned long long > m_IEventEvt
std::string find(const std::string &s)
return a remapped string
const_pointer_type cptr()
Dereference the pointer.
NTuple::Item< long > m_slot
LArDigits2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< unsigned int > m_Nsamples
Gaudi::Property< bool > m_fillBCID
Gaudi::Property< bool > m_fillEMB
Gaudi::Property< bool > m_fillLB
Gaudi::Property< bool > m_fillEndcap
NTuple::Item< unsigned long long > m_IEvent
const std::string & key() const
Return the StoreGate ID for the referenced object.
NTuple::Item< long > m_ntNsamples
NTuple::Item< unsigned long > m_ELVL1Id
NTuple::Item< long > m_barrel_ec
Gaudi::Property< std::vector< unsigned int > > m_FTlist
NTuple::Item< short > m_bcid
virtual StatusCode execute()
Liquid Argon digit base class.
NTuple::Item< short > m_gain
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Gaudi::Property< std::vector< unsigned int > > m_Slotlist
SG::ReadHandleKey< LArDigitContainer > m_contKey
bool fillFromIdentifier(const HWIdentifier &id)
virtual StatusCode initialize()
#define ATH_MSG_WARNING(x)
Gaudi::Property< bool > m_isSC
NTuple::Array< short > m_samples
Container class for LArDigit.
NTuple::Item< long > m_FT
NTuple::Item< short > m_LB
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.