|
ATLAS Offline Software
|
#include <CBNT_BeamInstrumentation.h>
|
| CBNT_BeamInstrumentation (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~CBNT_BeamInstrumentation () |
|
virtual StatusCode | CBNT_initialize () override |
|
virtual StatusCode | CBNT_execute () override |
|
virtual StatusCode | CBNT_finalize () override |
|
virtual StatusCode | CBNT_clear () override |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
virtual StatusCode | pre_execute () |
|
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 |
|
Definition at line 12 of file CBNT_BeamInstrumentation.h.
◆ StoreGateSvc_t
◆ anonymous enum
◆ CBNT_BeamInstrumentation()
CBNT_BeamInstrumentation::CBNT_BeamInstrumentation |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CBNT_BeamInstrumentation()
CBNT_BeamInstrumentation::~CBNT_BeamInstrumentation |
( |
| ) |
|
|
virtual |
◆ add_name()
std::string CBNT_BeamInstrumentation::add_name |
( |
const char * |
base, |
|
|
const std::string & |
extension |
|
) |
| |
|
private |
◆ addBranch() [1/3]
template<class T >
void CBNT_TBRecBase::addBranch |
( |
const std::string & |
branchname, |
|
|
T & |
obj, |
|
|
const std::string & |
leaflist |
|
) |
| |
|
inlineprotectedinherited |
◆ addBranch() [2/3]
template<class T >
void CBNT_TBRecBase::addBranch |
( |
const std::string & |
branchname, |
|
|
T *& |
obj |
|
) |
| |
|
inlineprotectedinherited |
◆ addBranch() [3/3]
template<class T >
void CBNT_TBRecBase::addBranch |
( |
const std::string & |
branchname, |
|
|
T *& |
obj, |
|
|
int |
bufferSize, |
|
|
int |
splitLevel |
|
) |
| |
|
inlineprotectedinherited |
◆ CBNT_clear()
StatusCode CBNT_BeamInstrumentation::CBNT_clear |
( |
| ) |
|
|
overridevirtual |
◆ CBNT_execute()
StatusCode CBNT_BeamInstrumentation::CBNT_execute |
( |
| ) |
|
|
overridevirtual |
Reimplemented from CBNT_TBRecBase.
Definition at line 153 of file CBNT_BeamInstrumentation.cxx.
163 return StatusCode::SUCCESS;
165 return StatusCode::FAILURE;
172 const std::string
name = scint->getDetectorName();
176 unsigned NtupleVectorIndex;
177 for ( NtupleVectorIndex=0; NtupleVectorIndex!=nScint; NtupleVectorIndex++)
182 if (NtupleVectorIndex==nScint)
185 m_scint_adc[NtupleVectorIndex] = scint->getSignal();
186 m_scint_tdc[NtupleVectorIndex] = scint->getTimeSignal();
196 return StatusCode::SUCCESS;
198 return StatusCode::FAILURE;
204 for (
const TBBPC * bpc : *bpcc) {
205 std::string
name = bpc->getDetectorName();
206 unsigned NtupleVectorIndex;
207 for ( NtupleVectorIndex=0; NtupleVectorIndex!=nBPCs; NtupleVectorIndex++)
210 if (NtupleVectorIndex==nBPCs)
213 m_bpc_x[NtupleVectorIndex] = bpc->getXPos();
214 m_bpc_y[NtupleVectorIndex] = bpc->getYPos();
225 for (
const TBBPCRaw * bpcr : *bpccr) {
226 std::string
name = bpcr->getDetectorName();
227 unsigned NtupleVectorIndex;
228 for ( NtupleVectorIndex=0; NtupleVectorIndex!=nBPCs; NtupleVectorIndex++){
232 m_bpc_up[NtupleVectorIndex] = bpcr->getTDCUp();
233 m_bpc_down[NtupleVectorIndex] = bpcr->getTDCDown();
234 m_bpc_right[NtupleVectorIndex] = bpcr->getTDCRight();
235 m_bpc_left[NtupleVectorIndex] = bpcr->getTDCLeft();
250 return StatusCode::SUCCESS;
252 return StatusCode::FAILURE;
266 return StatusCode::SUCCESS;
268 return StatusCode::FAILURE;
296 return StatusCode::SUCCESS;
◆ CBNT_finalize()
StatusCode CBNT_BeamInstrumentation::CBNT_finalize |
( |
| ) |
|
|
overridevirtual |
◆ CBNT_initialize()
StatusCode CBNT_BeamInstrumentation::CBNT_initialize |
( |
| ) |
|
|
overridevirtual |
Reimplemented from CBNT_TBRecBase.
Definition at line 67 of file CBNT_BeamInstrumentation.cxx.
76 for (
unsigned i=0;
i<nScint;
i++) {
78 const std::string ADCItemNameDesc = ADCItemName +
"/F";
82 const std::string TDCItemNameDesc=TDCItemName+
"/F";
90 for (
unsigned i=0;
i<nBPCs;
i++) {
92 const std::string BPCxItemNameDesc=BPCxItemName+
"/F";
96 const std::string BPCyItemNameDesc=BPCyItemName+
"/F";
110 for (
unsigned i=0;
i<nBPCs;
i++) {
112 const std::string BPCupItemNameDesc=BPCupItemName+
"/F";
116 const std::string BPCdownItemNameDesc=BPCdownItemName+
"/F";
119 const std::string BPCrightItemNameDesc=BPCrightItemName+
"/F";
122 const std::string BPCleftItemNameDesc=BPCleftItemName+
"/F";
125 const std::string BPChorItemNameDesc=BPChorItemName+
"/F";
128 const std::string BPCverItemNameDesc=BPCverItemName+
"/F";
149 return StatusCode::SUCCESS;
◆ 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 CBNT_TBRecBase::execute |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 154 of file CBNT_TBRecBase.cxx.
164 *
m_log << MSG::ERROR <<
" Standard exception "
166 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
167 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
168 return StatusCode::FAILURE;
172 *
m_log << MSG::ERROR <<
" Unknown exception "
173 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
174 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
175 return StatusCode::FAILURE;
178 if (
sc.isFailure()) {
179 *
m_log << MSG::ERROR <<
"CBNT_pre_execute() failed. Disable !" <<
endmsg;
180 sc = this->setProperty(BooleanProperty(
"Enable",
false ) );
190 *
m_log << MSG::ERROR <<
" Standard exception "
192 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
193 return StatusCode::FAILURE;
196 *
m_log << MSG::ERROR <<
" Unknown exception "
197 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
198 return StatusCode::FAILURE;
◆ 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 CBNT_TBRecBase::finalize |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 205 of file CBNT_TBRecBase.cxx.
214 *
m_log << MSG::ERROR <<
" Standard exception "
216 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
219 *
m_log << MSG::ERROR <<
" Unknown exception "
220 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
◆ initialize()
StatusCode CBNT_TBRecBase::initialize |
( |
| ) |
|
|
overridevirtualinherited |
Definition at line 22 of file CBNT_TBRecBase.cxx.
35 (*m_log) << MSG::ERROR <<
"Could not access lar EM ID helper" <<
endmsg;
36 return StatusCode::FAILURE;
39 (*m_log) << MSG::ERROR <<
"Could not access lar FCAL ID helper" <<
endmsg;
40 return StatusCode::FAILURE;
43 (*m_log) << MSG::ERROR <<
"Could not access lar HEC ID helper" <<
endmsg;
44 return StatusCode::FAILURE;
49 (*m_log) << MSG::ERROR <<
"Could not get LArOnlineID helper !" <<
endmsg;
50 return StatusCode::FAILURE;
58 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.
◆ pre_execute()
StatusCode CBNT_TBRecBase::pre_execute |
( |
| ) |
|
|
virtualinherited |
Definition at line 61 of file CBNT_TBRecBase.cxx.
68 *
m_log << MSG::ERROR <<
"Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" <<
endmsg;
69 return StatusCode::FAILURE;
73 if (
i==std::string::npos) {
75 return StatusCode::FAILURE;
113 *
m_log << MSG::ERROR <<
" Standard exception "
115 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
118 *
m_log << MSG::ERROR <<
" Unknown exception "
119 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
124 *
m_log << MSG::ERROR <<
"CBNT_initialize() failed" <<
endmsg;
136 *
m_log << MSG::ERROR <<
" Standard exception "
138 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
141 *
m_log << MSG::ERROR <<
" Unknown exception "
142 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
145 if (
sc.isFailure()) {
146 *
m_log << MSG::ERROR <<
"CBNT_clear() failed" <<
endmsg;
150 return StatusCode::SUCCESS ;
◆ 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_bpc_adc_hor
float * CBNT_BeamInstrumentation::m_bpc_adc_hor |
|
private |
◆ m_bpc_adc_ver
float * CBNT_BeamInstrumentation::m_bpc_adc_ver |
|
private |
◆ m_bpc_down
float * CBNT_BeamInstrumentation::m_bpc_down |
|
private |
◆ m_bpc_left
float * CBNT_BeamInstrumentation::m_bpc_left |
|
private |
◆ m_bpc_names
std::vector<std::string> CBNT_BeamInstrumentation::m_bpc_names |
|
private |
◆ m_bpc_raw
bool CBNT_BeamInstrumentation::m_bpc_raw |
|
private |
◆ m_bpc_right
float * CBNT_BeamInstrumentation::m_bpc_right |
|
private |
◆ m_bpc_up
float* CBNT_BeamInstrumentation::m_bpc_up |
|
private |
◆ m_bpc_x
float * CBNT_BeamInstrumentation::m_bpc_x |
|
private |
◆ m_bpc_y
float * CBNT_BeamInstrumentation::m_bpc_y |
|
private |
◆ m_clock
float CBNT_BeamInstrumentation::m_clock |
|
private |
◆ m_containerKey1
std::string CBNT_BeamInstrumentation::m_containerKey1 |
|
private |
◆ m_containerKey2
std::string CBNT_BeamInstrumentation::m_containerKey2 |
|
private |
◆ m_containerKey3
std::string CBNT_BeamInstrumentation::m_containerKey3 |
|
private |
◆ m_containerKey4
std::string CBNT_BeamInstrumentation::m_containerKey4 |
|
private |
◆ m_containerKey5
std::string CBNT_BeamInstrumentation::m_containerKey5 |
|
private |
◆ m_detStore
◆ m_emId
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fcalId
◆ m_hecId
◆ m_initialized
bool CBNT_TBRecBase::m_initialized |
|
privateinherited |
◆ m_log
MsgStream* CBNT_TBRecBase::m_log |
|
protectedinherited |
◆ m_neverReturnFailure
bool CBNT_BeamInstrumentation::m_neverReturnFailure |
|
private |
◆ m_nt
TTree* CBNT_TBRecBase::m_nt |
|
protectedinherited |
◆ m_ntpath
std::string CBNT_TBRecBase::m_ntpath |
|
protectedinherited |
◆ m_ntTitle
std::string CBNT_TBRecBase::m_ntTitle |
|
protectedinherited |
◆ m_onlineId
◆ m_scint_adc
float* CBNT_BeamInstrumentation::m_scint_adc |
|
private |
◆ m_scint_names
std::vector<std::string> CBNT_BeamInstrumentation::m_scint_names |
|
private |
◆ m_scint_tdc
float * CBNT_BeamInstrumentation::m_scint_tdc |
|
private |
◆ m_trig
int CBNT_BeamInstrumentation::m_trig |
|
private |
◆ m_trig_array
bool CBNT_BeamInstrumentation::m_trig_array |
|
private |
◆ m_trig_id
int CBNT_BeamInstrumentation::m_trig_id |
|
private |
◆ m_trig_sel
std::vector<long>* CBNT_BeamInstrumentation::m_trig_sel |
|
private |
◆ m_triggflag
std::vector<unsigned int> CBNT_BeamInstrumentation::m_triggflag |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
virtual StatusCode CBNT_finalize()
raw data class for BPC measurement
const LArEM_ID * em_idHelper() const
access to EM idHelper
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const LArOnlineID * m_onlineId
virtual StatusCode CBNT_clear()
virtual StatusCode CBNT_initialize()
virtual StatusCode CBNT_execute()
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< unsigned int > m_triggflag
std::string m_containerKey5
unsigned int getTriggerWord() const
std::vector< long > * m_trig_sel
std::vector< std::string > m_scint_names
std::vector< std::string > m_bpc_names
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
std::string add_name(const char *base, const std::string &extension)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
bool m_neverReturnFailure
virtual StatusCode sysInitialize() override
Override sysInitialize.
const LArFCAL_ID * m_fcalId
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
void addBranch(const std::string &branchname, T &obj, const std::string &leaflist)
Helper class for offline cell identifiers.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
CBNT_TBRecBase(const std::string &name, ISvcLocator *pSvcLocator)
const LArHEC_ID * m_hecId
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
DataObjIDColl m_extendedExtraObjects
std::string m_containerKey3
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode pre_execute()
std::string m_containerKey1
std::string m_containerKey2
std::string m_containerKey4
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper