|
ATLAS Offline Software
|
#include <RPC_RDOAnalysis.h>
|
| RPC_RDOAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~RPC_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 24 of file RPC_RDOAnalysis.h.
◆ StoreGateSvc_t
◆ RPC_RDOAnalysis()
RPC_RDOAnalysis::RPC_RDOAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~RPC_RDOAnalysis()
RPC_RDOAnalysis::~RPC_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 RPC_RDOAnalysis::execute |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 258 of file RPC_RDOAnalysis.cxx.
295 if(p_RPCpadCont.isValid()) {
299 for ( ; rpc_itr != rpc_end; ++rpc_itr ) {
300 const Identifier rpcID((*rpc_itr)->identify());
301 const unsigned short int padStat((*rpc_itr)->status());
302 const unsigned short int padErr((*rpc_itr)->errorCode());
303 const unsigned short int padOnID((*rpc_itr)->onlineId());
304 const unsigned short int padLVL1ID((*rpc_itr)->lvl1Id());
305 const unsigned short int padBCID((*rpc_itr)->bcId());
306 const int padSec((*rpc_itr)->sector());
308 const unsigned long long rpcID_int = rpcID.get_compact();
311 m_err->push_back(padErr);
314 m_bcID->push_back(padBCID);
326 const RpcPad* p_rpcCoin(*rpc_itr);
329 for ( ; rpcCoin_itr != rpcCoin_end; ++rpcCoin_itr ) {
330 const Identifier coinRpcID((*rpcCoin_itr)->identify());
331 const unsigned short int coinOnID((*rpcCoin_itr)->onlineId());
332 const unsigned short int coinCrc((*rpcCoin_itr)->crc());
333 const unsigned short int coinFel1ID((*rpcCoin_itr)->fel1Id());
334 const unsigned short int coinFebcID((*rpcCoin_itr)->febcId());
336 const unsigned long long coinRpcID_int = coinRpcID.get_compact();
353 for ( ; rpcFired_itr != rpcFired_end; ++rpcFired_itr ) {
354 const unsigned short int firedBcID((*rpcFired_itr)->bcid());
355 const unsigned short int firedTime((*rpcFired_itr)->time());
356 const unsigned short int firedIjk((*rpcFired_itr)->ijk());
357 const unsigned short int firedChan((*rpcFired_itr)->channel());
358 const unsigned short int firedOvl((*rpcFired_itr)->ovl());
359 const unsigned short int firedThr((*rpcFired_itr)->thr());
382 if(simDataMapRPC.isValid()) {
383 MuonSimDataCollection::const_iterator sdo_itr(simDataMapRPC->begin());
384 const MuonSimDataCollection::const_iterator sdo_end(simDataMapRPC->end());
386 std::vector<int> barcode_vec;
387 std::vector<int> eventIndex_vec;
388 std::vector<double> radius_vec;
389 std::vector<float> localZ_vec;
390 for ( ; sdo_itr != sdo_end; ++sdo_itr ) {
394 const unsigned long long sdoID_int = sdoID.get_compact();
395 const int sdoWord(sdo.word());
397 const float xPos(
gPos.x());
398 const float yPos(
gPos.y());
399 const float zPos(
gPos.z());
414 const std::vector<MuonSimData::Deposit>& deposits = sdo.getdeposits();
415 std::vector<MuonSimData::Deposit>::const_iterator dep_itr(deposits.begin());
416 const std::vector<MuonSimData::Deposit>::const_iterator dep_end(deposits.end());
417 for ( ; dep_itr != dep_end; ++dep_itr ) {
423 const float localZ(
data.secondEntry());
435 barcode_vec.push_back(
bar);
436 eventIndex_vec.push_back(eventIx);
437 radius_vec.push_back(
radius);
438 localZ_vec.push_back(localZ);
445 eventIndex_vec.clear();
455 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 RPC_RDOAnalysis::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ initialize()
StatusCode RPC_RDOAnalysis::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 96 of file RPC_RDOAnalysis.cxx.
155 m_h_err =
new TH1F(
"h_err",
"RPC Pad error code", 100, 0, 10);
167 m_h_bcID =
new TH1F(
"h_bcID",
"RPC Pad BCID", 100, 0, 10);
215 m_h_firedThr =
new TH1F(
"h_firedThr",
"Fired Channel threshold", 100, 0, 5);
227 m_h_xPos =
new TH1F(
"h_xPos",
"Global x-position (SDO)", 100, -15000, 15000);
231 m_h_yPos =
new TH1F(
"h_yPos",
"Global y-position (SDO)", 100, -15000, 15000);
235 m_h_zPos =
new TH1F(
"h_zPos",
"Global z-position (SDO)", 100, -15000, 15000);
251 m_h_localZ =
new TH1F(
"h_localZ",
"Local z-position (SDO)", 100, -250, 250);
255 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.
◆ 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>* RPC_RDOAnalysis::m_barcode |
|
private |
◆ m_barcode_vec
std::vector< std::vector<int> >* RPC_RDOAnalysis::m_barcode_vec |
|
private |
◆ m_bcID
std::vector<unsigned short int>* RPC_RDOAnalysis::m_bcID |
|
private |
◆ m_coinCrc
std::vector<unsigned short int>* RPC_RDOAnalysis::m_coinCrc |
|
private |
◆ m_coinFebcID
std::vector<unsigned short int>* RPC_RDOAnalysis::m_coinFebcID |
|
private |
◆ m_coinFel1ID
std::vector<unsigned short int>* RPC_RDOAnalysis::m_coinFel1ID |
|
private |
◆ m_coinOnID
std::vector<unsigned short int>* RPC_RDOAnalysis::m_coinOnID |
|
private |
◆ m_coinRpcID
std::vector<unsigned long long>* RPC_RDOAnalysis::m_coinRpcID |
|
private |
◆ m_detStore
◆ m_err
std::vector<unsigned short int>* RPC_RDOAnalysis::m_err |
|
private |
◆ m_eventIndex
std::vector<int>* RPC_RDOAnalysis::m_eventIndex |
|
private |
◆ m_eventIndex_vec
std::vector< std::vector<int> >* RPC_RDOAnalysis::m_eventIndex_vec |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_firedBcID
std::vector<unsigned short int>* RPC_RDOAnalysis::m_firedBcID |
|
private |
◆ m_firedChan
std::vector<unsigned short int>* RPC_RDOAnalysis::m_firedChan |
|
private |
◆ m_firedIjk
std::vector<unsigned short int>* RPC_RDOAnalysis::m_firedIjk |
|
private |
◆ m_firedOvl
std::vector<unsigned short int>* RPC_RDOAnalysis::m_firedOvl |
|
private |
◆ m_firedThr
std::vector<unsigned short int>* RPC_RDOAnalysis::m_firedThr |
|
private |
◆ m_firedTime
std::vector<unsigned short int>* RPC_RDOAnalysis::m_firedTime |
|
private |
◆ m_h_barcode
TH1* RPC_RDOAnalysis::m_h_barcode |
|
private |
◆ m_h_bcID
TH1* RPC_RDOAnalysis::m_h_bcID |
|
private |
◆ m_h_coinCrc
TH1* RPC_RDOAnalysis::m_h_coinCrc |
|
private |
◆ m_h_coinFebcID
TH1* RPC_RDOAnalysis::m_h_coinFebcID |
|
private |
◆ m_h_coinFel1ID
TH1* RPC_RDOAnalysis::m_h_coinFel1ID |
|
private |
◆ m_h_coinOnID
TH1* RPC_RDOAnalysis::m_h_coinOnID |
|
private |
◆ m_h_coinRpcID
TH1* RPC_RDOAnalysis::m_h_coinRpcID |
|
private |
◆ m_h_err
TH1* RPC_RDOAnalysis::m_h_err |
|
private |
◆ m_h_eventIndex
TH1* RPC_RDOAnalysis::m_h_eventIndex |
|
private |
◆ m_h_firedBcID
TH1* RPC_RDOAnalysis::m_h_firedBcID |
|
private |
◆ m_h_firedChan
TH1* RPC_RDOAnalysis::m_h_firedChan |
|
private |
◆ m_h_firedIjk
TH1* RPC_RDOAnalysis::m_h_firedIjk |
|
private |
◆ m_h_firedOvl
TH1* RPC_RDOAnalysis::m_h_firedOvl |
|
private |
◆ m_h_firedThr
TH1* RPC_RDOAnalysis::m_h_firedThr |
|
private |
◆ m_h_firedTime
TH1* RPC_RDOAnalysis::m_h_firedTime |
|
private |
◆ m_h_localZ
TH1* RPC_RDOAnalysis::m_h_localZ |
|
private |
◆ m_h_lvl1ID
TH1* RPC_RDOAnalysis::m_h_lvl1ID |
|
private |
◆ m_h_onlineID
TH1* RPC_RDOAnalysis::m_h_onlineID |
|
private |
◆ m_h_radius
TH1* RPC_RDOAnalysis::m_h_radius |
|
private |
◆ m_h_rpcID
TH1* RPC_RDOAnalysis::m_h_rpcID |
|
private |
◆ m_h_sdoID
TH1* RPC_RDOAnalysis::m_h_sdoID |
|
private |
◆ m_h_sdoWord
TH1* RPC_RDOAnalysis::m_h_sdoWord |
|
private |
◆ m_h_sector
TH1* RPC_RDOAnalysis::m_h_sector |
|
private |
◆ m_h_status
TH1* RPC_RDOAnalysis::m_h_status |
|
private |
◆ m_h_xPos
TH1* RPC_RDOAnalysis::m_h_xPos |
|
private |
◆ m_h_yPos
TH1* RPC_RDOAnalysis::m_h_yPos |
|
private |
◆ m_h_zPos
TH1* RPC_RDOAnalysis::m_h_zPos |
|
private |
◆ m_inputKey
◆ m_inputTruthKey
◆ m_localZ
std::vector<float>* RPC_RDOAnalysis::m_localZ |
|
private |
◆ m_localZ_vec
std::vector< std::vector<float> >* RPC_RDOAnalysis::m_localZ_vec |
|
private |
◆ m_lvl1ID
std::vector<unsigned short int>* RPC_RDOAnalysis::m_lvl1ID |
|
private |
◆ m_ntupleDirName
std::string RPC_RDOAnalysis::m_ntupleDirName |
|
private |
◆ m_ntupleFileName
std::string RPC_RDOAnalysis::m_ntupleFileName |
|
private |
◆ m_ntupleTreeName
std::string RPC_RDOAnalysis::m_ntupleTreeName |
|
private |
◆ m_onlineID
std::vector<unsigned short int>* RPC_RDOAnalysis::m_onlineID |
|
private |
◆ m_path
std::string RPC_RDOAnalysis::m_path |
|
private |
◆ m_radius
std::vector<double>* RPC_RDOAnalysis::m_radius |
|
private |
◆ m_radius_vec
std::vector< std::vector<double> >* RPC_RDOAnalysis::m_radius_vec |
|
private |
◆ m_rpcID
std::vector<unsigned long long>* RPC_RDOAnalysis::m_rpcID |
|
private |
◆ m_sdoID
std::vector<unsigned long long>* RPC_RDOAnalysis::m_sdoID |
|
private |
◆ m_sdoWord
std::vector<int>* RPC_RDOAnalysis::m_sdoWord |
|
private |
◆ m_sector
std::vector<int>* RPC_RDOAnalysis::m_sector |
|
private |
◆ m_status
std::vector<unsigned short int>* RPC_RDOAnalysis::m_status |
|
private |
◆ m_thistSvc
◆ m_tree
TTree* RPC_RDOAnalysis::m_tree |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_xPos
std::vector<float>* RPC_RDOAnalysis::m_xPos |
|
private |
◆ m_yPos
std::vector<float>* RPC_RDOAnalysis::m_yPos |
|
private |
◆ m_zPos
std::vector<float>* RPC_RDOAnalysis::m_zPos |
|
private |
The documentation for this class was generated from the following files:
std::vector< unsigned short int > * m_firedChan
std::vector< unsigned short int > * m_bcID
char data[hepevt_bytes_allocation_ATLAS]
std::vector< float > * m_zPos
Const iterator class for DataVector/DataList.
std::vector< int > * m_sector
std::vector< int > * m_barcode
std::vector< std::vector< float > > * m_localZ_vec
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_ntupleTreeName
std::vector< unsigned short int > * m_coinFel1ID
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< std::vector< int > > * m_eventIndex_vec
std::vector< SG::VarHandleKeyArray * > m_vhka
ServiceHandle< ITHistSvc > m_thistSvc
std::vector< unsigned short int > * m_err
std::vector< int > * m_eventIndex
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< unsigned short int > * m_status
std::string m_ntupleDirName
a link optimized in size for a GenParticle in a McEventCollection
std::vector< int > * m_sdoWord
virtual StatusCode sysInitialize() override
Override sysInitialize.
std::vector< unsigned short int > * m_firedThr
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::vector< unsigned short int > * m_firedBcID
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_yPos
std::string m_ntupleFileName
std::vector< unsigned long long > * m_sdoID
std::vector< unsigned short int > * m_coinCrc
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< unsigned long long > * m_coinRpcID
std::vector< unsigned short int > * m_firedTime
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::ReadHandleKey< RpcPadContainer > m_inputKey
index_type eventIndex() const
Return the event number of the referenced GenEvent.
std::vector< std::vector< double > > * m_radius_vec
std::vector< unsigned short int > * m_coinFebcID
std::vector< unsigned short int > * m_firedOvl
Eigen::Matrix< double, 3, 1 > Vector3D
std::vector< unsigned short int > * m_onlineID
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< unsigned short int > * m_firedIjk
AthAlgorithm()
Default constructor:
std::vector< unsigned long long > * m_rpcID
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
std::vector< std::vector< int > > * m_barcode_vec
std::vector< unsigned short int > * m_lvl1ID
std::vector< unsigned short int > * m_coinOnID
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
SG::ReadHandleKey< MuonSimDataCollection > m_inputTruthKey
std::vector< float > * m_localZ
std::vector< double > * m_radius
std::vector< float > * m_xPos