ATLAS Offline Software
Loading...
Searching...
No Matches
LArNoisyROSummNtuple.NoisyRO Class Reference
Inheritance diagram for LArNoisyROSummNtuple.NoisyRO:
Collaboration diagram for LArNoisyROSummNtuple.NoisyRO:

Public Member Functions

 __init__ (self, ofile, hv)
 initialize (self)
 execute (self)
 finalize (self)
virtual StatusCode reinitialize () override
virtual StatusCode start () override
virtual StatusCode stop () override
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual const char * typeName () const override
 return the std::type_info name of the underlying py-component This is used by concrete implementations to connect a python component to its C++ counter-part
virtual PyObjectself () override
 return associated python object.
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

Public Attributes

 fout = ROOT.TFile(ofile,"RECREATE")
 addhv = hv
 sg = PyAthena.py_svc('StoreGateSvc')
bool has_offID = False
bool is_init = False
 offlineID = self.detStore['CaloCell_ID']
int evtid = 0
int bcid = 0
int maxvec = 100
 aevtid = array('L',[self.evtid])
 abcid = array('I',[self.bcid])
 badFEBPart = array('H',[0])
 badWFFEBPart = array('H',[0])
 SatMediumPart = array('H',[0])
 SatTightPart = array('H',[0])
 MNBLoosePart = array('H',[0])
 MNBTightPart = array('H',[0])
 MNBTight_PsVetoPart = array('H',[0])
 nbad = array('I',[0])
 idvec = array('i',self.maxvec*[-1])
 nMNBTight = array('I',[0])
 MNBTightvec = array('i',self.maxvec*[-1])
 nMNBLoose = array('I',[0])
 MNBLoosevec = array('i',self.maxvec*[-1])
 nMNBTight_PsVeto = array('I',[0])
 MNBTight_PsVetovec = array('i',self.maxvec*[-1])
 nt = ROOT.TTree("mytree","mytree")
 hvLinesPart = array('H',[0])
 nhv = array('I',[0])
 hvLinesvec = array('i',self.maxvec*[-1])

Protected Member Functions

virtual bool setPyAttr (PyObject *pyobj) override
 attach the C++ component to its python cousin
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.

Protected Attributes

PyObjectm_self
 Pointer to self (from the python world).

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

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

Definition at line 20 of file LArNoisyROSummNtuple.py.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ __init__()

LArNoisyROSummNtuple.NoisyRO.__init__ ( self,
ofile,
hv )

Definition at line 21 of file LArNoisyROSummNtuple.py.

21 def __init__(self,ofile,hv):
22 super(NoisyRO,self).__init__()
23 self.fout = ROOT.TFile(ofile,"RECREATE")
24 self.addhv=hv
25

Member Function Documentation

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

LArNoisyROSummNtuple.NoisyRO.execute ( self)

Definition at line 33 of file LArNoisyROSummNtuple.py.

