ATLAS Offline Software
Public Member Functions | List of all members
python.BeamSpotPostProcessing.MergeNt Class Reference
Inheritance diagram for python.BeamSpotPostProcessing.MergeNt:
Collaboration diagram for python.BeamSpotPostProcessing.MergeNt:

Public Member Functions

def run (self)
 

Detailed Description

Definition at line 196 of file BeamSpotPostProcessing.py.

Member Function Documentation

◆ run()

def python.BeamSpotPostProcessing.MergeNt.run (   self)

Definition at line 197 of file BeamSpotPostProcessing.py.

197  def run(self):
198  ntFileName = self.getFileName('-nt.root')
199  if os.path.exists('/'.join([self.taskDir,ntFileName])):
200  self.logExec('cd %s; rm -f %s' % (self.taskDir,ntFileName))
201  postProcFiles = self.taskFileList('*-nt.root','POSTPROCESSING',self.jobName)
202  self.log(text='Found %i ntuple files from POSTPROCESSING jobs ...' % len(postProcFiles))
203  completedFiles = self.taskFileList('*-nt.root','COMPLETED',self.jobName)
204  self.log(text='Found %i ntuple files from COMPLETED jobs ...' % len(completedFiles))
205  ntFiles = sorted(postProcFiles+completedFiles)
206  if len(ntFiles)>0:
207  #self.logExec('cd %s; hadd -f %s %s' % (self.taskDir,ntFileName,' '.join(ntFiles)))
208  self.hadd(self.taskDir,ntFileName,ntFiles)
209  self.addResult(ntFileName)
210  else:
211  raise PostProcessingError('WARNING: No beam spot ntuple files to merge',self.executedSteps)
212 
213 

The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10