ATLAS Offline Software
Functions
RunLCE.cxx File Reference
#include "LArSamplesMon/LArCellsEmptyMonitoring.h"
#include <vector>
#include <string>
#include <iostream>
#include "TROOT.h"
#include "TApplication.h"
#include "TSystem.h"
#include "CxxUtils/checker_macros.h"
Include dependency graph for RunLCE.cxx:

Go to the source code of this file.

Functions

void RunLCE ATLAS_NOT_THREAD_SAFE (const char *inputFile, const char *defectLBFN)
 

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

void RunLCE ATLAS_NOT_THREAD_SAFE ( const char *  inputFile,
const char *  defectLBFN 
)

Definition at line 55 of file RunLCE.cxx.

56 {
57 
58  // TString workdir = gSystem->Getenv("WORKDIR");
59  // if (workdir == "")
60  // {
61  // TString user = gSystem->Getenv("USER");
62  // workdir = "/tmp/" + user;
63  // }
64  // TString inputFile = workdir + "/sample_" + runNumber + ".root";
65 
66  if (gSystem->AccessPathName(inputFile))
67  {
68  cout << "Cannot access file " << inputFile << ", exiting from RunLCE.C" << endl;
69  return;
70  }
71 
72  // main object - checks LArIdTranslatorHelper within needs LarIdTree.root in $PWD
74 
76  lce->SetSaveRootFile(0);
77  lce->SetSaveTextFile(1);
78  lce->SetAlgo(2);
79  lce->SetLumiblockRange();
80  lce->SetBadLBRemovalOption(0);
81  lce->SetQthreshold();
82  lce->SetNoiseNsigma();
83  lce->SetQthreshold();
84  lce->SetEnergyCountThresholds(1.,50,1,20,10);
85  //lce->SetCellRange(minCell,maxCell);
86 
87  // If using ntuples which have had defect / non-ATLAS ready LBs removed at the merging stage, use:
88  if (defectLBFN)
89  lce->ReadDefectLBList(true,defectLBFN);
90 
91  // else read in the defect list manually using:
92  // lce->ReadDefectLBList(1,"/tmp/larmon/DQ.list.defects.dat");
93  // lce->ScanOnlids("/afs/cern.ch/user/o/osimard/scratch0/samples_larCellsEmpty_166466_merged.root");
94  printf("==\n");
95  //lce->Run(inputFile,outputPath);
96  lce->Run(inputFile);
97 
98  return;
99 }
LArSamples::LArCellsEmptyMonitoring::SetSaveRootFile
void SetSaveRootFile(bool flag=false)
Definition: LArCellsEmptyMonitoring.h:51
LArSamples::LArCellsEmptyMonitoring::SetSaveTextFile
void SetSaveTextFile(bool flag=false)
Definition: LArCellsEmptyMonitoring.h:53
LArSamples::LArCellsEmptyMonitoring::SetAlgo
void SetAlgo(int algoindex=2)
Definition: LArCellsEmptyMonitoring.h:55
LArSamples::LArCellsEmptyMonitoring::SetBadLBRemovalOption
void SetBadLBRemovalOption(bool removeLB=true)
Definition: LArCellsEmptyMonitoring.h:62
LArSamples::LArCellsEmptyMonitoring::SetSelectRecurringBadCells
void SetSelectRecurringBadCells(bool flag=false)
Definition: LArCellsEmptyMonitoring.h:54
LArSamples::LArCellsEmptyMonitoring::SetNoiseNsigma
void SetNoiseNsigma(double nsig=10.)
Definition: LArCellsEmptyMonitoring.h:64
CaloCondBlobAlgs_fillNoiseFromASCII.inputFile
string inputFile
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:17
LArSamples::LArCellsEmptyMonitoring::Run
void Run(const TString &inputfile)
Definition: LArCellsEmptyMonitoring.cxx:422
LArSamples::LArCellsEmptyMonitoring::SetEnergyCountThresholds
void SetEnergyCountThresholds(double ecut=1., int counts1=250, double enecell1=1.5, int counts2=25, double enecell2=30)
Definition: LArCellsEmptyMonitoring.h:65
LArSamples::LArCellsEmptyMonitoring::ReadDefectLBList
void ReadDefectLBList(bool ReadList, const TString &LBfile)
Definition: LArCellsEmptyMonitoring.cxx:1436
LArSamples::LArCellsEmptyMonitoring::SetLumiblockRange
void SetLumiblockRange(bool inputRange=false, int input_lbmin=0, int input_lbmax=0)
Definition: LArCellsEmptyMonitoring.h:57
LArSamples::LArCellsEmptyMonitoring::SetQthreshold
void SetQthreshold(int qvalue=4000)
Definition: LArCellsEmptyMonitoring.h:63
LArSamples::LArCellsEmptyMonitoring
Definition: LArCellsEmptyMonitoring.h:24