#include <vector>
#include <string>
#include <set>
#include <iostream>
#include "LArSamplesMon/Data.h"
#include "LArSamplesMon/Interface.h"
#include "LArSamplesMon/HistoryIterator.h"
#include "LArSamplesMon/History.h"
#include "LArSamplesMon/LArCellsEmptyMonitoring.h"
#include "LArCafJobs/CellInfo.h"
#include "LArCafJobs/ShapeInfo.h"
#include "LArCafJobs/EventData.h"
#include "LArCafJobs/CaloId.h"
#include "CxxUtils/checker_macros.h"
#include "TROOT.h"
#include "TApplication.h"
#include "TSystem.h"
Go to the source code of this file.
◆ ATLAS_NOT_THREAD_SAFE()
int main ATLAS_NOT_THREAD_SAFE |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 335 of file LCE_CellList.cxx.
337 if (
argc<3 || (
argc>1 && (!strcmp(
argv[1],
"-h") || !strcmp(
argv[1],
"--help")))) {
338 std::cout <<
"Syntax:" << std::endl;
339 std::cout <<
"RunLCE.exe inFile outFile <defectLBfile>" << std::endl;
346 char* defectsLBFileName=
nullptr;
348 defectsLBFileName=
argv[3];
350 TROOT
root (
"root",
"root");
351 #if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
352 ROOT::Cintex::Cintex::Enable();
355 gSystem->Load(
"libLArCafJobsDict.so");
356 gSystem->Load(
"libLArSamplesMonDict.so");
359 if (gSystem->AccessPathName(
inputFile)) {
360 printf(
"Cannot access file %s.\n",
inputFile);
367 if (defectsLBFileName) {
371 const float Ethr=1000.0;
373 const float Qthr=4000;
376 printf(
"Thresholds:\n");
377 printf(
"\tAbsolute Energy: %.2f MeV\n",Ethr);
378 printf(
"\tSigma Noise: %.2f\n",
nSigma);
379 printf(
"\tQuality Factor: %.2f\n\n",Qthr);
384 printf(
"Total number of cells read from LCE ntuple: %zu\n",celllist.size());
385 lceList.
addFlags(celllist, nLBsSeen);
std::vector< LCE_CellList::thrCounter_t > buildList(const char *inputfile, const float nSigma, const float Ethr, const float QThr, unsigned &nLBsSeen) const