|
ATLAS Offline Software
|
Go to the documentation of this file.
19 , m_inputKey(
"BCM_RDOs")
20 , m_inputTruthKey(
"BCM_SDO_Map")
55 , m_ntupleFileName(
"/ntuples/file1")
56 , m_ntupleDirName(
"/BCM_RDOAnalysis/")
57 , m_ntupleTreeName(
"BCM_RDOAna")
58 ,
m_path(
"/BCM_RDOAnalysis/")
59 , m_thistSvc(
"THistSvc",
name)
119 m_h_chan =
new TH1F(
"h_chan",
"channel ID", 100, 0, 20);
159 return StatusCode::SUCCESS;
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());
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;
299 return StatusCode::SUCCESS;
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
const std::vector< Deposit > & getdeposits() const
virtual StatusCode finalize() override final
std::vector< int > * m_word1
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< int > * m_LVL1A
value_type get_compact() const
Get the compact id.
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
std::vector< int > * m_chan
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode execute() override final
std::string m_path
the path being used
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
virtual bool isValid() override final
Can the handle be successfully dereferenced?
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
std::string m_ntupleFileName
virtual StatusCode initialize() override final
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
std::string m_ntupleDirName
BCM_RDOAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
std::string m_ntupleTreeName
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.