|  | ATLAS Offline Software
    | 
 
 
 
Top algorithm to final processing of dead material tree and producing of dead material constants.  
 More...
#include <GetLCDeadMaterial.h>
|  | 
|  | GetLCDeadMaterial (const std::string &name, ISvcLocator *pSvcLocator) | 
|  | 
| virtual | ~GetLCDeadMaterial () | 
|  | 
| virtual StatusCode | initialize () | 
|  | 
| virtual StatusCode | execute () | 
|  | 
| virtual StatusCode | finalize () | 
|  | 
| 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 theStoreGateSvc.  More...
 | 
|  | 
| const ServiceHandle< StoreGateSvc > & | evtStore () const | 
|  | The standard StoreGateSvc(event store) Returns (kind of) a pointer to theStoreGateSvc.  More...
 | 
|  | 
| const ServiceHandle< StoreGateSvc > & | detStore () const | 
|  | The standard StoreGateSvc/DetectorStoreReturns (kind of) a pointer to theStoreGateSvc.  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, V, H > &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 | 
|  | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleKey>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleKeyArray>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleBase>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) | 
|  | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>  More... 
 | 
|  | 
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 31 of file GetLCDeadMaterial.h.
◆ StoreGateSvc_t
◆ GetLCDeadMaterial()
      
        
          | GetLCDeadMaterial::GetLCDeadMaterial | ( | const std::string & | name, | 
        
          |  |  | ISvcLocator * | pSvcLocator | 
        
          |  | ) |  |  | 
      
 
 
◆ ~GetLCDeadMaterial()
  
  | 
        
          | GetLCDeadMaterial::~GetLCDeadMaterial | ( |  | ) |  |  | virtual | 
 
 
◆ 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 GetLCDeadMaterial::execute | ( |  | ) |  |  | virtual | 
 
 
◆ 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 GetLCDeadMaterial::finalize | ( |  | ) |  |  | virtual | 
 
 
◆ initialize()
  
  | 
        
          | StatusCode GetLCDeadMaterial::initialize | ( |  | ) |  |  | virtual | 
 
