ATLAS Offline Software
Loading...
Searching...
No Matches
LArCaliWaveFromTuple Class Reference

This algorithm allows to read wave forms from ntuples and builds a LArCaliWaveContainer containg the corresponding CaliWave. More...

#include <LArCaliWaveFromTuple.h>

Inheritance diagram for LArCaliWaveFromTuple:
Collaboration diagram for LArCaliWaveFromTuple:

Public Member Functions

StatusCode execute (const EventContext &) override final
 Execute method.
StatusCode stop () override
 AthAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< unsigned int > m_NPoints {this, "NPoints", 32, "number of points per measurement"}
 max number of points of the waveform in the ntuple
Gaudi::Property< unsigned int > m_skipPoints {this, "SkipPoints", 0, "How many points to skip"}
 the first m_skipPoints points of the waveform in the ntuple are skipped
Gaudi::Property< unsigned int > m_prefixPoints {this, "PrefixPoints", 0, "How many points to add on front"}
 make a PhysWave with the first m_prefixPoints as zeros
Gaudi::Property< unsigned int > m_flag {this, "LArWaveFlag", 20, "Flag to store with CaliWave"}
 flag for the PhysWave container
Gaudi::Property< std::string > m_root_file_name {this, "FileName", "", "which file to open"}
 input file name
Gaudi::Property< std::string > m_ntuple_name {this, "NtupleName", "CALIWAVE", "which ntuple to read"}
 ntuple name
Gaudi::Property< std::string > m_store_key {this, "StoreKey", "FROMTUPLE", "SG key of created container"}
 key of the PhysWave collection in Storegate
Gaudi::Property< std::string > m_groupingType {this, "GroupingType", "ExtendedFeedThrough", "container grouping type"}
 Grouping type. Default is Feedthrough.
Gaudi::Property< bool > m_isSC {this, "isSC", false, "Running for SuperCells ?"}
Gaudi::Property< float > m_dt {this, "DelayStep", 25./24., "what is the delay step in ns ?"}
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

This algorithm allows to read wave forms from ntuples and builds a LArCaliWaveContainer containg the corresponding CaliWave.

The root tree should contain the following branches :

Definition at line 20 of file LArCaliWaveFromTuple.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ AthAlgorithm()

AthAlgorithm::AthAlgorithm ( const std::string & name,
ISvcLocator * pSvcLocator )

Constructor.

Definition at line 31 of file AthAlgorithm.cxx.

11 :
12 AthCommonAlgorithm<Gaudi::Algorithm>( name, pSvcLocator )
13{
14 // default cardinality for non-reentrant algorithms
15 setProperty( "Cardinality", 1 ).orThrow("Unable to set property 'Cardinality'", name);
16}
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
AthCommonAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode LArCaliWaveFromTuple::execute ( const EventContext & ctx)
inlinefinaloverridevirtual

Execute method.

Implements AthAlgorithm.

Definition at line 25 of file LArCaliWaveFromTuple.h.

25{return StatusCode::SUCCESS;};

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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 & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ return false; }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ stop()

StatusCode LArCaliWaveFromTuple::stop ( )
override

Definition at line 27 of file LArCaliWaveFromTuple.cxx.

