Skip to content

Commit 9f2938f

Browse files
committed
initial version of 3d DUNE event display
1 parent 8732192 commit 9f2938f

15 files changed

+1500
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414
*.swo
1515
*.bin
1616
*.db
17+
*.cc.*
18+
*.h.*
19+
*.txt.*
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
2+
3+
art_make(BASENAME_ONLY
4+
LIB_LIBRARIES
5+
${ROOT_CORE}
6+
${ROOT_EVE}
7+
cetlib_except
8+
cetlib::cetlib
9+
larcorealg_Geometry
10+
lardataobj_RawData
11+
art::Persistency_Common canvas
12+
SERVICE_LIBRARIES
13+
duneana_EventDisplay3D
14+
${ART_ROOT_IO_ROOTINPUT_SOURCE}
15+
MODULE_LIBRARIES
16+
nusimdata_SimulationBase
17+
larreco_RecoAlg
18+
duneana_EventDisplay3D
19+
EvtDisplayService_service
20+
)
21+
22+
install_headers()
23+
install_fhicl()
24+
install_source()
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// If the ROOT interactive environment has NOT already been established,
3+
// then the ROOT global variable gApplication is null. Once the
4+
// environment has been established, gApplication is non-null.
5+
//
6+
// To create the environment, create an instance of TApplication.
7+
// Doing this will set gApplication to a non-null value.
8+
// It is ROOT's responsibility to delete the instance of TApplication
9+
// at the end of the job. This code must not delete it.
10+
//
11+
12+
#include "EnsureTApplication.h"
13+
14+
#include "TApplication.h"
15+
16+
dune::EnsureTApplication::EnsureTApplication(int argc, char** argv)
17+
{
18+
if (!gApplication) {
19+
new TApplication("noapplication", &argc, argv);
20+
}
21+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#ifndef EventDisplay3D_EnsureTApplication_h
2+
#define EventDisplay3D_EnsureTApplication_h
3+
//
4+
// If an art module wishes to open a TCanvas on the screen
5+
// then the interactive ROOT environment must be created. However
6+
// it must only be created once per art job.
7+
//
8+
// The purpose of this class is to check to see if that environment
9+
// has been created. If it has, do nothing. If it has not, create it.
10+
//
11+
12+
namespace dune {
13+
14+
class EnsureTApplication {
15+
16+
public:
17+
explicit EnsureTApplication(int argc = 0, char** argv = nullptr);
18+
19+
private:
20+
};
21+
22+
} // end namespace dune
23+
24+
#endif /* Analyzers_EnsureTApplication_h */

0 commit comments

Comments
 (0)