source: JEM-EUSO/esaf_cc_at_lal/macros/tools/MakePixelEffMap.C @ 114

Last change on this file since 114 was 114, checked in by moretto, 11 years ago

actual version of ESAF at CCin2p3

File size: 1.7 KB
Line 
1// $Id: MakePixelMapPhotonFile.C 2847 2010-10-19 16:03:33Z fenu $
2// Author: A.Thea   2005/04/19
3
4/*****************************************************************************
5 * ESAF: Euso Simulation and Analysis Framework                              *
6 *                                                                           *
7 *  Id: MakePixelMapPhotonFile                                               *
8 *  Package: Macros                                                          *
9 *  Coordinator: Alessandro.Thea                                             *
10 *                                                                           *
11 *****************************************************************************/
12
13
14//______________________________________________________________________________
15void MakePixelEffMap() {
16    //
17    // Builds the pixlemap photons file according the current config
18    //
19
20    EsafMsgDispatcher::Get()->SetScreenSeverity(EsafMsg::Info);
21    PixelEffMapBuilder builder;
22    builder.ProcessAll();
23}
24
25//______________________________________________________________________________
26void MakeUID_Histos_Tree() {
27    //
28    // Builds the pixlemap photons file according the current config
29    //
30
31    EsafMsgDispatcher::Get()->SetScreenSeverity(EsafMsg::Debug);
32    PixelEffMapBuilder builder("READ");
33    builder.MakeUID_Histos_Tree();
34}
35
36//______________________________________________________________________________
37void MakeUserPixelEffMap(const char* usercfg=0 ) {
38    //
39    // Builds the pixlemap photons file according the user config
40    //
41
42    if ( usercfg ) {
43        cout << "User config file " << usercfg << " loaded" << endl;
44        Config::Get()->LoadUserConfig(usercfg);
45    }
46
47    MakePixelEffMap(  );
48}
Note: See TracBrowser for help on using the repository browser.