28{
29 ATH_MSG_INFO ( "... in stop()" );
30
31 const std::vector<int> FEBs={0x39000000, 0x39010000, 0x39018000, 0x39020000, 0x39028000, 0x39030000, 0x39038000, 0x39040000, 0x39048000, 0x39050000, 0x39058000, 0x39060000, 0x39068000};
32
33 TChain* outfit = new TChain(m_ntuple_name.value().c_str());
34 outfit->Add(m_root_file_name.value().c_str());
35
36 // This algorithm assumes the input NTuple in contains less than 32
37 // points. If the NTuple contains less than 32 points, the
38 // remaining points are automatically initialized to 0.
39 // Catch potential array index out of range error.
40 if ( m_NPoints > 32 ) {
41 ATH_MSG_WARNING ( " Too many points specified vs the expected content of the ntuple ! " );
42 ATH_MSG_WARNING ( " Only 32 will be used !");
43 m_NPoints = 32;
44 }
45
46 // loop over delay branch and find number of existing delays
47 Int_t delay;
48 Int_t febid;
49 outfit->SetBranchAddress("delay", &delay);
50 outfit->SetBranchAddress("febId", &febid);
51 Long64_t nentries = outfit->GetEntries();
52 std::map<int,int> tmpmap;
53 std::vector<int> febvec;
54 for(Long64_t i = 0; i < nentries; ++i ){
55 outfit->GetEntry(i);
56 tmpmap[delay]=delay;
57 if(std::find(febvec.begin(), febvec.end(), febid) == febvec.end()) febvec.push_back(febid);
58 }
59 unsigned ndelays = tmpmap.size();
60 if(febvec.size() > 13) {
61 ATH_MSG_ERROR("Too many FEBs in the ntuple, fix the code");
62 return StatusCode::FAILURE;
63 }
64
65 // variable names as in the Ntuple
66 Int_t febchannel;
67 Int_t gain;
68 Int_t dac;
69 std::vector<int> *Amplitude = nullptr;
70 outfit->SetBranchAddress("febChannel", &febchannel);
71 outfit->SetBranchAddress("gain", &gain);
72 outfit->SetBranchAddress("dac", &dac);
73 outfit->SetBranchAddress("ADC", &Amplitude);
74
75 // Create new LArCaliWaveContainer
76 auto larCaliWaveContainerNew = std::make_unique<LArCaliWaveContainer>();
77 ATH_CHECK ( larCaliWaveContainerNew->setGroupingType(m_groupingType, msg()) );
78 ATH_CHECK ( larCaliWaveContainerNew->initialize() );
79
80 // loop over entries in the Tuple, fill the waves sum and sum2
81 typedef std::map<HWIdentifier,std::map<std::pair<short, int> , std::vector<long int> > > Wavesmap_t;
82 Wavesmap_t wavesum;
83 Wavesmap_t wavesum2;
84 Wavesmap_t wavensum;
85 for ( Long64_t iev = 0; iev < nentries; ++iev ) {
86 outfit->GetEvent(iev);
87 //check gain validity
88 if(gain < CaloGain::LARHIGHGAIN || gain >= CaloGain::LARNGAINR4) continue; // bad gain value
89 // hack until real febId in ntuple:
90 auto it = std::find(febvec.begin(), febvec.end(), febid);
91 unsigned int index= it - febvec.begin();
92 HWIdentifier id( FEBs[index] | ((febchannel&0x7F)<<8) );
93 ATH_MSG_DEBUG ( "onlineid created " << std::hex << id << std::dec);
94 std::pair<short, int> idpair=std::make_pair(gain,dac);
95 // check if we have this HWid and gain.dac pair already
96 if( ! wavesum.count(id) || ! wavesum[id].count(idpair)) { // we have new combination
97 wavesum[id][idpair].reserve((m_NPoints + m_prefixPoints) * ndelays);
98 wavesum2[id][idpair].reserve((m_NPoints + m_prefixPoints) * ndelays);
99 wavensum[id][idpair].reserve((m_NPoints + m_prefixPoints) * ndelays);
100 for ( unsigned int i = 0; i < (m_NPoints + m_prefixPoints) * ndelays; ++i ){
101 wavesum[id][idpair][i]=0;
102 wavesum2[id][idpair][i]=0;
103 wavensum[id][idpair][i]=0;
104 }
105 }
106 unsigned upper = m_NPoints.value() > Amplitude->size() ? Amplitude->size() : m_NPoints.value();
107 for ( unsigned int i = 0; i < upper; ++i) {
108 if ( m_skipPoints > 0 && m_skipPoints <= i+1 ) continue;
109 wavesum[id][idpair][(m_prefixPoints+delay)*ndelays*m_NPoints + i] += Amplitude->at(i);
110 wavesum2[id][idpair][(m_prefixPoints+delay)*ndelays*m_NPoints + i] += Amplitude->at(i)*Amplitude->at(i);
111 wavensum[id][idpair][(m_prefixPoints+delay)*ndelays*m_NPoints + i] += 1;
112 }
113
114 }// loop over ntuple
115 ATH_MSG_INFO("Loop done");
116
117 // compute the average and fill LArCaliWaveVec
118 double dt=m_dt.value();
119 for(auto & [hwid, wmap] : wavesum) {
120 std::vector<LArCaliWaveVec> waveVec(CaloGain::LARNGAINR4);
121 for(auto dgkey : std::views::keys(wavesum[hwid])) {
122 auto dac = dgkey.second;
123 auto gain = dgkey.first;
124 std::vector<double> amp((m_NPoints + m_prefixPoints) * ndelays, 0.);
125 std::vector<double> err((m_NPoints + m_prefixPoints) * ndelays, 0.);
126 std::vector<int> ntrig((m_NPoints + m_prefixPoints) * ndelays, 0);
127 for(unsigned int i=0; i< (m_NPoints + m_prefixPoints) * ndelays; ++i) {
128 if(wavensum[hwid][dgkey][i] > 0) {
129 amp[i] = (double)wavesum[hwid][dgkey][i] / wavensum[hwid][dgkey][i];
130 err[i] = std::sqrt((double)wavesum2[hwid][dgkey][i] / wavensum[hwid][dgkey][i] - amp[i]*amp[i]);
131 ntrig[i] = wavensum[hwid][dgkey][i];
132 }
133 }
134 waveVec[gain].push_back(LArCaliWave(amp, err, ntrig, dt, dac,1, LArWave::meas));
135 }
136 // Add waveVec to container
137 for(unsigned ig = CaloGain::LARHIGHGAIN; ig < CaloGain::LARNGAINR4; ++ ig) {
138 larCaliWaveContainerNew->setPdata(hwid, waveVec[ig], (CaloGain::CaloGain)ig);
139 }
140 }
141
142
143 ATH_CHECK( detStore()->record(std::move(larCaliWaveContainerNew),m_store_key) );
144 ATH_MSG_INFO ( "LArCaliWaveFromTuple finalized!" );
145 return StatusCode::SUCCESS;
146}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
#define ATH_MSG_INFO(x,...)
double delay(std::size_t d)
int upper(int c)
const ServiceHandle< StoreGateSvc > & detStore() const
Gaudi::Property< std::string > m_ntuple_name
ntuple name
Gaudi::Property< unsigned int > m_NPoints
max number of points of the waveform in the ntuple
Gaudi::Property< std::string > m_root_file_name
input file name
Gaudi::Property< float > m_dt
Gaudi::Property< unsigned int > m_skipPoints
the first m_skipPoints points of the waveform in the ntuple are skipped
Gaudi::Property< std::string > m_groupingType
Grouping type. Default is Feedthrough.
Gaudi::Property< unsigned int > m_prefixPoints
make a PhysWave with the first m_prefixPoints as zeros
Gaudi::Property< std::string > m_store_key
key of the PhysWave collection in Storegate
@ LARNGAINR4
Definition CaloGain.h:20
@ LARHIGHGAIN
Definition CaloGain.h:18
str index
Definition DeMoScan.py:362

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dt