33 def execute (self):
34 if self.detStore is None:
35 self.detStore = PyAthena.py_svc('DetectorStore')
36 if self.detStore is None:
37 print("Failed to get DetectorStore")
38 return 0
39 if not self.has_offID:
40 self.offlineID = self.detStore['CaloCell_ID']
41 if self.offlineID is None:
42 print("Failed to get CaloCell_ID")
43 return 0
44 EI = self.sg['EventInfo']
45 if EI is None:
46 self.msg.warning("Failed to get EventInfo")
47 self.evtid=0
48 self.bcid=0
49 else:
50 self.evtid=EI.eventNumber()
51 self.bcid=EI.bcid()
52
53 if not self.is_init:
54 self.msg.debug("Doing NoisyRO Ttree init")
55 self.maxvec=100
56 self.aevtid=array('L',[self.evtid])
57 self.abcid=array('I',[self.bcid])
58 self.badFEBPart=array('H',[0])
59 self.badWFFEBPart=array('H',[0])
60 self.SatMediumPart=array('H',[0])
61 self.SatTightPart=array('H',[0])
62 self.MNBLoosePart=array('H',[0])
63 self.MNBTightPart=array('H',[0])
64 self.MNBTight_PsVetoPart=array('H',[0])
65 self.nbad = array('I',[0])
66 self.idvec = array('i',self.maxvec*[-1])
67 self.nMNBTight = array('I',[0])
68 self.MNBTightvec = array('i',self.maxvec*[-1])
69 self.nMNBLoose = array('I',[0])
70 self.MNBLoosevec = array('i',self.maxvec*[-1])
71 self.nMNBTight_PsVeto = array('I',[0])
72 self.MNBTight_PsVetovec = array('i',self.maxvec*[-1])
73 self.fout.cd()
74 self.nt = ROOT.TTree("mytree","mytree")
75 self.nt.SetDirectory(self.fout)
76 self.nt.Branch("Event",self.aevtid,"Event/l")
77 self.nt.Branch("BCID",self.abcid,"BCID/I")
78 self.nt.Branch("badFEBPart",self.badFEBPart,"badFEBPart/s")
79 self.nt.Branch("badWFFEBPart",self.badWFFEBPart,"badWFFEBPart/s")
80 self.nt.Branch("SatMediumPart",self.SatMediumPart,"SatMediumPart/s")
81 self.nt.Branch("SatTightPart",self.SatTightPart,"SatTightPart/s")
82 self.nt.Branch("MNBLoosePart",self.MNBLoosePart,"MNBLoosePart/s")
83 self.nt.Branch("MNBTightPart",self.MNBTightPart,"MNBTightPart/s")
84 self.nt.Branch("MNBTight_PsVetoPart",self.MNBTight_PsVetoPart,"MNBTight_PsVetoPart/s")
85 self.nt.Branch("nbad",self.nbad,"nbad/i")
86 self.nt.Branch("bad_febs",self.idvec,"bad_febs[nbad]/I")
87 self.nt.Branch("nMNBTight",self.nMNBTight,"nMNBTight/i")
88 self.nt.Branch("MNBTight_febs",self.MNBTightvec,"MNBTight_febs[nbad]/I")
89 self.nt.Branch("nMNBLoose",self.nMNBLoose,"nMNBLoose/i")
90 self.nt.Branch("MNBLoose_febs",self.MNBLoosevec,"MNBLoose_febs[nbad]/I")
91 self.nt.Branch("nMNBTight_PsVeto",self.nMNBTight_PsVeto,"nMNBTight_PsVeto/i")
92 self.nt.Branch("MNBTight_PsVeto_febs",self.MNBTight_PsVetovec,"MNBTight_PsVeto_febs[nbad]/I")
93 if self.addhv:
94 self.hvLinesPart=array('H',[0])
95 self.nhv = array('I',[0])
96 self.hvLinesvec = array('i',self.maxvec*[-1])
97 self.nt.Branch("hvLinesPart",self.hvLinesPart,"hvLinesPart/s")
98 self.nt.Branch("nhv",self.nhv,"nhv/i")
99 self.nt.Branch("hvLines_febs",self.hvLinesvec,"hvLines_febs[nbad]/I")
100
101 self.is_init=True
102 self.msg.debug(" Ttree init done")
103
104 Nro = self.sg['LArNoisyROSummary']
105 self.badFEBPart=Nro.BadFEBFlaggedPartitions()
106 print("badFEBPart: ",self.badFEBPart," ",Nro.BadFEBFlaggedPartitions())
107 self.badWFFEBPart[0]=Nro.BadFEB_WFlaggedPartitions()
108 self.SatMediumPart[0]=Nro.SatMediumFlaggedPartitions()
109 self.SatTightPart[0]=Nro.SatTightFlaggedPartitions()
110 self.MNBLoosePart[0]=Nro.MNBLooseFlaggedPartitions()
111 self.MNBTightPart[0]=Nro.MNBTightFlaggedPartitions()
112 self.MNBTight_PsVetoPart[0]=Nro.MNBTight_PsVetoFlaggedPartitions()
113 self.aevtid[0]=self.evtid
114 self.abcid[0]=self.bcid
115 hwvec=Nro.get_noisy_febs()
116 self.nbad[0]=hwvec.size()
117 if self.nbad[0] >= self.maxvec:
118 self.nbad[0]=self.maxvec
119 for i in range(0,self.nbad[0]):
120 self.idvec[i]=hwvec[i].get_identifier32().get_compact()
121
122 hwvec=Nro.get_MNBTight_febs()
123 self.nMNBTight[0]=hwvec.size()
124 if self.nMNBTight[0] >= self.maxvec:
125 self.nMNBTight[0]=self.maxvec
126 for i in range(0,self.nMNBTight[0]):
127 self.MNBTightvec[i]=hwvec[i].get_identifier32().get_compact()
128
129 hwvec=Nro.get_MNBLoose_febs()
130 self.nMNBLoose[0]=hwvec.size()
131 if self.nMNBLoose[0] >= self.maxvec:
132 self.nMNBLoose[0]=self.maxvec
133 for i in range(0,self.nMNBLoose[0]):
134 self.MNBLoosevec[i]=hwvec[i].get_identifier32().get_compact()
135
136 hwvec=Nro.get_MNBTight_PsVeto_febs()
137 self.nMNBTight_PsVeto[0]=hwvec.size()
138 if self.nMNBTight_PsVeto[0] >= self.maxvec:
139 self.nMNBTight_PsVeto[0]=self.maxvec
140 for i in range(0,self.nMNBTight_PsVeto[0]):
141 self.MNBTight_PsVetovec[i]=hwvec[i].get_identifier32().get_compact()
142
143 if self.addhv:
144 self.hvLinesPart[0]=Nro.HVlineFlaggedPartitions()
145 hwvec=Nro.get_noisy_hvlines()
146 self.nhv[0]=hwvec.size()
147 if self.nhv[0] >= self.maxvec:
148 self.nhv[0]=self.maxvec
149 for i in range(0,self.nhv[0]):
150 self.hvLinesvec[i]=hwvec[i].get_identifier32().get_compact()
151
152 self.nt.Fill()
153 return 1
154
const bool debug
void print(char *figname, TCanvas *c1)
STL class.

