|
ATLAS Offline Software
|
Go to the documentation of this file.
19 , m_inputKey(
"RPCPAD")
20 , m_inputTruthKey(
"RPC_SDO")
82 , m_ntupleFileName(
"/ntuples/file1")
83 , m_ntupleDirName(
"/RPC_RDOAnalysis/")
84 , m_ntupleTreeName(
"RPC_RDOAna")
85 ,
m_path(
"/RPC_RDOAnalysis/")
86 , m_thistSvc(
"THistSvc",
name)
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;
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());
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;
459 return StatusCode::SUCCESS;
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
virtual StatusCode initialize() override final
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_ntupleTreeName
std::vector< unsigned short int > * m_coinFel1ID
std::vector< std::vector< int > > * m_eventIndex_vec
value_type get_compact() const
Get the compact id.
const std::vector< Deposit > & getdeposits() const
ServiceHandle< ITHistSvc > m_thistSvc
std::vector< unsigned short int > * m_err
std::vector< int > * m_eventIndex
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
std::vector< unsigned short int > * m_firedThr
std::vector< unsigned short int > * m_firedBcID
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_yPos
std::string m_ntupleFileName
std::string m_path
the path being used
virtual StatusCode finalize() override final
std::vector< unsigned long long > * m_sdoID
std::vector< unsigned short int > * m_coinCrc
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
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
virtual bool isValid() override final
Can the handle be successfully dereferenced?
std::vector< unsigned short int > * m_firedTime
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
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
std::vector< unsigned short int > * m_onlineID
std::vector< unsigned short int > * m_firedIjk
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
Handle class for reading from StoreGate.
std::vector< unsigned short int > * m_lvl1ID
std::vector< unsigned short int > * m_coinOnID
RPC_RDOAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute() override final
SG::ReadHandleKey< MuonSimDataCollection > m_inputTruthKey
std::vector< float > * m_localZ
std::vector< double > * m_radius
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
const Amg::Vector3D globalPosition() const
std::vector< float > * m_xPos