ATLAS Offline Software
Loading...
Searching...
No Matches
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();
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}
@Basic class aimed at running simple LAr monitoring function on ntuples produced from that very same ...
void SetLumiblockRange(bool inputRange=false, int input_lbmin=0, int input_lbmax=0)
void ReadDefectLBList(bool ReadList, const TString &LBfile)
void SetEnergyCountThresholds(double ecut=1., int counts1=250, double enecell1=1.5, int counts2=25, double enecell2=30)