ATLAS Offline Software
Functions
L1CaloPprPhos4ShapeMaker.cxx File Reference
#include "TrigT1CaloCalibUtils/L1CaloPprPhos4ShapeMaker.h"
#include "TH2F.h"
#include "TStyle.h"
#include "TFile.h"
Include dependency graph for L1CaloPprPhos4ShapeMaker.cxx:

Go to the source code of this file.

Functions

StatusCode L1CaloPprPhos4ShapeMaker::finalize ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options. More...
 

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode L1CaloPprPhos4ShapeMaker::finalize ATLAS_NOT_THREAD_SAFE ( )
inline

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Install fatal handler with default options.

getLorentzAngle() Read LorentzAngle from HIST and write out into local DB

getBSErrors() Read BSErrors from Monitoring HIST and write out into local DB

getEfficiency() Read Efficiency from Monitoring HIST and write out into local DB

getRawOccupancy() Read RawOccupancy from Monitoring HIST and write out into local DB

getNoiseOccupancy() Read NoiseOccupancy from HIST and write out into local DB

getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats

Install fatal handler with default options.

called at the end of each athena event (can be used for eg.

called at the beginning of each athena event (can be used for eg.

return the simulation service ID

resetting dynamic selectors)

beginning of the loop of channels

bad bit newly found

known bad bit

for low noisy cells

for high noisy cells

0.01 is used to scale "PER" to the same order of magnitude to "SIG"

smaller deviation: distorted

checking TmaxAmp, Not mixed with MaxAmp and Width

channel information output

Only dead or distorted, or short known BCs are considered below.

index of bc

now add branches and leaves to the tree

now add branches and leaves to the tree

Definition at line 427 of file L1CaloPprPhos4ShapeMaker.cxx.

427  {
428  // Place your post-event-loop code here
429  ATH_MSG_INFO("In finalize()");
430 
431  StatusCode sc = m_signalShapes->Finalize();
432  if(sc.isFailure()){
433  ATH_MSG_WARNING(" PHOS4 Signal Shapes did not Finalize correctly." );
434  return sc;
435  }
436 
437 
438  // Write selected Cool ID plots to disk
439 
440  if(m_selectedCoolIds.size() > 0){
441  char temp[50];
442  std::string filename = "selectedCoodIds";
443  if(m_runNumber != 0){
444  sprintf(temp,"%08u",m_runNumber);
445  filename += "_";
446  filename += temp;
447  }
448  filename += ".root";
449 
450  std::string filePath = m_outputDirectory + filename;
451  TFile outputFile(filePath.c_str(),"RECREATE");
452 
453  for(unsigned int i=0;i<m_selectedCoolIds.size();++i){
454  std::map<unsigned int,TH2F*>::iterator itr = m_histosForSelectedCoolIds.find(m_selectedCoolIds[i]);
455  if(itr == m_histosForSelectedCoolIds.end()) continue;
456 
457  itr->second->Write();
458 
459  }
460 
461  outputFile.Close();
462  }
463 
464 
465  return StatusCode::SUCCESS;
466 }
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
compareGeometries.outputFile
string outputFile
Definition: compareGeometries.py:25
lumiFormat.i
int i
Definition: lumiFormat.py:92
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
hancool.filePath
string filePath
Definition: hancool.py:28
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24