ATLAS Offline Software
|
Calculate calibration hit based moments for CaloCluster objects using Primary Particle ID. More...
#include <CaloCalibClusterMomentsMaker2.h>
Classes | |
class | CalibHitIPhiIEtaRange |
Class to define range of valid bins in eta x phi plane. More... | |
class | MyCellInfo |
Class to store cluster number and weight for calorimeter cells. More... | |
class | MyClusInfo |
Class to store cluster's calibration energies. More... | |
Public Types | |
typedef std::map< Identifier, MyCellInfo > | CellInfoSet_t |
typedef std::vector< MyClusInfo > | ClusInfo_t |
typedef std::pair< std::string, xAOD::CaloCluster::MomentType > | moment_name_pair |
typedef for a pair to index the enums defined in CaloClusterMoment with a string. More... | |
typedef std::vector< moment_name_pair > | moment_name_vector |
vector of pairs defined above. More... | |
typedef std::set< moment_name_pair > | moment_name_set |
set of pairs defined above. More... | |
Public Member Functions | |
CaloCalibClusterMomentsMaker2 (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual StatusCode | execute (const EventContext &ctx, xAOD::CaloClusterContainer *theClusColl) const override |
Execute on an entire collection of clusters. More... | |
virtual StatusCode | initialize () override |
virtual StatusCode | execute (const EventContext &ctx, xAOD::CaloClusterContainer *collection) const=0 |
Execute on an entire collection of clusters. More... | |
virtual StatusCode | execute (xAOD::CaloClusterContainer *collection) final |
Execute on an entire collection of clusters. 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 | sysInitialize () override |
Perform system initialization for an algorithm. 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 |
virtual StatusCode | execute (xAOD::CaloClusterContainer *collection) final |
Execute on an entire collection of clusters. More... | |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Standard Gaudi interface ID method. More... | |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
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. More... | |
Private Types | |
enum | keys_dm_energy_sharing { kMatchDmOff, kMatchDmLoose, kMatchDmMedium, kMatchDmTight } |
enum | keys_calib_frac_origin { kCalibFracEM, kCalibFracHAD, kCalibFracREST, kCalibFracMax } |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Static Private Member Functions | |
static double | angle_mollier_factor (double x) |
Private Attributes | |
std::vector< std::string > | m_momentsNames |
vector holding the input list of names of moments to calculate. More... | |
moment_name_vector | m_validNames |
vector holding the names of valid moments which can be calculated. More... | |
moment_name_set | m_validMoments |
set of moments which will be calculated. More... | |
std::vector< std::string > | m_momentsNamesAOD |
vector holding the list of moment names which go in the first store i.e. More... | |
std::set< xAOD::CaloCluster::MomentType > | m_momentsAOD |
set holding the list of moment enums which go in the first store i.e. More... | |
SG::ReadHandleKeyArray< CaloCalibrationHitContainer > | m_CalibrationHitContainerNames |
vector of calibration hit container names to use. More... | |
SG::ReadHandleKeyArray< CaloCalibrationHitContainer > | m_DMCalibrationHitContainerNames |
vector of dead material calibration hit container names to use. More... | |
SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_truthParticleContainerKey {this,"TruthParticles","TruthParticles","ReadHandleKey for truth particle container"} |
ReadHandleKey for truth particle container. More... | |
SG::ReadCondHandleKey< CaloDetDescrManager > | m_caloDetDescrMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"} |
Conditions Handle Key to access the CaloDetDescrManager. More... | |
const CaloCell_ID * | m_calo_id |
const CaloDM_ID * | m_caloDM_ID |
const CaloDmDescrManager * | m_caloDmDescrManager |
int | m_n_phi_out |
int | m_n_eta_out |
double | m_out_phi_max |
double | m_out_eta_max |
double | m_rmaxOut [3] |
std::array< std::vector< std::vector< CalibHitIPhiIEtaRange > >, 3 > | m_i_phi_eta |
std::atomic< bool > | m_foundAllContainers {} |
bool | m_doDeadEnergySharing |
bool | m_doOutOfClusterL |
bool | m_doOutOfClusterM |
bool | m_doOutOfClusterT |
bool | m_doDeadL |
bool | m_doDeadM |
bool | m_doDeadT |
bool | m_useParticleID |
bool | m_doCalibFrac |
float | m_energyMin |
float | m_energyMinCalib |
float | m_apars_alpha |
float | m_apars_r0 |
int | m_MatchDmType |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Calculate calibration hit based moments for CaloCluster objects using Primary Particle ID.
Definition at line 43 of file CaloCalibClusterMomentsMaker2.h.
typedef std::map<Identifier, MyCellInfo> CaloCalibClusterMomentsMaker2::CellInfoSet_t |
Definition at line 64 of file CaloCalibClusterMomentsMaker2.h.
typedef std::vector<MyClusInfo> CaloCalibClusterMomentsMaker2::ClusInfo_t |
Definition at line 94 of file CaloCalibClusterMomentsMaker2.h.
typedef std::pair<std::string,xAOD::CaloCluster::MomentType> CaloCalibClusterMomentsMaker2::moment_name_pair |
typedef for a pair to index the enums defined in CaloClusterMoment with a string.
Definition at line 100 of file CaloCalibClusterMomentsMaker2.h.
typedef std::set<moment_name_pair> CaloCalibClusterMomentsMaker2::moment_name_set |
set of pairs defined above.
Definition at line 106 of file CaloCalibClusterMomentsMaker2.h.
typedef std::vector<moment_name_pair> CaloCalibClusterMomentsMaker2::moment_name_vector |
vector of pairs defined above.
Definition at line 103 of file CaloCalibClusterMomentsMaker2.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
Enumerator | |
---|---|
kCalibFracEM | |
kCalibFracHAD | |
kCalibFracREST | |
kCalibFracMax |
Definition at line 200 of file CaloCalibClusterMomentsMaker2.h.
Enumerator | |
---|---|
kMatchDmOff | |
kMatchDmLoose | |
kMatchDmMedium | |
kMatchDmTight |
Definition at line 199 of file CaloCalibClusterMomentsMaker2.h.
CaloCalibClusterMomentsMaker2::CaloCalibClusterMomentsMaker2 | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 53 of file CaloCalibClusterMomentsMaker2.cxx.
|
staticprivate |
Definition at line 811 of file CaloCalibClusterMomentsMaker2.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
virtual StatusCode CaloClusterCollectionProcessor::execute |
Execute on an entire collection of clusters.
collection | The container of clusters. param ctx The event context. |
|
overridevirtual |
Execute on an entire collection of clusters.
collection | The container of clusters. param ctx The event context. |
Implements CaloClusterCollectionProcessor.
Definition at line 275 of file CaloCalibClusterMomentsMaker2.cxx.
|
inlinefinalvirtualinherited |
Execute on an entire collection of clusters.
collection | The container of clusters. (deprecated) |
Definition at line 49 of file CaloClusterCollectionProcessor.h.
|
inlinefinal |
Execute on an entire collection of clusters.
collection | The container of clusters. (deprecated) |
Definition at line 49 of file CaloClusterCollectionProcessor.h.
|
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
|
overridevirtual |
Definition at line 145 of file CaloCalibClusterMomentsMaker2.cxx.
|
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.
|
inlinestaticinherited |
Standard Gaudi interface ID method.
Definition at line 58 of file CaloClusterCollectionProcessor.h.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 213 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 214 of file CaloCalibClusterMomentsMaker2.h.
|
private |
vector of calibration hit container names to use.
The containers specified in this property should hold calibration hits inside the calorimeter systems.
Definition at line 167 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 182 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Conditions Handle Key to access the CaloDetDescrManager.
Definition at line 180 of file CaloCalibClusterMomentsMaker2.h.
Definition at line 184 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 186 of file CaloCalibClusterMomentsMaker2.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
vector of dead material calibration hit container names to use.
The containers specified in this property should hold calibration hits outside the calorimeter systems - i.e. dead material hits ...
Definition at line 174 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 210 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 202 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 206 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 207 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 208 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 203 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 204 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 205 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 211 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 212 of file CaloCalibClusterMomentsMaker2.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
mutableprivate |
Definition at line 197 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 195 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 215 of file CaloCalibClusterMomentsMaker2.h.
|
private |
set holding the list of moment enums which go in the first store i.e.
they are available on the AOD.
Only moments listed in this property can later be directly retrieved from AOD - the others are available in the ESD ...
Definition at line 160 of file CaloCalibClusterMomentsMaker2.h.
|
private |
vector holding the input list of names of moments to calculate.
This is the list of desired names of moments given in the jobOptions.
Definition at line 125 of file CaloCalibClusterMomentsMaker2.h.
|
private |
vector holding the list of moment names which go in the first store i.e.
they are available on the AOD.
Only moments listed in this property can later be directly retrieved from AOD - the others are available in the ESD ...
Definition at line 152 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 189 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 188 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 191 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 190 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 193 of file CaloCalibClusterMomentsMaker2.h.
|
private |
ReadHandleKey for truth particle container.
Definition at line 177 of file CaloCalibClusterMomentsMaker2.h.
|
private |
Definition at line 209 of file CaloCalibClusterMomentsMaker2.h.
|
private |
set of moments which will be calculated.
This set will hold each valid enum indexed with the name if it was found on the input list (m_momentsNames) and in the list of valid moment names (m_validNames).
Definition at line 144 of file CaloCalibClusterMomentsMaker2.h.
|
private |
vector holding the names of valid moments which can be calculated.
Each name has to correspond to one of the enums in CaloClusterMoment. This list is defined in the constructor of CaloCalibClusterMomentsMaker2 and holds the names and enums of moments defined in CaloClusterMoment. The name is used as the key to the enum.
Definition at line 136 of file CaloCalibClusterMomentsMaker2.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.