Definition at line 111 of file GetLCDeadMaterial.cxx.
  123   if( !initHadDMCoeff ) {
 
  124     ATH_MSG_FATAL( 
" Error while initializing default dead material coefficients " );
 
  125     return StatusCode::FAILURE;
 
  128   ATH_MSG_INFO( 
"  Number of dead material areas defined:" << initHadDMCoeff->getSizeAreaSet()
 
  129       << 
", total number of correction coefficients:" << initHadDMCoeff->getSizeCoeffSet() );
 
  134   TChain *pChain = 
new TChain(
"DeadMaterialTree");
 
  137     return StatusCode::FAILURE;
 
  141     pChain->Add( 
fname.c_str() );
 
  147     ATH_MSG_INFO( 
"Particle ID em fraction will be used to classify clusters:"  );
 
  153   std::unique_ptr<CaloLocalHadCoeff> newHadDMCoeffFit;
 
  154   std::unique_ptr<CaloLocalHadCoeff> newHadDMCoeffMinim;
 
  162     if( !newHadDMCoeffFit ) {
 
  165       return StatusCode::FAILURE;
 
  175     if(newHadDMCoeffFit) {
 
  181     if( !newHadDMCoeffMinim ) {
 
  183       return StatusCode::FAILURE;
 
  190   if(newHadDMCoeffMinim) {
 
  192   }
else if(newHadDMCoeffFit) {
 
  224   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_ClassificationType
  
  | 
        
          | std::string GetLCDeadMaterial::m_ClassificationType |  | private | 
 
 
◆ m_detStore
◆ m_doCheck
  
  | 
        
          | bool GetLCDeadMaterial::m_doCheck |  | private | 
 
Do toy reconstruction for final validation of new dead material constants. 
Definition at line 86 of file GetLCDeadMaterial.h.
 
 
◆ m_doFit
  
  | 
        
          | bool GetLCDeadMaterial::m_doFit |  | private | 
 
 
◆ m_doMinimization
  
  | 
        
          | bool GetLCDeadMaterial::m_doMinimization |  | private | 
 
 
◆ m_doPool
  
  | 
        
          | bool GetLCDeadMaterial::m_doPool |  | private | 
 
 
◆ m_evtStore
◆ m_extendedExtraObjects
  
  | 
        
          | DataObjIDColl AthAlgorithm::m_extendedExtraObjects |  | privateinherited | 
 
 
◆ m_HadDMCoeffInputFile
  
  | 
        
          | std::string GetLCDeadMaterial::m_HadDMCoeffInputFile |  | private | 
 
Name of text file with initial parameters for coefficients calculation. 
Definition at line 46 of file GetLCDeadMaterial.h.
 
 
◆ m_HadDMCoeffOutputFile
  
  | 
        
          | std::string GetLCDeadMaterial::m_HadDMCoeffOutputFile |  | private | 
 
 
◆ m_inputRootFiles
  
  | 
        
          | std::vector<std::string > GetLCDeadMaterial::m_inputRootFiles |  | private | 
 
 
◆ m_isSingleParticle
  
  | 
        
          | bool GetLCDeadMaterial::m_isSingleParticle |  | private | 
 
 
◆ m_isTestbeam
  
  | 
        
          | bool GetLCDeadMaterial::m_isTestbeam |  | private | 
 
 
◆ m_key
  
  | 
        
          | std::string GetLCDeadMaterial::m_key |  | private | 
 
 
◆ m_MaxEventsPerFile
  
  | 
        
          | int GetLCDeadMaterial::m_MaxEventsPerFile |  | private | 
 
 
◆ m_NormalizationTypeForFit
  
  | 
        
          | std::string GetLCDeadMaterial::m_NormalizationTypeForFit |  | private | 
 
 
◆ m_NormalizationTypeForMinim
  
  | 
        
          | std::string GetLCDeadMaterial::m_NormalizationTypeForMinim |  | private | 
 
 
◆ m_reportCheck
  
  | 
        
          | std::string GetLCDeadMaterial::m_reportCheck |  | private | 
 
Name of postscript file for results of toy reconstruction. 
Definition at line 66 of file GetLCDeadMaterial.h.
 
 
◆ m_reportMinimization
  
  | 
        
          | std::string GetLCDeadMaterial::m_reportMinimization |  | private | 
 
 
◆ m_reportProfiles
  
  | 
        
          | std::string GetLCDeadMaterial::m_reportProfiles |  | private | 
 
 
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
 
std::string m_ClassificationType
use particle id information
void make_report(std::string &sfname)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_doCheck
Do toy reconstruction for final validation of new dead material constants.
void PrintData(const CaloLocalHadCoeff *data, std::ostream &fout)
@ kCLASSIFY_USE_PARTICLEID
bool m_isTestbeam
H6 combined testbeam flag.
std::string m_NormalizationTypeForFit
Normalization type for fit procedure.
int process(CaloHadDMCoeffData *myData, CaloLocalHadCoeff *myHadDMCoeff, bool isSingleParticle=true, bool tbflag=false)
std::string m_reportCheck
Name of postscript file for results of toy reconstruction.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
CaloLocalHadCoeff * InitDataFromFile(const char *fname)
To fill and fit TProfile histograms using special dead material tree.
std::string m_key
Name of key to write into pool file.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual StatusCode sysInitialize() override
Override sysInitialize.
Runs toy reconstruction to validate dead material constants.
void make_report(std::string &sfname)
void make_report(std::string &sfname)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
int m_MaxEventsPerFile
number of maximum events to process in one root files
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Hold binned correction data for local hadronic calibration procedure.
void SetNormalizationType(std::string &stype)
Data to read from special DeadMaterialTree.
CaloLocalHadCoeff * process(CaloHadDMCoeffData *myData, CaloLocalHadCoeff *myHadDMCoeff, bool isSingleParticle=true, bool tbflag=false)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
bool m_doFit
Do TProfile fitting.
virtual void renounce()=0
std::string m_reportProfiles
Name of postscript file for fit summary.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void SetNormalizationType(std::string &stype)
bool m_doMinimization
Do minimization.
bool m_doPool
Do pool writing.
std::string m_HadDMCoeffOutputFile
Name of text file with calculated coefficients.
DataObjIDColl m_extendedExtraObjects
bool m_isSingleParticle
data sample contains single particles only
#define ATH_MSG_WARNING(x)
CaloLocalHadCoeff * process(CaloHadDMCoeffData *myData, CaloLocalHadCoeff *myHadDMCoeff, bool isSingleParticle=true, bool tbflag=false)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
std::string m_HadDMCoeffInputFile
Name of text file with initial parameters for coefficients calculation.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< std::string > m_inputRootFiles
List of root files to process.
AthAlgorithm()
Default constructor:
std::string m_reportMinimization
Name of postscript file for minimization summary.
std::string m_NormalizationTypeForMinim
Normalization type for minimization procedure.