ATLAS Offline Software
Loading...
Searching...
No Matches
GetLCDeadMaterial Class Reference

Top algorithm to final processing of dead material tree and producing of dead material constants. More...

#include <GetLCDeadMaterial.h>

Inheritance diagram for GetLCDeadMaterial:
Collaboration diagram for GetLCDeadMaterial:

Public Member Functions

 GetLCDeadMaterial (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~GetLCDeadMaterial ()
virtual StatusCode initialize ()
virtual StatusCode execute (const EventContext &ctx)
 Execute method.
virtual StatusCode finalize ()
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< std::string > m_HadDMCoeffInputFile {this, "HadDMCoeffInputFile", "CaloHadDMCoeff_init_v2.txt", "Name of text file with initial parameters for coefficients calculation"}
 Name of text file with initial parameters for coefficients calculation.
Gaudi::Property< std::string > m_HadDMCoeffOutputFile {this, "HadDMCoeffOutputFile", "CaloHadDMCoeff_output.txt", "Name of text file with calculated coefficients"}
 Name of text file with calculated coefficients.
Gaudi::Property< std::string > m_reportProfiles {this, "ReportProfiles", "report_CaloHadDMCoeff_profiles.ps", "Name of postscript file for fit summary"}
 Name of postscript file for fit summary.
Gaudi::Property< std::string > m_reportMinimization {this, "ReportMinimization", "report_CaloHadDMCoeff_minim.ps", "Name of postscript file for minimization summary"}
 Name of postscript file for minimization summary.
Gaudi::Property< std::string > m_reportCheck {this, "ReportCheck", "report_CaloHadDMCoeff_check.ps", "Name of postscript file for results of toy reconstruction"}
 Name of postscript file for results of toy reconstruction.
Gaudi::Property< bool > m_doFit {this, "DoFit", true, "Do TProfile fitting"}
 Do TProfile fitting.
Gaudi::Property< bool > m_doMinimization {this, "DoMinimization", false, "Do minimization"}
 Do minimization.
Gaudi::Property< bool > m_doPool {this, "DoPool", true, "Do pool writing"}
 Do pool writing.
Gaudi::Property< bool > m_doCheck {this, "DoCheck", true, "Do toy reconstruction for final validation of new dead material constants"}
 Do toy reconstruction for final validation of new dead material constants.
Gaudi::Property< std::vector< std::string > > m_inputRootFiles {this, "InputRootFiles", {}, "List of root files to process"}
 List of root files to process.
Gaudi::Property< std::string > m_key {this, "CorrectionKey", "HadDMCoeff2", "Name of key to write into pool file"}
 Name of key to write into pool file.
Gaudi::Property< bool > m_isTestbeam {this, "isTestbeam", false, "H6 combined testbeam flag"}
 H6 combined testbeam flag.
bool m_isSingleParticle {true}
 data sample contains single particles only
Gaudi::Property< std::string > m_NormalizationTypeForFit {this, "NormalizationTypeForFit", "Lin", "Normalization type for fit procedure"}
 Normalization type for fit procedure.
Gaudi::Property< std::string > m_NormalizationTypeForMinim {this, "NormalizationTypeForMinim", "Lin", "Normalization type for minimization procedure"}
 Normalization type for minimization procedure.
std::string m_ClassificationType {"pdg"}
 use particle id information
Gaudi::Property< int > m_MaxEventsPerFile {this, "MaxEventsPerFile", 0, "Number of maximum events to process in one root files"}
 number of maximum events to process in one root files
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Top algorithm to final processing of dead material tree and producing of dead material constants.

Version
$Id: GetLCDeadMaterial.h,v 1.1 2009-03-03 17:30:21 pospelov Exp $
Author
Gennady Pospelov guenn.nosp@m.adi..nosp@m.pospe.nosp@m.lov@.nosp@m.cern..nosp@m.ch
Date
23-Januar-2009

It runs sequentially following algorithms: CaloHadDMCoeffFit to fit TProfiles histograms, CaloHadDMCoeffMinim to run minimisation, then it saves constants into pool and text files, and finally it runs toy reconstruction to produce dmreco .vs. dmtruth plots

Definition at line 32 of file GetLCDeadMaterial.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ GetLCDeadMaterial()

GetLCDeadMaterial::GetLCDeadMaterial ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 44 of file GetLCDeadMaterial.cxx.

46 : AthAlgorithm(name, pSvcLocator)
47{
48}
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.

◆ ~GetLCDeadMaterial()

GetLCDeadMaterial::~GetLCDeadMaterial ( )
virtual

Definition at line 55 of file GetLCDeadMaterial.cxx.

56{
57
58}

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode GetLCDeadMaterial::execute ( const EventContext & ctx)
virtual

Execute method.

Implements AthAlgorithm.

Definition at line 197 of file GetLCDeadMaterial.cxx.

198{
199 ATH_MSG_INFO( " Nothing to be done in execute() method " );
200 return StatusCode::SUCCESS;
201}
#define ATH_MSG_INFO(x,...)

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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 & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ finalize()

StatusCode GetLCDeadMaterial::finalize ( )
virtual

Definition at line 186 of file GetLCDeadMaterial.cxx.

187{
188 ATH_MSG_INFO( " Nothing to be done in finalize() method " );
189 return StatusCode::SUCCESS;
190}

◆ initialize()

StatusCode GetLCDeadMaterial::initialize ( )
virtual

Definition at line 65 of file GetLCDeadMaterial.cxx.

66{
67 //std::cout << std::endl;
68 //std::cout << std::endl;
69 //std::cout << "--- GetLCDeadMaterial::initialize() --- " << std::endl;
70
71 /* ********************************************
72 default coefficients
73 ******************************************** */
74 CaloLocalHadCoeffHelper dmHelper;
75 std::string fileName = PathResolver::find_file (m_HadDMCoeffInputFile, "DATAPATH");
76 std::unique_ptr<CaloLocalHadCoeff> initHadDMCoeff (dmHelper.InitDataFromFile(fileName.c_str()));
77 if( !initHadDMCoeff ) {
78 ATH_MSG_FATAL( " Error while initializing default dead material coefficients " );
79 return StatusCode::FAILURE;
80 }
81 //dmHelper.PrintData(initHadDMCoeff, std::cout);
82 ATH_MSG_INFO( " Number of dead material areas defined:" << initHadDMCoeff->getSizeAreaSet()
83 << ", total number of correction coefficients:" << initHadDMCoeff->getSizeCoeffSet() );
84
85 /* ********************************************
86 input chain
87 ******************************************** */
88 TChain *pChain = new TChain("DeadMaterialTree");
89 if( m_inputRootFiles.value().empty() ) {
90 ATH_MSG_FATAL( " Empty vector of input root files! " );
91 return StatusCode::FAILURE;
92 }
93 for (const std::string& fname : m_inputRootFiles.value()) {
94 ATH_MSG_INFO( " Adding root file '" <<fname << "'" );
95 pChain->Add( fname.c_str() );
96 }
97
98 // pointer to the chain and data in it
99 std::unique_ptr<CaloHadDMCoeffData> dmData (new CaloHadDMCoeffData(pChain));
100 if(m_ClassificationType == "particleid") {
101 ATH_MSG_INFO( "Particle ID em fraction will be used to classify clusters:" );
102 m_isSingleParticle = false;
103 dmData->SetClassificationType(CaloHadDMCoeffData::kCLASSIFY_USE_PARTICLEID);
104 }
105 dmData->SetMaxEventsPerFile(m_MaxEventsPerFile);
106
107 std::unique_ptr<CaloLocalHadCoeff> newHadDMCoeffFit;
108 std::unique_ptr<CaloLocalHadCoeff> newHadDMCoeffMinim;
109
110 // TProfile approach (presamplers, material between EMB&TILE, EMEC&HEC)
111 // and lookup approach (leakages, unclassified DM energy)
112 if(m_doFit) {
113 CaloHadDMCoeffFit *dmFit = new CaloHadDMCoeffFit();
115 newHadDMCoeffFit = std::unique_ptr<CaloLocalHadCoeff>(dmFit->process(dmData.get(), initHadDMCoeff.get(), m_isSingleParticle, m_isTestbeam));
116 if( !newHadDMCoeffFit ) {
117 ATH_MSG_FATAL( "Failed in CaloHadDMCoeffFit::process()" );
118 delete dmFit;
119 return StatusCode::FAILURE;
120 }
121 if(!m_reportProfiles.value().empty()) dmFit->make_report(m_reportProfiles.value());
122 delete dmFit;
123 }
124
125 // minimization approach (material before FCAL)
126 if(m_doMinimization) {
127 CaloHadDMCoeffMinim *dmMinim = new CaloHadDMCoeffMinim();
129 if(newHadDMCoeffFit) {
130 // to use previous coefficients as initial values
131 newHadDMCoeffMinim = std::unique_ptr<CaloLocalHadCoeff>(dmMinim->process(dmData.get(), newHadDMCoeffFit.get(), m_isSingleParticle, m_isTestbeam));
132 }else{
133 newHadDMCoeffMinim = std::unique_ptr<CaloLocalHadCoeff>(dmMinim->process(dmData.get(), initHadDMCoeff.get(), m_isSingleParticle, m_isTestbeam));
134 }
135 if( !newHadDMCoeffMinim ) {
136 ATH_MSG_FATAL( "Failed in CaloHadDMCoeffMinim::process()" );
137 return StatusCode::FAILURE;
138 }
139 if(!m_reportMinimization.value().empty()) dmMinim->make_report(m_reportMinimization.value());
140 delete dmMinim;
141 }
142
143 CaloLocalHadCoeff *result = nullptr;
144 if(newHadDMCoeffMinim) {
145 result = new CaloLocalHadCoeff(*newHadDMCoeffMinim);
146 }else if(newHadDMCoeffFit) {
147 result = new CaloLocalHadCoeff(*newHadDMCoeffFit);
148 }else{
149 result = new CaloLocalHadCoeff(*initHadDMCoeff);
150 }
151 // prints coefficients to ASCII file
152 if (result) {
153 std::ofstream fout;
154 fout.open(m_HadDMCoeffOutputFile.value().c_str());
155 dmHelper.PrintData(result, fout);
156 fout.close();
157 }
158
159 // writing data to the pool
160 if(m_doPool) {
161 ATH_CHECK( detStore()->record(result,m_key.value()) );
162 ATH_CHECK( detStore()->setConst(result) );
163 }
164
165 // running toy reconstruction for validation of new dead material constants
166 if(m_doCheck) {
167 CaloHadDMCoeffCheck *dmCheck = new CaloHadDMCoeffCheck();
168 dmCheck->process(dmData.get(), result, m_isSingleParticle, m_isTestbeam);
169 dmCheck->make_report(m_reportCheck.value());
170 delete dmCheck;
171 }
172
173 // end of the game
174 delete pChain;
175
176 if(result && !m_doPool) delete result;
177
178 return StatusCode::SUCCESS;
179}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x,...)
const ServiceHandle< StoreGateSvc > & detStore() const
int process(CaloHadDMCoeffData *myData, CaloLocalHadCoeff *myHadDMCoeff, bool isSingleParticle=true, bool tbflag=false)
void make_report(std::string &sfname)
void SetNormalizationType(std::string &stype)
void make_report(std::string &sfname)
CaloLocalHadCoeff * process(CaloHadDMCoeffData *myData, CaloLocalHadCoeff *myHadDMCoeff, bool isSingleParticle=true, bool tbflag=false)
CaloLocalHadCoeff * process(CaloHadDMCoeffData *myData, CaloLocalHadCoeff *myHadDMCoeff, bool isSingleParticle=true, bool tbflag=false)
void SetNormalizationType(std::string &stype)
void make_report(std::string &sfname)
CaloLocalHadCoeff * InitDataFromFile(const char *fname)
void PrintData(const CaloLocalHadCoeff *data, std::ostream &fout)
Gaudi::Property< std::string > m_HadDMCoeffInputFile
Name of text file with initial parameters for coefficients calculation.
Gaudi::Property< std::vector< std::string > > m_inputRootFiles
List of root files to process.
Gaudi::Property< std::string > m_reportCheck
Name of postscript file for results of toy reconstruction.
Gaudi::Property< std::string > m_NormalizationTypeForMinim
Normalization type for minimization procedure.
Gaudi::Property< bool > m_doFit
Do TProfile fitting.
Gaudi::Property< bool > m_isTestbeam
H6 combined testbeam flag.
bool m_isSingleParticle
data sample contains single particles only
Gaudi::Property< std::string > m_HadDMCoeffOutputFile
Name of text file with calculated coefficients.
Gaudi::Property< std::string > m_reportMinimization
Name of postscript file for minimization summary.
Gaudi::Property< bool > m_doCheck
Do toy reconstruction for final validation of new dead material constants.
Gaudi::Property< bool > m_doMinimization
Do minimization.
Gaudi::Property< int > m_MaxEventsPerFile
number of maximum events to process in one root files
Gaudi::Property< bool > m_doPool
Do pool writing.
Gaudi::Property< std::string > m_key
Name of key to write into pool file.
std::string m_ClassificationType
use particle id information
Gaudi::Property< std::string > m_NormalizationTypeForFit
Normalization type for fit procedure.
Gaudi::Property< std::string > m_reportProfiles
Name of postscript file for fit summary.
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
static TFile * fout
Definition listroot.cxx:40
void setConst()
Set the const flag for this expression.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ return false; }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ m_ClassificationType

