Low-Energy Muon (LEM) Experiment  0.5.2
mcp1_ana_module.cxx File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include "midas.h"
#include "rmidas.h"
#include "v1190.h"
#include "experim.h"
#include "nemu_experim.h"
#include <TH1F.h>
#include <TH2F.h>
#include <TTree.h>
Include dependency graph for mcp1_ana_module.cxx:

Go to the source code of this file.

Macros

#define N_MCP1HIST   3
 

Functions

 MCP1ANAMODULE_PARAM_STR (mcp1_ana_param_str)
 
INT mcp1_init (void)
 
INT mcp1_ana (EVENT_HEADER *, void *)
 
INT mcp1_bor (INT run_number)
 
INT mcp1_eor (INT run_number)
 

Variables

RUNINFO runinfo
 /Runinfo ODB key, defined in from midas.h More...
 
TRIGGER_SETTINGS trigger_settings
 /Equipment/Trigger/Settings More...
 
MCP1ANAMODULE_PARAM mcp1_ana_param
 
ANA_MODULE mcp1_ana_module
 
static TH1F * hMCP1Hist [N_MCP1HIST]
 
TFolder * gManaHistosFolder
 
TObjArray * gHistoFolderStack
 
static DWORD dataWindowMuonDecay
 

Macro Definition Documentation

#define N_MCP1HIST   3

Definition at line 63 of file mcp1_ana_module.cxx.

Referenced by mcp1_bor(), and mcp1_init().

Function Documentation

INT mcp1_ana ( EVENT_HEADER *  pheader,
void *  pevent 
)

Function mcp1_ana:

locates TDC0 bank, fills time histograms

Definition at line 127 of file mcp1_ana_module.cxx.

References BCL1, BCL2, BCL3, BCL4, BCR1, BCR2, BCR3, BCR4, LEM_DATA::channel, LEM_DATA::data, DATA_N_HITS, dataWindowMuonDecay, EVENT_0_TYPE, hMCP1Hist, MCP1, N_TDC_CHANNELS, NEW_EVENT_MASK, POSMCP1I, POSMCP1O, and TRIGGER_SETTINGS::tof_bc_window.

INT mcp1_eor ( INT  run_number)

Definition at line 115 of file mcp1_ana_module.cxx.

MCP1ANAMODULE_PARAM_STR ( mcp1_ana_param_str  )

Variable Documentation

DWORD dataWindowMuonDecay
static

Definition at line 71 of file mcp1_ana_module.cxx.

Referenced by mcp1_ana(), mcp1_bor(), and mcp1_init().

TObjArray* gHistoFolderStack
TFolder* gManaHistosFolder
TH1F* hMCP1Hist[N_MCP1HIST]
static

Definition at line 65 of file mcp1_ana_module.cxx.

Referenced by mcp1_ana(), mcp1_bor(), and mcp1_init().

ANA_MODULE mcp1_ana_module
Initial value:
= {
"MCP1AnaModule",
"Thomas Prokscha",
NULL,
sizeof(mcp1_ana_param),
(const char **)mcp1_ana_param_str,
}
INT mcp1_init(void)
INT mcp1_bor(INT run_number)
INT mcp1_eor(INT run_number)
MCP1ANAMODULE_PARAM mcp1_ana_param
INT mcp1_ana(EVENT_HEADER *, void *)

Definition at line 49 of file mcp1_ana_module.cxx.

MCP1ANAMODULE_PARAM mcp1_ana_param

Definition at line 40 of file mcp1_ana_module.cxx.

RUNINFO runinfo

/Runinfo ODB key, defined in from midas.h

Not defined in experim.h:

Definition at line 83 of file analyzer.cxx.

TRIGGER_SETTINGS trigger_settings

/Equipment/Trigger/Settings

The following structures are defined in experim.h that is created by entering 'make' in ODBedit.

ODB record values can be easily accessed by db_open_record which creates a hot-link to the structure; structure_name.keyvalue

Definition at line 93 of file analyzer.cxx.