|
ATLAS Offline Software
|
#include <TRT_RDOAnalysis.h>
|
| TRT_RDOAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~TRT_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 29 of file TRT_RDOAnalysis.h.
◆ StoreGateSvc_t
◆ TRT_RDOAnalysis()
TRT_RDOAnalysis::TRT_RDOAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TRT_RDOAnalysis()
TRT_RDOAnalysis::~TRT_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 TRT_RDOAnalysis::execute |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 316 of file TRT_RDOAnalysis.cxx.
353 if(p_TRT_RDO_cont.isValid()) {
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) {
437 if(simDataMapTRT.isValid()) {
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;
◆ 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 TRT_RDOAnalysis::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ initialize()
StatusCode TRT_RDOAnalysis::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 107 of file TRT_RDOAnalysis.cxx.
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;
◆ 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_aboveThresh
std::vector<bool>* TRT_RDOAnalysis::m_aboveThresh |
|
private |
◆ m_barcode
std::vector<int>* TRT_RDOAnalysis::m_barcode |
|
private |
◆ m_barcode_vec
std::vector< std::vector<int> >* TRT_RDOAnalysis::m_barcode_vec |
|
private |
◆ m_barrelEndcap
std::vector<int>* TRT_RDOAnalysis::m_barrelEndcap |
|
private |
◆ m_barrelEndcap_sdo
std::vector<int>* TRT_RDOAnalysis::m_barrelEndcap_sdo |
|
private |
◆ m_charge
std::vector<float>* TRT_RDOAnalysis::m_charge |
|
private |
◆ m_charge_vec
std::vector< std::vector<float> >* TRT_RDOAnalysis::m_charge_vec |
|
private |
◆ m_deadChan
std::vector<bool>* TRT_RDOAnalysis::m_deadChan |
|
private |
◆ m_detStore
◆ m_driftTimeBin
std::vector<int>* TRT_RDOAnalysis::m_driftTimeBin |
|
private |
◆ m_eventIndex
std::vector<int>* TRT_RDOAnalysis::m_eventIndex |
|
private |
◆ m_eventIndex_vec
std::vector< std::vector<int> >* TRT_RDOAnalysis::m_eventIndex_vec |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_firstBin
std::vector<bool>* TRT_RDOAnalysis::m_firstBin |
|
private |
◆ m_h_barcode
TH1* TRT_RDOAnalysis::m_h_barcode |
|
private |
◆ m_h_barrelEndcap
TH1* TRT_RDOAnalysis::m_h_barrelEndcap |
|
private |
◆ m_h_barrelEndcap_sdo
TH1* TRT_RDOAnalysis::m_h_barrelEndcap_sdo |
|
private |
◆ m_h_brlDriftTimeBin
TH1* TRT_RDOAnalysis::m_h_brlDriftTimeBin |
|
private |
◆ m_h_brlLayer
TH1* TRT_RDOAnalysis::m_h_brlLayer |
|
private |
◆ m_h_brlPhiMod
TH1* TRT_RDOAnalysis::m_h_brlPhiMod |
|
private |
◆ m_h_brlStraw
TH1* TRT_RDOAnalysis::m_h_brlStraw |
|
private |
◆ m_h_brlStrawLayer
TH1* TRT_RDOAnalysis::m_h_brlStrawLayer |
|
private |
◆ m_h_brlToT
TH1* TRT_RDOAnalysis::m_h_brlToT |
|
private |
◆ m_h_brlToT_HL
TH1* TRT_RDOAnalysis::m_h_brlToT_HL |
|
private |
◆ m_h_brlTrailEdge
TH1* TRT_RDOAnalysis::m_h_brlTrailEdge |
|
private |
◆ m_h_charge
TH1* TRT_RDOAnalysis::m_h_charge |
|
private |
◆ m_h_driftTimeBin
TH1* TRT_RDOAnalysis::m_h_driftTimeBin |
|
private |
◆ m_h_ecDriftTimeBin
TH1* TRT_RDOAnalysis::m_h_ecDriftTimeBin |
|
private |
◆ m_h_ecPhiMod
TH1* TRT_RDOAnalysis::m_h_ecPhiMod |
|
private |
◆ m_h_ecStraw
TH1* TRT_RDOAnalysis::m_h_ecStraw |
|
private |
◆ m_h_ecStrawLayer
TH1* TRT_RDOAnalysis::m_h_ecStrawLayer |
|
private |
◆ m_h_ecToT
TH1* TRT_RDOAnalysis::m_h_ecToT |
|
private |
◆ m_h_ecToT_HL
TH1* TRT_RDOAnalysis::m_h_ecToT_HL |
|
private |
◆ m_h_ecTrailEdge
TH1* TRT_RDOAnalysis::m_h_ecTrailEdge |
|
private |
◆ m_h_ecWheel
TH1* TRT_RDOAnalysis::m_h_ecWheel |
|
private |
◆ m_h_eventIndex
TH1* TRT_RDOAnalysis::m_h_eventIndex |
|
private |
◆ m_h_layerWheel
TH1* TRT_RDOAnalysis::m_h_layerWheel |
|
private |
◆ m_h_layerWheel_sdo
TH1* TRT_RDOAnalysis::m_h_layerWheel_sdo |
|
private |
◆ m_h_phiModule
TH1* TRT_RDOAnalysis::m_h_phiModule |
|
private |
◆ m_h_phiModule_sdo
TH1* TRT_RDOAnalysis::m_h_phiModule_sdo |
|
private |
◆ m_h_rdoID
TH1* TRT_RDOAnalysis::m_h_rdoID |
|
private |
◆ m_h_rdoWord
TH1* TRT_RDOAnalysis::m_h_rdoWord |
|
private |
◆ m_h_sdoID
TH1* TRT_RDOAnalysis::m_h_sdoID |
|
private |
◆ m_h_sdoWord
TH1* TRT_RDOAnalysis::m_h_sdoWord |
|
private |
◆ m_h_straw
TH1* TRT_RDOAnalysis::m_h_straw |
|
private |
◆ m_h_straw_sdo
TH1* TRT_RDOAnalysis::m_h_straw_sdo |
|
private |
◆ m_h_strawLayer
TH1* TRT_RDOAnalysis::m_h_strawLayer |
|
private |
◆ m_h_strawLayer_sdo
TH1* TRT_RDOAnalysis::m_h_strawLayer_sdo |
|
private |
◆ m_h_ToT
TH1* TRT_RDOAnalysis::m_h_ToT |
|
private |
◆ m_h_ToT_HL
TH1* TRT_RDOAnalysis::m_h_ToT_HL |
|
private |
◆ m_h_trailEdge
TH1* TRT_RDOAnalysis::m_h_trailEdge |
|
private |
◆ m_highLevel
std::vector<bool>* TRT_RDOAnalysis::m_highLevel |
|
private |
◆ m_hit
std::vector<bool>* TRT_RDOAnalysis::m_hit |
|
private |
◆ m_inputKey
◆ m_inputTruthKey
◆ m_lastBin
std::vector<bool>* TRT_RDOAnalysis::m_lastBin |
|
private |
◆ m_layerWheel
std::vector<int>* TRT_RDOAnalysis::m_layerWheel |
|
private |
◆ m_layerWheel_sdo
std::vector<int>* TRT_RDOAnalysis::m_layerWheel_sdo |
|
private |
◆ m_ntupleDirName
std::string TRT_RDOAnalysis::m_ntupleDirName |
|
private |
◆ m_ntupleFileName
std::string TRT_RDOAnalysis::m_ntupleFileName |
|
private |
◆ m_ntupleTreeName
std::string TRT_RDOAnalysis::m_ntupleTreeName |
|
private |
◆ m_path
std::string TRT_RDOAnalysis::m_path |
|
private |
◆ m_phiModule
std::vector<int>* TRT_RDOAnalysis::m_phiModule |
|
private |
◆ m_phiModule_sdo
std::vector<int>* TRT_RDOAnalysis::m_phiModule_sdo |
|
private |
◆ m_rdoID
std::vector<unsigned long long>* TRT_RDOAnalysis::m_rdoID |
|
private |
◆ m_rdoWord
std::vector<unsigned int>* TRT_RDOAnalysis::m_rdoWord |
|
private |
◆ m_RODdata
std::vector<bool>* TRT_RDOAnalysis::m_RODdata |
|
private |
◆ m_sdoID
std::vector<unsigned long long>* TRT_RDOAnalysis::m_sdoID |
|
private |
◆ m_sdoWord
std::vector<int>* TRT_RDOAnalysis::m_sdoWord |
|
private |
◆ m_straw
std::vector<int>* TRT_RDOAnalysis::m_straw |
|
private |
◆ m_straw_sdo
std::vector<int>* TRT_RDOAnalysis::m_straw_sdo |
|
private |
◆ m_strawLayer
std::vector<int>* TRT_RDOAnalysis::m_strawLayer |
|
private |
◆ m_strawLayer_sdo
std::vector<int>* TRT_RDOAnalysis::m_strawLayer_sdo |
|
private |
◆ m_thistSvc
◆ m_timeOverThreshold
std::vector<double>* TRT_RDOAnalysis::m_timeOverThreshold |
|
private |
◆ m_trailEdge
std::vector<int>* TRT_RDOAnalysis::m_trailEdge |
|
private |
◆ m_tree
TTree* TRT_RDOAnalysis::m_tree |
|
private |
◆ m_trtID
◆ m_validStraw
std::vector<bool>* TRT_RDOAnalysis::m_validStraw |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
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
std::vector< int > * m_strawLayer_sdo
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< bool > * m_highLevel
std::vector< int > * m_straw
std::vector< int > * m_driftTimeBin
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
static bool isAboveTR_Thresh(const InDetSimData &sdo)
static bool isValidStraw(const InDetSimData &sdo)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< int > * m_barrelEndcap
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.
virtual void setOwner(IDataHandleHolder *o)=0
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
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
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::vector< std::vector< float > > * m_charge_vec
std::string m_ntupleDirName
std::vector< double > * m_timeOverThreshold
std::vector< float > * m_charge
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.
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
std::vector< bool > * m_deadChan
std::vector< int > * m_layerWheel_sdo
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
index_type eventIndex() const
Return the event number of the referenced GenEvent.
std::vector< bool > * m_validStraw
std::vector< bool > * m_lastBin
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
DataObjIDColl m_extendedExtraObjects
std::vector< bool > * m_firstBin
#define ATH_MSG_WARNING(x)
std::vector< int > * m_straw_sdo
std::string m_ntupleFileName
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< int > * m_eventIndex
AthAlgorithm()
Default constructor:
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
static bool HasHit(const InDetSimData &sdo)
SG::ReadHandleKey< InDetSimDataCollection > m_inputTruthKey
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::vector< unsigned long long > * m_sdoID