|
ATLAS Offline Software
|
#include <BCM_RDOAnalysis.h>
|
| BCM_RDOAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~BCM_RDOAnalysis () |
|
virtual StatusCode | initialize () override final |
|
virtual StatusCode | execute () override final |
|
virtual StatusCode | finalize () override final |
|
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 25 of file BCM_RDOAnalysis.h.
◆ StoreGateSvc_t
◆ BCM_RDOAnalysis()
BCM_RDOAnalysis::BCM_RDOAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~BCM_RDOAnalysis()
BCM_RDOAnalysis::~BCM_RDOAnalysis |
( |
| ) |
|
|
inline |
◆ 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 BCM_RDOAnalysis::execute |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 163 of file BCM_RDOAnalysis.cxx.
188 if(p_BCM_RDO_cont.isValid()) {
193 for ( ; rdoCont_itr != rdoCont_end; ++rdoCont_itr ) {
198 for ( ; rdo_itr != rdo_end; ++rdo_itr ) {
199 const int word1((*rdo_itr)->getWord1());
200 const int word2((*rdo_itr)->getWord2());
201 const int chan((*rdo_itr)->getChannel());
202 const int pulse1Pos((*rdo_itr)->getPulse1Position());
203 const int pulse1Width((*rdo_itr)->getPulse1Width());
204 const int pulse2Pos((*rdo_itr)->getPulse2Position());
205 const int pulse2Width((*rdo_itr)->getPulse2Width());
206 const int LVL1A((*rdo_itr)->getLVL1A());
207 const int BCID((*rdo_itr)->getBCID());
208 const int LVL1ID((*rdo_itr)->getLVL1ID());
209 const int err((*rdo_itr)->getError());
236 if(simDataMapBCM.isValid()) {
238 InDetSimDataCollection::const_iterator sdo_itr(simDataMapBCM->begin());
239 const InDetSimDataCollection::const_iterator sdo_end(simDataMapBCM->end());
241 std::vector<int> barcode_vec;
242 std::vector<int> eventIndex_vec;
243 std::vector<float> charge_vec;
244 for ( ; sdo_itr != sdo_end; ++sdo_itr ) {
248 const unsigned long long sdoID_int = sdoID.get_compact();
249 const int sdoWord(sdo.word());
258 const std::vector<InDetSimData::Deposit>& deposits = sdo.getdeposits();
259 std::vector<InDetSimData::Deposit>::const_iterator dep_itr(deposits.begin());
260 const std::vector<InDetSimData::Deposit>::const_iterator dep_end(deposits.end());
262 for ( ; dep_itr != dep_end; ++dep_itr ) {
266 const float charge((*dep_itr).second);
276 barcode_vec.push_back(
bar);
277 eventIndex_vec.push_back(eventIx);
278 charge_vec.push_back(
charge);
284 eventIndex_vec.clear();
293 return StatusCode::SUCCESS;
◆ 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 BCM_RDOAnalysis::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ initialize()
StatusCode BCM_RDOAnalysis::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ 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.
◆ 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_barcode
std::vector<int>* BCM_RDOAnalysis::m_barcode |
|
private |
◆ m_barcode_vec
std::vector< std::vector<int> >* BCM_RDOAnalysis::m_barcode_vec |
|
private |
◆ m_BCID
std::vector<int>* BCM_RDOAnalysis::m_BCID |
|
private |
◆ m_chan
std::vector<int>* BCM_RDOAnalysis::m_chan |
|
private |
◆ m_charge
std::vector<float>* BCM_RDOAnalysis::m_charge |
|
private |
◆ m_charge_vec
std::vector< std::vector<float> >* BCM_RDOAnalysis::m_charge_vec |
|
private |
◆ m_detStore
◆ m_err
std::vector<int>* BCM_RDOAnalysis::m_err |
|
private |
◆ m_eventIndex
std::vector<int>* BCM_RDOAnalysis::m_eventIndex |
|
private |
◆ m_eventIndex_vec
std::vector< std::vector<int> >* BCM_RDOAnalysis::m_eventIndex_vec |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_h_barcode
TH1* BCM_RDOAnalysis::m_h_barcode |
|
private |
◆ m_h_chan
TH1* BCM_RDOAnalysis::m_h_chan |
|
private |
◆ m_h_charge
TH1* BCM_RDOAnalysis::m_h_charge |
|
private |
◆ m_h_eventIndex
TH1* BCM_RDOAnalysis::m_h_eventIndex |
|
private |
◆ m_h_pulse1Pos
TH1* BCM_RDOAnalysis::m_h_pulse1Pos |
|
private |
◆ m_h_pulse1Width
TH1* BCM_RDOAnalysis::m_h_pulse1Width |
|
private |
◆ m_h_pulse2Pos
TH1* BCM_RDOAnalysis::m_h_pulse2Pos |
|
private |
◆ m_h_pulse2Width
TH1* BCM_RDOAnalysis::m_h_pulse2Width |
|
private |
◆ m_h_sdoID
TH1* BCM_RDOAnalysis::m_h_sdoID |
|
private |
◆ m_h_sdoWord
TH1* BCM_RDOAnalysis::m_h_sdoWord |
|
private |
◆ m_h_word1
TH1* BCM_RDOAnalysis::m_h_word1 |
|
private |
◆ m_h_word2
TH1* BCM_RDOAnalysis::m_h_word2 |
|
private |
◆ m_inputKey
◆ m_inputTruthKey
◆ m_LVL1A
std::vector<int>* BCM_RDOAnalysis::m_LVL1A |
|
private |
◆ m_LVL1ID
std::vector<int>* BCM_RDOAnalysis::m_LVL1ID |
|
private |
◆ m_ntupleDirName
std::string BCM_RDOAnalysis::m_ntupleDirName |
|
private |
◆ m_ntupleFileName
std::string BCM_RDOAnalysis::m_ntupleFileName |
|
private |
◆ m_ntupleTreeName
std::string BCM_RDOAnalysis::m_ntupleTreeName |
|
private |
◆ m_path
std::string BCM_RDOAnalysis::m_path |
|
private |
◆ m_pulse1Pos
std::vector<int>* BCM_RDOAnalysis::m_pulse1Pos |
|
private |
◆ m_pulse1Width
std::vector<int>* BCM_RDOAnalysis::m_pulse1Width |
|
private |
◆ m_pulse2Pos
std::vector<int>* BCM_RDOAnalysis::m_pulse2Pos |
|
private |
◆ m_pulse2Width
std::vector<int>* BCM_RDOAnalysis::m_pulse2Width |
|
private |
◆ m_sdoID
std::vector<unsigned long long>* BCM_RDOAnalysis::m_sdoID |
|
private |
◆ m_sdoWord
std::vector<int>* BCM_RDOAnalysis::m_sdoWord |
|
private |
◆ m_thistSvc
◆ m_tree
TTree* BCM_RDOAnalysis::m_tree |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_word1
std::vector<int>* BCM_RDOAnalysis::m_word1 |
|
private |
◆ m_word2
std::vector<int>* BCM_RDOAnalysis::m_word2 |
|
private |
The documentation for this class was generated from the following files:
std::vector< int > * m_barcode
Const iterator class for DataVector/DataList.
std::vector< std::vector< int > > * m_barcode_vec
std::vector< int > * m_BCID
ServiceHandle< ITHistSvc > m_thistSvc
std::vector< int > * m_word1
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< int > * m_LVL1A
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< int > * m_LVL1ID
std::vector< int > * m_word2
std::vector< int > * m_eventIndex
virtual void setOwner(IDataHandleHolder *o)=0
a link optimized in size for a GenParticle in a McEventCollection
SG::ReadHandleKey< InDetSimDataCollection > m_inputTruthKey
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::vector< int > * m_chan
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< int > * m_sdoWord
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::vector< std::vector< int > > * m_eventIndex_vec
std::vector< unsigned long long > * m_sdoID
virtual void renounce()=0
std::vector< int > * m_pulse1Width
std::vector< int > * m_err
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< float > * m_charge
index_type eventIndex() const
Return the event number of the referenced GenEvent.
std::vector< int > * m_pulse2Pos
double charge(const T &p)
std::vector< std::vector< float > > * m_charge_vec
std::string m_ntupleFileName
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
std::string m_ntupleDirName
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::string m_ntupleTreeName
AthAlgorithm()
Default constructor:
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
std::vector< int > * m_pulse2Width
std::vector< int > * m_pulse1Pos
SG::ReadHandleKey< BCM_RDO_Container > m_inputKey
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>