|
ATLAS Offline Software
|
Go to the documentation of this file.
20 const IInterface*
p) :
23 declareInterface<DerivationFramework::IAugmentationTool>(
this);
34 if (fullLUTFileName.empty() ) {
36 return StatusCode::FAILURE;
39 TFile* lutFile = TFile::Open(fullLUTFileName.c_str() );
40 if (lutFile->IsZombie() )
return StatusCode::FAILURE;
43 lutFile->GetObject(
"LUT", lutFromFile);
46 return StatusCode::FAILURE;
49 m_LUT.reset(
dynamic_cast<TH2*
>(lutFromFile->Clone() ) );
50 m_LUT->SetDirectory(0);
52 return StatusCode::SUCCESS;
57 return StatusCode::SUCCESS;
87 float KFMETx = l1_kf->
exMiss();
88 float KFMETy = l1_kf->
eyMiss();
89 float KFSumEt = l1_kf->
energyT();
91 for (
const auto jet : *l1Jets) {
93 int ptBin =
m_LUT->GetYaxis()->FindBin( log2(
jet->et8x8() / 1000.) );
94 if (ptBin==0) ptBin=1;
95 float KFweight =
m_LUT->GetBinContent(
etaBin, ptBin);
96 float jetContribution =
jet->et8x8() * KFweight;
98 KFMETx -= jetContribution *
cos(
jet->phi() );
99 KFMETy -= jetContribution *
sin(
jet->phi() );
100 KFSumEt += jetContribution;
109 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
void setEnergyX(float value)
Set the total energy deposited in the X direction.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
float energyT() const
The deposited total transverse energy.
EnergySumRoIAuxInfo_v2 EnergySumRoIAuxInfo
Declare the most recent version of the energy-sum auxiliary info.
Auxiliary store for an EnergySum RoI object.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap etaBin
void setStore(const SG::IConstAuxStore *store)
Set the store associated with this object.
::StatusCode StatusCode
StatusCode definition for legacy code.
void setEnergyY(float value)
Set the total energy deposited in the Y direction.
void setEnergyT(float value)
Set the deposited total transverse energy.
float exMiss() const
The missing energy in the X direction.
EnergySumRoI_v2 EnergySumRoI
float eyMiss() const
The missing energy in the Y direction.
Class describing a LVL1 energy-sum "RoI".