◆ 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:

◆ finalize()

LArNoisyROSummNtuple.NoisyRO.finalize ( self)

Definition at line 155 of file LArNoisyROSummNtuple.py.

155 def finalize (self):
156 self.fout.cd()
157 self.nt.Write()
158 self.fout.Close()
159 return 1
160
161

◆ initialize()

LArNoisyROSummNtuple.NoisyRO.initialize ( self)

Definition at line 26 of file LArNoisyROSummNtuple.py.

26 def initialize (self):
27 self.msg.debug("Doing NoisyRO init")
28 self.sg = PyAthena.py_svc('StoreGateSvc')
29 self.has_offID=False
30 self.is_init=False
31 return 1
32
void initialize()

◆ 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.

◆ reinitialize()

StatusCode Alg::reinitialize ( )
overridevirtualinherited

Definition at line 67 of file PyAthenaAlg.cxx.

68{
69 ATH_MSG_INFO("Re-Initializing " << name() << "...");
70 return PyAthena::callPyMethod( m_self, "sysReinitialize" );
71}
#define ATH_MSG_INFO(x)
PyObject * m_self
Pointer to self (from the python world).
Definition PyAthenaAlg.h:96

◆ 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 }

◆ self()

virtual PyObject * PyAthena::Alg::self ( )
inlineoverridevirtualinherited

return associated python object.

BORROWED reference.

Implements IPyComponent.

Definition at line 71 of file PyAthenaAlg.h.

71{ return m_self; }

◆ 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:

◆ setPyAttr()

bool Alg::setPyAttr ( PyObject * pyobj)
overrideprotectedvirtualinherited

attach the C++ component to its python cousin

Implements IPyComponent.

Definition at line 142 of file PyAthenaAlg.cxx.