std::string GetLCDeadMaterial::m_ClassificationType {"pdg"}
private

use particle id information

Definition at line 122 of file GetLCDeadMaterial.h.

122{"pdg"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_doCheck

Gaudi::Property<bool> GetLCDeadMaterial::m_doCheck {this, "DoCheck", true, "Do toy reconstruction for final validation of new dead material constants"}
private

Do toy reconstruction for final validation of new dead material constants.

Definition at line 87 of file GetLCDeadMaterial.h.

87{this, "DoCheck", true, "Do toy reconstruction for final validation of new dead material constants"};

◆ m_doFit

Gaudi::Property<bool> GetLCDeadMaterial::m_doFit {this, "DoFit", true, "Do TProfile fitting"}
private

Do TProfile fitting.

Definition at line 72 of file GetLCDeadMaterial.h.

72{this, "DoFit", true, "Do TProfile fitting"};

◆ m_doMinimization

Gaudi::Property<bool> GetLCDeadMaterial::m_doMinimization {this, "DoMinimization", false, "Do minimization"}
private

Do minimization.

Definition at line 77 of file GetLCDeadMaterial.h.

77{this, "DoMinimization", false, "Do minimization"};

◆ m_doPool

Gaudi::Property<bool> GetLCDeadMaterial::m_doPool {this, "DoPool", true, "Do pool writing"}
private

Do pool writing.

Definition at line 82 of file GetLCDeadMaterial.h.

82{this, "DoPool", true, "Do pool writing"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_HadDMCoeffInputFile

Gaudi::Property<std::string> GetLCDeadMaterial::m_HadDMCoeffInputFile {this, "HadDMCoeffInputFile", "CaloHadDMCoeff_init_v2.txt", "Name of text file with initial parameters for coefficients calculation"}
private

Name of text file with initial parameters for coefficients calculation.

Definition at line 47 of file GetLCDeadMaterial.h.

47{this, "HadDMCoeffInputFile", "CaloHadDMCoeff_init_v2.txt", "Name of text file with initial parameters for coefficients calculation"};

◆ m_HadDMCoeffOutputFile

Gaudi::Property<std::string> GetLCDeadMaterial::m_HadDMCoeffOutputFile {this, "HadDMCoeffOutputFile", "CaloHadDMCoeff_output.txt", "Name of text file with calculated coefficients"}
private

Name of text file with calculated coefficients.

Definition at line 52 of file GetLCDeadMaterial.h.

52{this, "HadDMCoeffOutputFile", "CaloHadDMCoeff_output.txt", "Name of text file with calculated coefficients"};

◆ m_inputRootFiles

Gaudi::Property<std::vector<std::string> > GetLCDeadMaterial::m_inputRootFiles {this, "InputRootFiles", {}, "List of root files to process"}
private

List of root files to process.

Definition at line 92 of file GetLCDeadMaterial.h.

92{this, "InputRootFiles", {}, "List of root files to process"};

◆ m_isSingleParticle

bool GetLCDeadMaterial::m_isSingleParticle {true}
private

data sample contains single particles only

Definition at line 107 of file GetLCDeadMaterial.h.

107{true};

◆ m_isTestbeam

Gaudi::Property<bool> GetLCDeadMaterial::m_isTestbeam {this, "isTestbeam", false, "H6 combined testbeam flag"}
private

H6 combined testbeam flag.

Definition at line 102 of file GetLCDeadMaterial.h.

102{this, "isTestbeam", false, "H6 combined testbeam flag"};

◆ m_key

Gaudi::Property<std::string> GetLCDeadMaterial::m_key {this, "CorrectionKey", "HadDMCoeff2", "Name of key to write into pool file"}
private

Name of key to write into pool file.

Definition at line 97 of file GetLCDeadMaterial.h.

97{this, "CorrectionKey", "HadDMCoeff2", "Name of key to write into pool file"};

◆ m_MaxEventsPerFile

Gaudi::Property<int> GetLCDeadMaterial::m_MaxEventsPerFile {this, "MaxEventsPerFile", 0, "Number of maximum events to process in one root files"}
private

number of maximum events to process in one root files

Definition at line 127 of file GetLCDeadMaterial.h.

127{this, "MaxEventsPerFile", 0, "Number of maximum events to process in one root files"};

◆ m_NormalizationTypeForFit

Gaudi::Property<std::string> GetLCDeadMaterial::m_NormalizationTypeForFit {this, "NormalizationTypeForFit", "Lin", "Normalization type for fit procedure"}
private

Normalization type for fit procedure.

Definition at line 112 of file GetLCDeadMaterial.h.

112{this, "NormalizationTypeForFit", "Lin", "Normalization type for fit procedure"};

◆ m_NormalizationTypeForMinim

Gaudi::Property<std::string> GetLCDeadMaterial::m_NormalizationTypeForMinim {this, "NormalizationTypeForMinim", "Lin", "Normalization type for minimization procedure"}
private

Normalization type for minimization procedure.

Definition at line 117 of file GetLCDeadMaterial.h.

117{this, "NormalizationTypeForMinim", "Lin", "Normalization type for minimization procedure"};

◆ m_reportCheck

Gaudi::Property<std::string> GetLCDeadMaterial::m_reportCheck {this, "ReportCheck", "report_CaloHadDMCoeff_check.ps", "Name of postscript file for results of toy reconstruction"}
private

Name of postscript file for results of toy reconstruction.

Definition at line 67 of file GetLCDeadMaterial.h.

67{this, "ReportCheck", "report_CaloHadDMCoeff_check.ps", "Name of postscript file for results of toy reconstruction"};

◆ m_reportMinimization

Gaudi::Property<std::string> GetLCDeadMaterial::m_reportMinimization {this, "ReportMinimization", "report_CaloHadDMCoeff_minim.ps", "Name of postscript file for minimization summary"}
private

Name of postscript file for minimization summary.

Definition at line 62 of file GetLCDeadMaterial.h.

62{this, "ReportMinimization", "report_CaloHadDMCoeff_minim.ps", "Name of postscript file for minimization summary"};

◆ m_reportProfiles

Gaudi::Property<std::string> GetLCDeadMaterial::m_reportProfiles {this, "ReportProfiles", "report_CaloHadDMCoeff_profiles.ps", "Name of postscript file for fit summary"}
private

Name of postscript file for fit summary.

Definition at line 57 of file GetLCDeadMaterial.h.

57{this, "ReportProfiles", "report_CaloHadDMCoeff_profiles.ps", "Name of postscript file for fit summary"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 386 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: