|
ATLAS Offline Software
|
Go to the documentation of this file.
19 , m_inputKey(
"TRT_RDOs")
20 , m_inputTruthKey(
"TRT_SDO_Map")
30 , m_timeOverThreshold(0)
37 , m_barrelEndcap_sdo(0)
67 , m_h_brlStrawLayer(0)
71 , m_h_brlDriftTimeBin(0)
79 , m_h_ecDriftTimeBin(0)
83 , m_h_barrelEndcap_sdo(0)
84 , m_h_phiModule_sdo(0)
85 , m_h_layerWheel_sdo(0)
86 , m_h_strawLayer_sdo(0)
93 , m_ntupleFileName(
"/ntuples/file1")
94 , m_ntupleDirName(
"/TRT_RDOAnalysis/")
95 , m_ntupleTreeName(
"TRT_RDOAna")
96 ,
m_path(
"/TRT_RDOAnalysis/")
97 , m_thistSvc(
"THistSvc",
name)
181 m_h_layerWheel =
new TH1F(
"h_layerWheel",
"Barrel layer or Endcap wheel", 100, 0, 20);
193 m_h_ToT =
new TH1F(
"h_ToT",
"Time over Threshold", 100, 0, 100);
197 m_h_ToT_HL =
new TH1F(
"h_ToT_HL",
"Time over Threshold (highLevel)", 100, 0, 100);
225 m_h_brlToT =
new TH1F(
"h_brlToT",
"Barrel Time over Threshold", 100, 0, 100);
229 m_h_brlToT_HL =
new TH1F(
"h_brlToT_HL",
"Barrel Time over Threshold (highLevel)", 100, 0, 100);
257 m_h_ecToT =
new TH1F(
"h_ecToT",
"Endcap Time over Threshold", 100, 0, 100);
261 m_h_ecToT_HL =
new TH1F(
"h_ecToT_HL",
"Endcap Time over Threshold (highLevel)", 100, 0, 100);
313 return StatusCode::SUCCESS;
358 for ( ; rdoCont_itr != rdoCont_end; ++rdoCont_itr ) {
363 for ( ; rdo_itr != rdo_end; ++rdo_itr ) {
364 const Identifier rdoID((*rdo_itr)->identify());
365 const unsigned int rdoWord((*rdo_itr)->getWord());
371 const bool trtHL((*rdo_itr)->highLevel());
372 const double trtToT((*rdo_itr)->timeOverThreshold());
373 const int trtDriftTimeBin((*rdo_itr)->driftTimeBin());
378 const unsigned long long rdoID_int = rdoID.
get_compact();
407 if (abs(trtBrlEc) == 1) {
419 else if (abs(trtBrlEc) == 2) {
439 InDetSimDataCollection::const_iterator sdo_itr(simDataMapTRT->begin());
440 const InDetSimDataCollection::const_iterator sdo_end(simDataMapTRT->end());
442 std::vector<int> barcode_vec;
443 std::vector<int> eventIndex_vec;
444 std::vector<float> charge_vec;
445 for ( ; sdo_itr != sdo_end; ++sdo_itr ) {
449 const unsigned long long sdoID_int = sdoID.
get_compact();
450 const int sdoWord(sdo.
word());
473 m_hit->push_back(hit);
485 const std::vector<InDetSimData::Deposit>& deposits = sdo.
getdeposits();
486 std::vector<InDetSimData::Deposit>::const_iterator dep_itr(deposits.begin());
487 const std::vector<InDetSimData::Deposit>::const_iterator dep_end(deposits.end());
489 for ( ; dep_itr != dep_end; ++dep_itr ) {
493 const float charge((*dep_itr).second);
503 barcode_vec.push_back(
bar);
504 eventIndex_vec.push_back(eventIx);
505 charge_vec.push_back(
charge);
511 eventIndex_vec.clear();
520 return StatusCode::SUCCESS;
525 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
std::vector< int > * m_barcode
std::vector< unsigned int > * m_rdoWord
static bool isDeadChannel(const InDetSimData &sdo)
std::vector< int > * m_strawLayer
Const iterator class for DataVector/DataList.
std::vector< int > * m_barrelEndcap_sdo
std::vector< int > * m_layerWheel
const std::vector< Deposit > & getdeposits() const
std::vector< int > * m_strawLayer_sdo
virtual StatusCode finalize() override final
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< bool > * m_highLevel
std::vector< int > * m_straw
std::vector< int > * m_driftTimeBin
static bool isAboveTR_Thresh(const InDetSimData &sdo)
static bool isValidStraw(const InDetSimData &sdo)
std::vector< int > * m_barrelEndcap
value_type get_compact() const
Get the compact id.
std::vector< int > * m_trailEdge
std::vector< unsigned long long > * m_rdoID
static bool isRodData(const InDetSimData &sdo)
TH1 * m_h_brlDriftTimeBin
std::vector< int > * m_sdoWord
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
bool firstBinHigh() const
TH1 * m_h_barrelEndcap_sdo
a link optimized in size for a GenParticle in a McEventCollection
int straw(const Identifier &id) const
std::vector< int > * m_phiModule_sdo
std::vector< std::vector< int > > * m_eventIndex_vec
SG::ReadHandleKey< TRT_RDO_Container > m_inputKey
std::vector< bool > * m_hit
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< bool > * m_RODdata
std::string m_path
the path being used
std::vector< std::vector< float > > * m_charge_vec
std::string m_ntupleDirName
const_iterator end() const
return const_iterator for end of container
std::vector< double > * m_timeOverThreshold
std::vector< float > * m_charge
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.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int straw_layer(const Identifier &id) const
int layer_or_wheel(const Identifier &id) const
ServiceHandle< ITHistSvc > m_thistSvc
virtual bool isValid() override final
Can the handle be successfully dereferenced?
std::vector< bool > * m_deadChan
std::vector< int > * m_layerWheel_sdo
index_type eventIndex() const
Return the event number of the referenced GenEvent.
TRT_RDOAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< bool > * m_validStraw
std::vector< bool > * m_lastBin
virtual StatusCode execute() override final
std::string m_ntupleTreeName
double charge(const T &p)
int phi_module(const Identifier &id) const
std::vector< bool > * m_aboveThresh
std::vector< std::vector< int > > * m_barcode_vec
std::vector< int > * m_phiModule
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
std::vector< bool > * m_firstBin
std::vector< int > * m_straw_sdo
std::string m_ntupleFileName
std::vector< int > * m_eventIndex
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
virtual StatusCode initialize() override final
static bool HasHit(const InDetSimData &sdo)
Handle class for reading from StoreGate.
SG::ReadHandleKey< InDetSimDataCollection > m_inputTruthKey
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
std::vector< unsigned long long > * m_sdoID