143{
144 // now we tell the PyObject which C++ object it is the cousin of.
145 RootUtils::PyGILStateEnsure ensure;
146 PyObject* pyobj = TPython::CPPInstance_FromVoidPtr
147 ( (void*)this, this->typeName() );
148 if ( !pyobj ) {
149 PyErr_Clear();
150 // try PyAthena::Alg
151 pyobj = TPython::CPPInstance_FromVoidPtr ((void*)this, "PyAthena::Alg");
153 ("could not dyncast component [" << name() << "] to a python "
154 << "object of type [" << this->typeName() << "] (probably a missing "
155 << "dictionary)" << endmsg
156 << "fallback to [PyAthena::Alg]...");
157 }
158 if ( !pyobj ) {
159 PyErr_Clear();
160 ATH_MSG_WARNING("Could not dyncast component ["
161 << name() << "] to a pyobject of type ["
162 << this->typeName() << "]");
163 } else {
164 if ( -1 == PyObject_SetAttrString(o, "_cppHandle", pyobj) ) {
165 PyErr_Clear();
167 ("Could not attach C++ handle [" << name() << "] to its python "
168 << "cousin !");
169 if ( -1 == PyObject_SetAttrString(o, "_cppHandle", Py_None) ) {
170 PyErr_Clear();
172 ("could not attach a dummy C++ handle [" << name() << "] to its "
173 "python cousin !");
174 }
175 } else {
176 return true;
177 }
178 }
179 return false;
180}
#define endmsg
#define ATH_MSG_WARNING(x)
_object PyObject
virtual const char * typeName() const override
return the std::type_info name of the underlying py-component This is used by concrete implementation...

◆ start()

StatusCode Alg::start ( )
overridevirtualinherited

Definition at line 74 of file PyAthenaAlg.cxx.

75{
76 return PyAthena::callPyMethod( m_self, "sysStart" );
77}

◆ stop()

StatusCode Alg::stop ( )
overridevirtualinherited

Definition at line 80 of file PyAthenaAlg.cxx.

81{
82 return PyAthena::callPyMethod( m_self, "sysStop" );
83}

◆ 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 Alg::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 AthCommonAlgorithm< Gaudi::Algorithm >.

Definition at line 104 of file PyAthenaAlg.cxx.

105{
106 ServiceHandle<IPyComponentMgr> pyMgr
107 ( "PyAthena::PyComponentMgr/PyComponentMgr", name() );
108 if ( !pyMgr.retrieve().isSuccess() ) {
109 ATH_MSG_ERROR("Could not retrieve service [" << pyMgr.typeAndName()
110 << "] !!");
111 return StatusCode::FAILURE;
112 }
113
114 // first retrieve our python object cousin...
115 m_self = pyMgr->pyObject( this );
116
117 if ( m_self == Py_None ) {
118 ATH_MSG_ERROR("Wrapped PyObject is NONE !");
119 return StatusCode::FAILURE;
120 }
121
122 // re-route to usual sysInit...
124}
#define ATH_MSG_ERROR(x)
virtual StatusCode sysInitialize() 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.

◆ typeName()

const char * Alg::typeName ( ) const
overridevirtualinherited

return the std::type_info name of the underlying py-component This is used by concrete implementations to connect a python component to its C++ counter-part

Implements IPyComponent.

Definition at line 131 of file PyAthenaAlg.cxx.

132{
133 static const std::string tname = System::typeinfoName(typeid(*this));
134 return tname.c_str();
135}

◆ 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

◆ abcid

LArNoisyROSummNtuple.NoisyRO.abcid = array('I',[self.bcid])

Definition at line 57 of file LArNoisyROSummNtuple.py.

◆ addhv

LArNoisyROSummNtuple.NoisyRO.addhv = hv

Definition at line 24 of file LArNoisyROSummNtuple.py.

◆ aevtid

LArNoisyROSummNtuple.NoisyRO.aevtid = array('L',[self.evtid])

Definition at line 56 of file LArNoisyROSummNtuple.py.

◆ badFEBPart

LArNoisyROSummNtuple.NoisyRO.badFEBPart = array('H',[0])

Definition at line 58 of file LArNoisyROSummNtuple.py.

◆ badWFFEBPart

LArNoisyROSummNtuple.NoisyRO.badWFFEBPart = array('H',[0])

Definition at line 59 of file LArNoisyROSummNtuple.py.

◆ bcid

int LArNoisyROSummNtuple.NoisyRO.bcid = 0

Definition at line 48 of file LArNoisyROSummNtuple.py.

◆ evtid

int LArNoisyROSummNtuple.NoisyRO.evtid = 0

Definition at line 47 of file LArNoisyROSummNtuple.py.

◆ fout

LArNoisyROSummNtuple.NoisyRO.fout = ROOT.TFile(ofile,"RECREATE")

Definition at line 23 of file LArNoisyROSummNtuple.py.

◆ has_offID

bool LArNoisyROSummNtuple.NoisyRO.has_offID = False

Definition at line 29 of file LArNoisyROSummNtuple.py.

