|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.lcd.util.driver.AbstractProcessor | +--hep.lcd.contrib.util.EventScan
EventScan is a class that will print out interesting quantities from the event. It can be used in either of two ways:
add(new EventScan(EMCLUS | HADCLUS));
EventScan.printAll (event, EMCLUS | HADCLUS);
The possible flags are MC
to print original
particle information; VXD
, TRACKER
,
EM
, HAD
, LUM
, and
MUON
to print hit information; and
TRACKS
, EMCLUS
, HADCLUS
and
REFINED
to print reconstructed information. One can
also include the FULL
flag to print out the complete
list of hit information instead of just the summary.
Not only is this class informative, but it might also be useful as a tutorial for extracting information from the LCDEvent header.
Field Summary | |
static int |
EM
Flag to print EM calorimeter hit information. |
static int |
EMCLUS
Flag to print all the reconstructed EM clusters. |
static int |
FULL
Flag to print all the hit information for the VXD, TRACKER, EM, HAD, LUM and MUON detectors. |
static int |
HAD
Flag to print hadron calorimeter hit information. |
static int |
HADCLUS
Flag to print all the reconstructed HAD clusters. |
static int |
LUM
Flag to print luminosity calorimeter hit information. |
static int |
MC
Flag to print MC particle information. |
static int |
MUON
Flag to print muon detector hit information. |
static int |
REFINED
Flag to print all the "refined" clusters. |
static int |
TRACKER
Flag to print tracking detector hit information. |
static int |
TRACKS
Flag to print all the reconstructed tracks. |
static int |
VXD
Flag to print vertex detector hit information. |
Fields inherited from class hep.lcd.util.driver.AbstractProcessor |
context |
Constructor Summary | |
EventScan()
The default constructor sets things up to print nothing by default. |
|
EventScan(int flags)
This constructor sets the default print flags. |
Method Summary | |
void |
printAll(LCDEvent event)
This version of printAll() prints the event with the default flags. |
static void |
printAll(LCDEvent event,
int printflags)
This version of printAll() can be called by the user with the specified flags (no object need be constructed). |
void |
process(LCDEvent event)
process is called automatically each event when installed by a driver. |
void |
setFlags(int flags)
setFlags() can be used to change the print flags for an object. |
Methods inherited from class hep.lcd.util.driver.AbstractProcessor |
clearContext, getDebugLevel, getDebugStream, getHistogramLevel, getName, getParameterFile, getParameters, getParameters, getRandom, histogram, init, setContext, setDetector, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MC
public static final int VXD
FULL
is also specified, then prints every hit.public static final int TRACKER
FULL
is also specified, then prints every hit.public static final int EM
FULL
is also specified, then prints every hit.public static final int HAD
FULL
is also specified, then prints every hit.public static final int LUM
FULL
is also specified, then prints every hit.public static final int MUON
FULL
is also specified, then prints every hit.public static final int TRACKS
public static final int EMCLUS
public static final int HADCLUS
public static final int REFINED
public static final int FULL
Constructor Detail |
public EventScan()
setFlags(int)
public EventScan(int flags)
setFlags(int)
Method Detail |
public void setFlags(int flags)
flags
- bit mask of flags or'd together to indicate which detectors
to print information for.public void process(LCDEvent event)
event
- The event object.public void printAll(LCDEvent event)
event
- The event object.public static void printAll(LCDEvent event, int printflags)
event
- The event object.flags
- bit mask of flags or'd together to indicate which detectors
to print information for.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |