LarsoftServiceAccess.h
Go to the documentation of this file.
1 // LarsoftServiceAccess.h
2 
3 // David Adams
4 // January 2017
5 //
6 // Add ArtServicePointer specializations for LArSoft services so they
7 // can be accessed from the Root command line.
8 //
9 // The providers listed here may be accessed via provider type instead
10 // of service type.
11 //
12 // Usage example:
13 // root> gSystem->SetBuildDir(".aclic");
14 // root> gSystem->AddLinkedLibs(gSystem->ExpandPathName("$DUNETPC_LIB/libdune_ArtSupport.so"));
15 // root> gSystem->AddLinkedLibs(gSystem->ExpandPathName("$DUNETPC_LIB/libdune_LarsoftServiceAccess.so"));
16 // root> .L $DUNETPC_INC/dunecore/ArtSupport/ArtServiceHelper.h+
17 // root> .L $DUNETPC_INC/dune/LarsoftServiceAccess/LarsoftServiceAccess.h+
18 // root> ArtServiceHelper& ash = ArtServiceHelper::load("standard_reco_dune35tdata.fcl");
19 // root> ChannelGroupService* pcgs = ArtServicePointer<ChannelGroupService>();
20 // root> pcgs->print();
21 
22 #ifndef LarsoftServiceAccess_H
23 #define LarsoftServiceAccess_H
24 
27 
28 using geo::GeometryCore;
30 
31 template<class P> const P* ArtServiceProvider();
32 
35 
36 #endif
const GeometryCore * ArtServiceProvider< GeometryCore >()
const ChannelStatusProvider * ArtServiceProvider< ChannelStatusProvider >()
std::pair< float, std::string > P
const P * ArtServiceProvider()
Class providing information about the quality of channels.
Description of geometry of one entire detector.
Interface for experiment-specific channel quality info provider.
Access the description of detector geometry.