Skip to content

Commit 20ccaab

Browse files
authored
Merge pull request #296 from VERITAS-Observatory/492-dev6
v492 dev6 - minor updates.
2 parents 4cc3477 + 7311692 commit 20ccaab

10 files changed

+22
-17
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
repos:
22
# https://pycqa.github.io/isort/docs/configuration/black_compatibility.html#integration-with-pre-commit
33
- repo: https://github.com/pycqa/isort
4-
rev: 5.13.2
4+
rev: 6.0.1
55
hooks:
66
- id: isort
77
args: ["--profile", "black", "--filter-files"]
88
- repo: https://github.com/psf/black
9-
rev: 24.10.0
9+
rev: 25.1.0
1010
hooks:
1111
- id: black
1212
args: ["--line-length=100"]
1313
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html?highlight=other%20tools#flake8
1414
- repo: https://github.com/PyCQA/flake8
15-
rev: 7.1.1
15+
rev: 7.2.0
1616
hooks:
1717
- id: flake8
1818
args: ["--max-line-length=100", "--extend-ignore=E203,E712"]
@@ -31,7 +31,7 @@ repos:
3131
# - id: actionlint
3232
# codespell
3333
- repo: https://github.com/codespell-project/codespell
34-
rev: v2.3.0
34+
rev: v2.4.1
3535
hooks:
3636
- id: codespell
3737
args: [

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Eventdisplay: An Analysis and Reconstruction Package for VERITAS
22

33
[![DOI](https://zenodo.org/badge/221041866.svg)](https://zenodo.org/badge/latestdoi/221041866)
4+
[![ASCL](https://img.shields.io/badge/ascl-2212.002-blue.svg?colorB=262255)](https://ascl.net/2212.002)
45
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
56
[![CI](https://github.com/VERITAS-Observatory/EventDisplay_v4/actions/workflows/ci.yml/badge.svg)](https://github.com/VERITAS-Observatory/EventDisplay_v4/actions/workflows/ci.yml)
67

src/VAnaSum.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,9 @@ void VAnaSum::doStereoAnalysis( int icounter, int onrun, int offrun, TDirectory*
568568
fstereo_onoff->doOnOffforSkyHistograms( fStereoOn->getSkyHistograms( true ), fStereoOff->getSkyHistograms( true ), fStereoOff->getAlphaNormUC() );
569569

570570
// print out maximum in maps
571-
cout << "\t Maximum in CORRELATED maps: " << endl;
571+
cout << "\t Maximum in CORRELATED maps:" << endl;
572572
TH2D* hStSig = ( TH2D* )fstereo_onoff->do2DSignificance( fStereoOn->getStereoSkyMap(), fStereoOff->getStereoSkyMap(), fStereoOff->getAlphaNorm() );
573-
cout << "\t Maximum in UNCORRELATED maps: " << endl;
573+
cout << "\t Maximum in UNCORRELATED maps:" << endl;
574574
TH2D* hStSigUC = ( TH2D* )fstereo_onoff->do2DSignificance( fStereoOn->getStereoSkyMapUC(), fStereoOff->getStereoSkyMapUC(), fStereoOff->getAlphaNormUC() );
575575

576576
////////////////////////////////////////////////////////////
@@ -595,9 +595,9 @@ void VAnaSum::doStereoAnalysis( int icounter, int onrun, int offrun, TDirectory*
595595
}
596596

597597
cout << endl;
598-
cout << "\t ---------------------------- " << endl;
599-
cout << "\t RESULTS FOR SOURCE POSITION: " << endl;
600-
cout << "\t ---------------------------- " << endl;
598+
cout << "\t ----------------------------" << endl;
599+
cout << "\t RESULTS FOR SOURCE POSITION:" << endl;
600+
cout << "\t ----------------------------" << endl;
601601
cout << "\t ON:" << i_nevts_on << " OFF:" << setprecision( 4 ) << i_nevts_off* i_norm_alpha << " (";
602602
cout << "off " << i_nevts_off << ", alpha=" << i_norm_alpha << ")" << endl;
603603
cout << "\t " << setprecision( 4 ) << i_sig << " Sigma " << i_rate << "+/-" << i_rateE << " gammas/min" << endl;

src/VAnaSumRunParameter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ int VAnaSumRunParameter::readRunParameter( string i_filename )
696696
}
697697
is.close();
698698
cout << "========================================================" << endl;
699-
cout << " end reading run parameters " << endl;
699+
cout << " end reading run parameters" << endl;
700700
cout << "========================================================" << endl;
701701
cout << endl;
702702

src/VEvndispRunParameter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,8 @@ void VEvndispRunParameter::print( int iEv )
759759
cout << "\t trace integration method: \t" << fTraceIntegrationMethod[fTelToAnalyze[i]];
760760
if( fDoublePass )
761761
{
762-
cout << "\t (doublepass, integration method pass 1: " << fTraceIntegrationMethod_pass1[fTelToAnalyze[i]] << ")";
762+
cout << "\t (doublepass, integration method pass 1: " << fTraceIntegrationMethod_pass1[fTelToAnalyze[i]] << ", ";
763+
cout << "\t max LG/HG time difference: " << fSumWindowMaxTimeDifferenceLGtoHG[fTelToAnalyze[i]] << ")";
763764
}
764765
cout << endl;
765766
cout << "\t start of summation window: \t" << fsumfirst[fTelToAnalyze[i]];

src/VExposure.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,8 +2438,8 @@ void VExposure::downloadRunList()
24382438

24392439
char* ENVIR_VAR;
24402440

2441-
char mkdir_string[800];
2442-
char permision_string[800];
2441+
char mkdir_string[1800];
2442+
char permision_string[1800];
24432443

24442444
ENVIR_VAR = getenv( "VERITAS_DATA_DIR" );
24452445

src/VImageBaseAnalyzer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,10 +1377,14 @@ void VImageBaseAnalyzer::calcSecondTZerosSums()
13771377
if( corrfirst < ( int )getNSamples() )
13781378
{
13791379
// get new tzero for sumwindow starting at corrfirst to the end of the window
1380-
// assume that high and low gain timing is not more than 5 samples off
1380+
// assume that high and low gain timing is not more than getSumWindowMaxTimeDifferenceLGtoHG samples off
13811381
if( getSumWindowMaxTimeDifferenceLGtoHG() > -998. )
13821382
{
13831383
corrfirst += getSumWindowMaxTimeDifferenceLGtoHG();
1384+
if( corrfirst < 0 )
1385+
{
1386+
corrfirst = 0;
1387+
}
13841388
}
13851389
else
13861390
{

src/VRunSummary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void VRunSummary::print()
169169
char itemp[200];
170170

171171
cout << endl << endl;
172-
cout << "RUN SUMMARY: " << endl << endl;
172+
cout << "RUN SUMMARY:" << endl << endl;
173173

174174
for( int i = 0; i < fRunSummaryTree->GetEntries(); i++ )
175175
{

src/VTableLookup.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ void VTableLookup::fillLookupTable()
567567
// get telescope type
568568
ULong64_t t = iter_i_list_of_Tel_type->first;
569569

570-
// This should be already the corrected/scaled size value for MC.
571570
float* i_s = fData->getSize( t, fTLRunParameter->fUseEvndispSelectedImagesOnly );
572571
float* i_r = fData->getDistanceToCore( t );
573572
unsigned int i_type = fData->getNTel_type( t );

src/VTableLookupRunParameter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ bool VTableLookupRunParameter::fillParameters( int argc, char* argv[] )
415415
}
416416
}
417417
// get telescope combinations (from first file if several files are given)
418-
if( inputfile[0].find( "*" ) == string::npos )
418+
if( inputfile.size() > 0 )
419419
{
420420
readTelescopeToAnalyze( inputfile[0] );
421421
}

0 commit comments

Comments
 (0)