|
ATLAS Offline Software
|
#include <ALFA_GloRec.h>
|
| ALFA_GloRec (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~ALFA_GloRec () |
|
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 74 of file ALFA_GloRec.h.
◆ StoreGateSvc_t
◆ ALFA_GloRec()
ALFA_GloRec::ALFA_GloRec |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~ALFA_GloRec()
ALFA_GloRec::~ALFA_GloRec |
( |
| ) |
|
◆ 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 ALFA_GloRec::execute |
( |
| ) |
|
|
private |
Definition at line 197 of file ALFA_GloRec.cxx.
213 if (
sc.isFailure()) {
214 LogStream << MSG::WARNING <<
"ALFA digi, Truth_info failed" <<
endmsg;
215 return StatusCode::SUCCESS;
224 if (
sc.isFailure()) {
225 msg(MSG::ERROR) <<
"Could not create the empty LocRecEv collection in StoreGate" <<
endmsg;
234 if(
sc.isFailure() || !pLocRecCorrCol)
247 for(; mcColBeg!=mcColEnd; ++mcColBeg) {
248 HepGeom::Point3D<double> PointInAtlasCS;
263 hits.ApplyPathPattern(l_pathpattern.Data());
265 for(
int i = 0 ;
i <
hits.GetNpaths() ;
i++){
267 if(trkcand.IsValidTrack()){
◆ 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();
◆ FillTrackCandHistos()
Definition at line 432 of file ALFA_GloRec.cxx.
435 double x_g, y_g, z_g, px_g, py_g, pz_g;
451 ATH_MSG_ERROR(
"ALFA_GloRec::FillTrackCandHistos : Track candidate neither left nor right !!!");
463 double px_norm = px_g / pz_g;
464 double py_norm = py_g / pz_g;
479 double genxextrtonearpot = x_g + px_norm * (nearhitz - z_g);
480 double genyextrtonearpot = y_g + py_norm * (nearhitz - z_g);
492 double genxextrtofarpot = x_g + px_norm * (farhitz - z_g);
493 double genyextrtofarpot = y_g + py_norm * (farhitz - z_g);
◆ finalize()
StatusCode ALFA_GloRec::finalize |
( |
| ) |
|
|
private |
◆ InitHistos()
void ALFA_GloRec::InitHistos |
( |
| ) |
|
|
private |
◆ initialize()
StatusCode ALFA_GloRec::initialize |
( |
| ) |
|
|
private |
◆ 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.
◆ Truth_info()
StatusCode ALFA_GloRec::Truth_info |
( |
| ) |
|
|
private |
Definition at line 312 of file ALFA_GloRec.cxx.
316 if(
sc.isFailure() || !mcTru){
318 return StatusCode::FAILURE;
329 for(;mcTruBeg!=mcTruEnd;++mcTruBeg){
335 if(((std::abs(begGen->pdg_id())==2212)||(std::abs(begGen->pdg_id())==211))){
338 px = begGen->momentum().px();
339 py = begGen->momentum().py();
340 pz = begGen->momentum().pz();
342 x = l_prodvert->position().x();
343 y = l_prodvert->position().y();
344 z = l_prodvert->position().z();
353 }
else if(
z < -236000.){
374 return StatusCode::SUCCESS;
◆ updateVHKA()
◆ WriteHistos()
void ALFA_GloRec::WriteHistos |
( |
| ) |
|
|
private |
Definition at line 512 of file ALFA_GloRec.cxx.
550 fw_glorecanalysis.Write();
551 fw_glorecanalysis.Close();
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_iDataType
int ALFA_GloRec::m_iDataType = 0 |
|
private |
◆ m_pGloRecEvCollection
◆ m_px_g_neg
double ALFA_GloRec::m_px_g_neg |
|
private |
◆ m_px_g_pos
double ALFA_GloRec::m_px_g_pos |
|
private |
◆ m_py_g_neg
double ALFA_GloRec::m_py_g_neg |
|
private |
◆ m_py_g_pos
double ALFA_GloRec::m_py_g_pos |
|
private |
◆ m_pz_g_neg
double ALFA_GloRec::m_pz_g_neg |
|
private |
◆ m_pz_g_pos
double ALFA_GloRec::m_pz_g_pos |
|
private |
◆ m_strGloRecAnalysisFile
std::string ALFA_GloRec::m_strGloRecAnalysisFile |
|
private |
◆ m_strGloRecCollectionName
std::string ALFA_GloRec::m_strGloRecCollectionName |
|
private |
◆ m_strLocRecCorrCollectionName
std::string ALFA_GloRec::m_strLocRecCorrCollectionName |
|
private |
◆ m_strTrackPathPatterns
std::string ALFA_GloRec::m_strTrackPathPatterns |
|
private |
◆ m_th1_recxminusextrapxfarpot
TH1F* ALFA_GloRec::m_th1_recxminusextrapxfarpot |
|
private |
◆ m_th1_recxminusextrapxnearpot
TH1F* ALFA_GloRec::m_th1_recxminusextrapxnearpot |
|
private |
◆ m_th1_recxminustruex
TH1F* ALFA_GloRec::m_th1_recxminustruex |
|
private |
◆ m_th1_recxoverextrapxfarpot
TH1F* ALFA_GloRec::m_th1_recxoverextrapxfarpot |
|
private |
◆ m_th1_recxoverextrapxnearpot
TH1F* ALFA_GloRec::m_th1_recxoverextrapxnearpot |
|
private |
◆ m_th1_recxovertruex
TH1F* ALFA_GloRec::m_th1_recxovertruex |
|
private |
◆ m_th1_recxslopeminustruexslope
TH1F* ALFA_GloRec::m_th1_recxslopeminustruexslope |
|
private |
◆ m_th1_recxslopeovertruexslope
TH1F* ALFA_GloRec::m_th1_recxslopeovertruexslope |
|
private |
◆ m_th1_recyminusextrapyfarpot
TH1F* ALFA_GloRec::m_th1_recyminusextrapyfarpot |
|
private |
◆ m_th1_recyminusextrapynearpot
TH1F* ALFA_GloRec::m_th1_recyminusextrapynearpot |
|
private |
◆ m_th1_recyminustruey
TH1F* ALFA_GloRec::m_th1_recyminustruey |
|
private |
◆ m_th1_recyoverextrapyfarpot
TH1F* ALFA_GloRec::m_th1_recyoverextrapyfarpot |
|
private |
◆ m_th1_recyoverextrapynearpot
TH1F* ALFA_GloRec::m_th1_recyoverextrapynearpot |
|
private |
◆ m_th1_recyovertruey
TH1F* ALFA_GloRec::m_th1_recyovertruey |
|
private |
◆ m_th1_recyslopeminustrueyslope
TH1F* ALFA_GloRec::m_th1_recyslopeminustrueyslope |
|
private |
◆ m_th1_recyslopeovertrueyslope
TH1F* ALFA_GloRec::m_th1_recyslopeovertrueyslope |
|
private |
◆ m_th1_x_g
TH1F* ALFA_GloRec::m_th1_x_g |
|
private |
◆ m_th1_xfarlwpotresiduals
TH1F* ALFA_GloRec::m_th1_xfarlwpotresiduals |
|
private |
◆ m_th1_xfaruppotresiduals
TH1F* ALFA_GloRec::m_th1_xfaruppotresiduals |
|
private |
◆ m_th1_xnearlwpotresiduals
TH1F* ALFA_GloRec::m_th1_xnearlwpotresiduals |
|
private |
◆ m_th1_xnearuppotresiduals
TH1F* ALFA_GloRec::m_th1_xnearuppotresiduals |
|
private |
◆ m_th1_xslope_g
TH1F* ALFA_GloRec::m_th1_xslope_g |
|
private |
◆ m_th1_y_g
TH1F* ALFA_GloRec::m_th1_y_g |
|
private |
◆ m_th1_yfarlwpotresiduals
TH1F* ALFA_GloRec::m_th1_yfarlwpotresiduals |
|
private |
◆ m_th1_yfaruppotresiduals
TH1F* ALFA_GloRec::m_th1_yfaruppotresiduals |
|
private |
◆ m_th1_ynearlwpotresiduals
TH1F* ALFA_GloRec::m_th1_ynearlwpotresiduals |
|
private |
◆ m_th1_ynearuppotresiduals
TH1F* ALFA_GloRec::m_th1_ynearuppotresiduals |
|
private |
◆ m_th1_yslope_g
TH1F* ALFA_GloRec::m_th1_yslope_g |
|
private |
◆ m_th2_extrapxvsrecxfarpot
TH2F* ALFA_GloRec::m_th2_extrapxvsrecxfarpot |
|
private |
◆ m_th2_extrapxvsrecxnearpot
TH2F* ALFA_GloRec::m_th2_extrapxvsrecxnearpot |
|
private |
◆ m_th2_extrapyvsrecyfarpot
TH2F* ALFA_GloRec::m_th2_extrapyvsrecyfarpot |
|
private |
◆ m_th2_extrapyvsrecynearpot
TH2F* ALFA_GloRec::m_th2_extrapyvsrecynearpot |
|
private |
◆ m_th2_truexslopevsrecxslope
TH2F* ALFA_GloRec::m_th2_truexslopevsrecxslope |
|
private |
◆ m_th2_truexvsrecx
TH2F* ALFA_GloRec::m_th2_truexvsrecx |
|
private |
◆ m_th2_trueyslopevsrecyslope
TH2F* ALFA_GloRec::m_th2_trueyslopevsrecyslope |
|
private |
◆ m_th2_trueyvsrecy
TH2F* ALFA_GloRec::m_th2_trueyvsrecy |
|
private |
◆ m_TObjArrTrackPathPatterns
TObjArray ALFA_GloRec::m_TObjArrTrackPathPatterns |
|
private |
◆ m_TruthCollectionName
std::string ALFA_GloRec::m_TruthCollectionName |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_x_g_neg
double ALFA_GloRec::m_x_g_neg |
|
private |
◆ m_x_g_pos
double ALFA_GloRec::m_x_g_pos |
|
private |
◆ m_y_g_neg
double ALFA_GloRec::m_y_g_neg |
|
private |
◆ m_y_g_pos
double ALFA_GloRec::m_y_g_pos |
|
private |
◆ m_z_g_neg
double ALFA_GloRec::m_z_g_neg |
|
private |
◆ m_z_g_pos
double ALFA_GloRec::m_z_g_pos |
|
private |
The documentation for this class was generated from the following files:
TH1F * m_th1_recxslopeovertruexslope
void FillTrackCandHistos(AlfaTrackCand *trkcand)
TH1F * m_th1_recxminusextrapxfarpot
std::string m_TruthCollectionName
Const iterator class for DataVector/DataList.
TObjArray m_TObjArrTrackPathPatterns
AlfaLocalHit * GetFarLocalHit()
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
TH2F * m_th2_extrapyvsrecynearpot
TH2F * m_th2_extrapxvsrecxfarpot
TH1F * m_th1_xfaruppotresiduals
TH1F * m_th1_recyslopeminustrueyslope
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
TH1F * m_th1_recyslopeovertrueyslope
std::vector< SG::VarHandleKeyArray * > m_vhka
TH1F * m_th1_recxslopeminustruexslope
std::string m_strGloRecCollectionName
TH1F * m_th1_xfarlwpotresiduals
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
TH1F * m_th1_yfarlwpotresiduals
TH1F * m_th1_recxminusextrapxnearpot
IMessageSvc * getMessageSvc(bool quiet=false)
virtual void setOwner(IDataHandleHolder *o)=0
TH1F * m_th1_recyminusextrapynearpot
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
TH2F * m_th2_extrapxvsrecxnearpot
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::string m_strLocRecCorrCollectionName
TH2F * m_th2_extrapyvsrecyfarpot
::StatusCode StatusCode
StatusCode definition for legacy code.
TH1F * m_th1_recyoverextrapyfarpot
std::string m_strTrackPathPatterns
HepGeom::Point3D< double > * GetFarImpactPoint()
AlfaLocalHit * GetNearLocalHit()
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
TH1F * m_th1_xnearuppotresiduals
TH1F * m_th1_yfaruppotresiduals
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
TH2F * m_th2_truexslopevsrecxslope
TH1F * m_th1_recxminustruex
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
TH1F * m_th1_recyoverextrapynearpot
const GenParticle * ConstGenParticlePtr
TH1F * m_th1_recxovertruex
TH2F * m_th2_trueyslopevsrecyslope
value_type push_back(value_type pElem)
Add an element to the end of the collection.
TH1F * m_th1_recyovertruey
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataObjIDColl m_extendedExtraObjects
TH1F * m_th1_recxoverextrapxnearpot
TH1F * m_th1_recyminusextrapyfarpot
TH1F * m_th1_xnearlwpotresiduals
#define ATH_MSG_WARNING(x)
std::string m_strGloRecAnalysisFile
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
TH1F * m_th1_ynearuppotresiduals
TH1F * m_th1_recxoverextrapxfarpot
TH1F * m_th1_recyminustruey
AthAlgorithm()
Default constructor:
const HepMC::GenVertex * ConstGenVertexPtr
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
HepGeom::Point3D< double > * GetNearImpactPoint()
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
ALFA_GloRecEvCollection * m_pGloRecEvCollection
TH1F * m_th1_ynearlwpotresiduals