Gaudi::Property< float > LArCaliWaveFromTuple::m_dt {this, "DelayStep", 25./24., "what is the delay step in ns ?"}
private

Definition at line 47 of file LArCaliWaveFromTuple.h.

47{this, "DelayStep", 25./24., "what is the delay step in ns ?"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_flag

Gaudi::Property<unsigned int> LArCaliWaveFromTuple::m_flag {this, "LArWaveFlag", 20, "Flag to store with CaliWave"}
private

flag for the PhysWave container

Definition at line 37 of file LArCaliWaveFromTuple.h.

37{this, "LArWaveFlag", 20, "Flag to store with CaliWave"};

◆ m_groupingType

Gaudi::Property<std::string> LArCaliWaveFromTuple::m_groupingType {this, "GroupingType", "ExtendedFeedThrough", "container grouping type"}
private

Grouping type. Default is Feedthrough.

Definition at line 45 of file LArCaliWaveFromTuple.h.

45{this, "GroupingType", "ExtendedFeedThrough", "container grouping type"};

◆ m_isSC

Gaudi::Property< bool > LArCaliWaveFromTuple::m_isSC {this, "isSC", false, "Running for SuperCells ?"}
private

Definition at line 46 of file LArCaliWaveFromTuple.h.

46{this, "isSC", false, "Running for SuperCells ?"};

◆ m_NPoints

Gaudi::Property<unsigned int> LArCaliWaveFromTuple::m_NPoints {this, "NPoints", 32, "number of points per measurement"}
private

max number of points of the waveform in the ntuple

Definition at line 31 of file LArCaliWaveFromTuple.h.

31{this, "NPoints", 32, "number of points per measurement"};

◆ m_ntuple_name

Gaudi::Property<std::string> LArCaliWaveFromTuple::m_ntuple_name {this, "NtupleName", "CALIWAVE", "which ntuple to read"}
private

ntuple name

Definition at line 41 of file LArCaliWaveFromTuple.h.

41{this, "NtupleName", "CALIWAVE", "which ntuple to read"};

◆ m_prefixPoints

Gaudi::Property<unsigned int> LArCaliWaveFromTuple::m_prefixPoints {this, "PrefixPoints", 0, "How many points to add on front"}
private

make a PhysWave with the first m_prefixPoints as zeros

Definition at line 35 of file LArCaliWaveFromTuple.h.

35{this, "PrefixPoints", 0, "How many points to add on front"};

◆ m_root_file_name

Gaudi::Property<std::string> LArCaliWaveFromTuple::m_root_file_name {this, "FileName", "", "which file to open"}
private

input file name

Definition at line 39 of file LArCaliWaveFromTuple.h.

39{this, "FileName", "", "which file to open"};

◆ m_skipPoints

Gaudi::Property<unsigned int> LArCaliWaveFromTuple::m_skipPoints {this, "SkipPoints", 0, "How many points to skip"}
private

the first m_skipPoints points of the waveform in the ntuple are skipped

Definition at line 33 of file LArCaliWaveFromTuple.h.

33{this, "SkipPoints", 0, "How many points to skip"};

◆ m_store_key

Gaudi::Property<std::string> LArCaliWaveFromTuple::m_store_key {this, "StoreKey", "FROMTUPLE", "SG key of created container"}
private

key of the PhysWave collection in Storegate

Definition at line 43 of file LArCaliWaveFromTuple.h.

43{this, "StoreKey", "FROMTUPLE", "SG key of created container"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: