ROOTANA
Loading...
Searching...
No Matches
Functions | Variables
event_skim.cxx File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <assert.h>
#include <signal.h>
#include <errno.h>
#include "TMidasEvent.h"
#include "midasio.h"
#include <vector>
Include dependency graph for event_skim.cxx:

Go to the source code of this file.

Functions

void HandleMidasEvent (TMidasEvent &event)
 
int ProcessMidasFile (const char *fname, TMWriterInterface *writer)
 
void help ()
 
int main (int argc, char *argv[])
 

Variables

int gEventCutoff = 0
 

Function Documentation

◆ HandleMidasEvent()

void HandleMidasEvent ( TMidasEvent event)

Trigger word definition (64 bit unsigned long):

  • Bits 0-31: Event number
  • Bits 32-47: Spill number
  • Bits 48-57: Trigger bits
    • Bit 48: Beam spill
    • Bit 49: Pedestal/noise
    • Bit 50: TPC laser
    • Bit 51: POD LED
    • Bit 52: ECAL LED
    • Bit 53: FGD LED
    • Bit 54: FEE calibration
    • Bit 55: TRIP-t cosmic
    • Bit 56: Reserved for FGD cosmic
    • Bit 57: unused
  • Bits 58-63: Instruction
    • Bit 58: Reserved for start-of-run
    • Bit 59: Reserved for end-of-run
    • Bit 60: 1 PPS / counter reset
    • Bit 61: Go to spill mode
    • Bit 62: Go to cosmic mode
    • Bit 63: Decline CTM request/abort

Definition at line 26 of file event_skim.cxx.

Here is the caller graph for this function:

◆ help()

void help ( )

Definition at line 161 of file event_skim.cxx.

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 177 of file event_skim.cxx.

Here is the call graph for this function:

◆ ProcessMidasFile()

int ProcessMidasFile ( const char *  fname,
TMWriterInterface writer 
)

Definition at line 96 of file event_skim.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ gEventCutoff

int gEventCutoff = 0

Definition at line 23 of file event_skim.cxx.