 |
ATLAS Offline Software
|
Go to the documentation of this file.
92 return StatusCode::SUCCESS;
120 const EventContext& ctx{Gaudi::Hive::currentContext()};
129 for ( ; rdoCont_itr != rdoCont_end; ++rdoCont_itr ) {
134 for ( ; rdo_itr != rdo_end; ++rdo_itr ) {
135 const int word1((*rdo_itr)->getWord1());
136 const int word2((*rdo_itr)->getWord2());
137 const int chan((*rdo_itr)->getChannel());
138 const int pulse1Pos((*rdo_itr)->getPulse1Position());
139 const int pulse1Width((*rdo_itr)->getPulse1Width());
140 const int pulse2Pos((*rdo_itr)->getPulse2Position());
141 const int pulse2Width((*rdo_itr)->getPulse2Width());
142 const int LVL1A((*rdo_itr)->getLVL1A());
143 const int BCID((*rdo_itr)->getBCID());
144 const int LVL1ID((*rdo_itr)->getLVL1ID());
145 const int err((*rdo_itr)->getError());
175 InDetSimDataCollection::const_iterator sdo_itr(simDataMapBCM->begin());
176 const InDetSimDataCollection::const_iterator sdo_end(simDataMapBCM->end());
178 std::vector<int> barcode_vec;
179 std::vector<int> eventIndex_vec;
180 std::vector<float> charge_vec;
181 for ( ; sdo_itr != sdo_end; ++sdo_itr ) {
185 const unsigned long long sdoID_int = sdoID.
get_compact();
186 const int sdoWord(sdo.
word());
195 const std::vector<InDetSimData::Deposit>& deposits = sdo.
getdeposits();
196 std::vector<InDetSimData::Deposit>::const_iterator dep_itr(deposits.begin());
197 const std::vector<InDetSimData::Deposit>::const_iterator dep_end(deposits.end());
199 for ( ; dep_itr != dep_end; ++dep_itr ) {
203 const float charge((*dep_itr).second);
213 barcode_vec.push_back(
bar);
214 eventIndex_vec.push_back(eventIx);
215 charge_vec.push_back(
charge);
221 eventIndex_vec.clear();
228 return StatusCode::SUCCESS;
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
std::vector< int > * m_barcode
Const iterator class for DataVector/DataList.
std::vector< std::vector< int > > * m_barcode_vec
std::vector< int > * m_BCID
const std::vector< Deposit > & getdeposits() const
std::vector< int > * m_word1
std::vector< int > * m_LVL1A
Gaudi::Property< std::string > m_ntupleFileName
value_type get_compact() const
Get the compact id.
Gaudi::Property< std::string > m_path
std::vector< int > * m_LVL1ID
std::vector< int > * m_word2
std::vector< int > * m_eventIndex
a link optimized in size for a GenParticle in a McEventCollection
SG::ReadHandleKey< InDetSimDataCollection > m_inputTruthKey
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
std::vector< int > * m_chan
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode execute() override final
std::vector< int > * m_sdoWord
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
std::vector< int > * m_pulse1Width
std::vector< int > * m_err
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
virtual StatusCode initialize() override final
Gaudi::Property< std::string > m_ntupleTreeName
Gaudi::Property< std::string > m_ntupleDirName
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
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
Handle class for reading from StoreGate.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.