◆ hvLinesPart

LArNoisyROSummNtuple.NoisyRO.hvLinesPart = array('H',[0])

Definition at line 94 of file LArNoisyROSummNtuple.py.

◆ hvLinesvec

LArNoisyROSummNtuple.NoisyRO.hvLinesvec = array('i',self.maxvec*[-1])

Definition at line 96 of file LArNoisyROSummNtuple.py.

◆ idvec

LArNoisyROSummNtuple.NoisyRO.idvec = array('i',self.maxvec*[-1])

Definition at line 66 of file LArNoisyROSummNtuple.py.

◆ is_init

bool LArNoisyROSummNtuple.NoisyRO.is_init = False

Definition at line 30 of file LArNoisyROSummNtuple.py.

◆ 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_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_self

PyObject* PyAthena::Alg::m_self
protectedinherited

Pointer to self (from the python world).

Definition at line 96 of file PyAthenaAlg.h.

◆ 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.

◆ maxvec

int LArNoisyROSummNtuple.NoisyRO.maxvec = 100

Definition at line 55 of file LArNoisyROSummNtuple.py.

◆ MNBLoosePart

LArNoisyROSummNtuple.NoisyRO.MNBLoosePart = array('H',[0])

Definition at line 62 of file LArNoisyROSummNtuple.py.

◆ MNBLoosevec

LArNoisyROSummNtuple.NoisyRO.MNBLoosevec = array('i',self.maxvec*[-1])

Definition at line 70 of file LArNoisyROSummNtuple.py.

◆ MNBTight_PsVetoPart

LArNoisyROSummNtuple.NoisyRO.MNBTight_PsVetoPart = array('H',[0])

Definition at line 64 of file LArNoisyROSummNtuple.py.

◆ MNBTight_PsVetovec

LArNoisyROSummNtuple.NoisyRO.MNBTight_PsVetovec = array('i',self.maxvec*[-1])

Definition at line 72 of file LArNoisyROSummNtuple.py.

◆ MNBTightPart

LArNoisyROSummNtuple.NoisyRO.MNBTightPart = array('H',[0])

Definition at line 63 of file LArNoisyROSummNtuple.py.

◆ MNBTightvec

LArNoisyROSummNtuple.NoisyRO.MNBTightvec = array('i',self.maxvec*[-1])

Definition at line 68 of file LArNoisyROSummNtuple.py.

◆ nbad

LArNoisyROSummNtuple.NoisyRO.nbad = array('I',[0])

Definition at line 65 of file LArNoisyROSummNtuple.py.

◆ nhv

LArNoisyROSummNtuple.NoisyRO.nhv = array('I',[0])

Definition at line 95 of file LArNoisyROSummNtuple.py.

◆ nMNBLoose

LArNoisyROSummNtuple.NoisyRO.nMNBLoose = array('I',[0])

Definition at line 69 of file LArNoisyROSummNtuple.py.

◆ nMNBTight

LArNoisyROSummNtuple.NoisyRO.nMNBTight = array('I',[0])

Definition at line 67 of file LArNoisyROSummNtuple.py.

◆ nMNBTight_PsVeto

LArNoisyROSummNtuple.NoisyRO.nMNBTight_PsVeto = array('I',[0])

Definition at line 71 of file LArNoisyROSummNtuple.py.

◆ nt

LArNoisyROSummNtuple.NoisyRO.nt = ROOT.TTree("mytree","mytree")

Definition at line 74 of file LArNoisyROSummNtuple.py.

◆ offlineID

LArNoisyROSummNtuple.NoisyRO.offlineID = self.detStore['CaloCell_ID']

Definition at line 40 of file LArNoisyROSummNtuple.py.

◆ SatMediumPart

LArNoisyROSummNtuple.NoisyRO.SatMediumPart = array('H',[0])

Definition at line 60 of file LArNoisyROSummNtuple.py.

◆ SatTightPart

LArNoisyROSummNtuple.NoisyRO.SatTightPart = array('H',[0])

Definition at line 61 of file LArNoisyROSummNtuple.py.

◆ sg

LArNoisyROSummNtuple.NoisyRO.sg = PyAthena.py_svc('StoreGateSvc')

Definition at line 28 of file LArNoisyROSummNtuple.py.


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