hep.lcd.contrib.mc.analysis
Class BaseMonteCarlo

java.lang.Object
  |
  +--hep.lcd.util.driver.AbstractProcessor
        |
        +--hep.lcd.contrib.mc.analysis.BaseMonteCarlo
Direct Known Subclasses:
SimpleMonteCarlo

public class BaseMonteCarlo
extends AbstractProcessor
implements MonteCarlo, Serializable

Analyzes Monte Carlo particles within JAS framework.

See Also:
Serialized Form
Source Code:
BaseMonteCarlo.java

Field Summary
static String[] StatusCode
          Particle status codes
 
Fields inherited from class hep.lcd.util.driver.AbstractProcessor
context
 
Fields inherited from interface hep.lcd.contrib.mc.analysis.MonteCarlo
_bbbar, _Bhabha, _ccbar, _GamGam, _MuPair, _NuNubar, _QED, _Tau, _ttbar, _TwoPhoton, _uds, _Unidentified, _WW, _ZZ, AlphaID, BmesonID, bquarkID, Bs0ID, Bstar0ID, BstarID, cquarkID, DeuteronID, dquarkID, ElectronID, EventName, GluonID, K0ID, KaonID, KlongID, KshortID, LambdaCID, LambdaID, MuonID, NeutronID, NuEID, NuMuID, NuTauID, PhotonID, PionID, PiZeroID, PrimaryID, ProtonID, PythiaStringID, Rho0ID, RhoID, SigmaB0ID, squarkID, TauID, tquarkID, TritonID, UnknownID, uquarkID, WbosonID, Xi_c2_1P, Xi0ID, ZbosonID
 
Constructor Summary
BaseMonteCarlo()
           
BaseMonteCarlo(boolean hist)
           
 
Method Summary
 void findFinalParticles(LCDEvent event)
           
 double getCalCorEnergy()
           
 double getCalEnergy()
           
 double getChEnergy()
           
 String getDecayName()
           
 int getDecayType()
           
 double getECalCorEnergy()
           
 double getECalEnergy()
           
 String getEventName()
           
 int getEventType()
           
 double getFinalEnergy()
           
 double getHCalCorEnergy()
           
 double getHCalEnergy()
           
 MCParticle[] getHighest2P()
           
 Enumeration getKlongs(LCDEvent event)
           
 double getLumEnergy()
           
 int[] getMaxPartNum()
           
 Enumeration getMCParticles(LCDEvent event, int id)
           
 double getMissingEnergy()
           
 double getMuEnergy()
           
 int getNClusters()
           
 int getNDecayed()
           
 int getNElectrons()
           
 int getNEMClusters()
           
 double getNeutralEnergy()
           
 double getNeutralHadronEnergy()
           
 int getNFinal()
           
 int getNHadClusters()
           
 int getNMuons()
           
 int getNParticles()
           
 int getNPartons()
           
 int getNProngs()
           
 int getNTracks()
           
 MCParticle[] getPartons()
           
 double getPhotonEnergy()
           
 String getStatusName(int statusCode)
          Particle status codes
 double getTotalEnergy()
           
 void identifyDecays(LCDEvent event)
           
 void identifyEventType(LCDEvent event)
           
 boolean is_bbbar()
           
 boolean is_Bhabha()
           
 boolean is_ccbar()
           
 boolean is_ElectroWeak()
           
 boolean is_GamGam()
           
 boolean is_MuPair()
           
 boolean is_QED()
          Event types
 boolean is_qqbar()
           
 boolean is_Tau()
           
 boolean is_ttbar()
           
 boolean is_tWbtWb()
          Decay modes
 boolean is_TwoPhoton()
           
 boolean is_uds()
           
 boolean is_Unknown()
           
 boolean is_WlvWlv()
           
 boolean is_WqqgWlv()
           
 boolean is_WqqgWqq()
           
 boolean is_WqqWlv_gluons()
           
 boolean is_WqqWlv()
           
 boolean is_WqqWqq_gluons()
           
 boolean is_WqqWqq()
           
 boolean is_WW()
           
 boolean is_ZllZll()
           
 boolean is_ZllZvv()
           
 boolean is_ZqqgZll()
           
 boolean is_ZqqgZvv()
           
 boolean is_ZqqZll_gluons()
           
 boolean is_ZqqZll()
           
 boolean is_ZqqZqq_gluons()
           
 boolean is_ZqqZqq()
           
 boolean is_ZqqZvv_gluons()
           
 boolean is_ZqqZvv()
           
 boolean is_ZvvZvv()
           
 boolean is_ZZ()
           
 void printEvent(LCDEvent event)
           
 void process(LCDEvent event)
          Called by the driver when this processor should process an event.
 void summarize()
           
 
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

StatusCode

public static String[] StatusCode
Particle status codes
Constructor Detail

BaseMonteCarlo

public BaseMonteCarlo()

BaseMonteCarlo

public BaseMonteCarlo(boolean hist)
Method Detail

getEventName

public String getEventName()
Specified by:
getEventName in interface MonteCarlo

getDecayName

public String getDecayName()
Specified by:
getDecayName in interface MonteCarlo

getEventType

public int getEventType()
Specified by:
getEventType in interface MonteCarlo

getDecayType

public int getDecayType()
Specified by:
getDecayType in interface MonteCarlo

is_QED

public boolean is_QED()
Event types
Specified by:
is_QED in interface MonteCarlo

is_qqbar

public boolean is_qqbar()
Specified by:
is_qqbar in interface MonteCarlo

is_ElectroWeak

public boolean is_ElectroWeak()
Specified by:
is_ElectroWeak in interface MonteCarlo

is_TwoPhoton

public boolean is_TwoPhoton()
Specified by:
is_TwoPhoton in interface MonteCarlo

is_Bhabha

public boolean is_Bhabha()
Specified by:
is_Bhabha in interface MonteCarlo

is_MuPair

public boolean is_MuPair()
Specified by:
is_MuPair in interface MonteCarlo

is_Tau

public boolean is_Tau()
Specified by:
is_Tau in interface MonteCarlo

is_uds

public boolean is_uds()
Specified by:
is_uds in interface MonteCarlo

is_ccbar

public boolean is_ccbar()
Specified by:
is_ccbar in interface MonteCarlo

is_bbbar

public boolean is_bbbar()
Specified by:
is_bbbar in interface MonteCarlo

is_ttbar

public boolean is_ttbar()
Specified by:
is_ttbar in interface MonteCarlo

is_GamGam

public boolean is_GamGam()
Specified by:
is_GamGam in interface MonteCarlo

is_WW

public boolean is_WW()
Specified by:
is_WW in interface MonteCarlo

is_ZZ

public boolean is_ZZ()
Specified by:
is_ZZ in interface MonteCarlo

is_Unknown

public boolean is_Unknown()
Specified by:
is_Unknown in interface MonteCarlo

is_tWbtWb

public boolean is_tWbtWb()
Decay modes
Specified by:
is_tWbtWb in interface MonteCarlo

is_WlvWlv

public boolean is_WlvWlv()
Specified by:
is_WlvWlv in interface MonteCarlo

is_WqqWlv

public boolean is_WqqWlv()
Specified by:
is_WqqWlv in interface MonteCarlo

is_WqqWqq

public boolean is_WqqWqq()
Specified by:
is_WqqWqq in interface MonteCarlo

is_WqqgWlv

public boolean is_WqqgWlv()
Specified by:
is_WqqgWlv in interface MonteCarlo

is_WqqgWqq

public boolean is_WqqgWqq()
Specified by:
is_WqqgWqq in interface MonteCarlo

is_WqqWlv_gluons

public boolean is_WqqWlv_gluons()
Specified by:
is_WqqWlv_gluons in interface MonteCarlo

is_WqqWqq_gluons

public boolean is_WqqWqq_gluons()
Specified by:
is_WqqWqq_gluons in interface MonteCarlo

is_ZvvZvv

public boolean is_ZvvZvv()
Specified by:
is_ZvvZvv in interface MonteCarlo

is_ZllZvv

public boolean is_ZllZvv()
Specified by:
is_ZllZvv in interface MonteCarlo

is_ZllZll

public boolean is_ZllZll()
Specified by:
is_ZllZll in interface MonteCarlo

is_ZqqZvv

public boolean is_ZqqZvv()
Specified by:
is_ZqqZvv in interface MonteCarlo

is_ZqqgZvv

public boolean is_ZqqgZvv()
Specified by:
is_ZqqgZvv in interface MonteCarlo

is_ZqqZll

public boolean is_ZqqZll()
Specified by:
is_ZqqZll in interface MonteCarlo

is_ZqqgZll

public boolean is_ZqqgZll()
Specified by:
is_ZqqgZll in interface MonteCarlo

is_ZqqZqq

public boolean is_ZqqZqq()
Specified by:
is_ZqqZqq in interface MonteCarlo

is_ZqqZvv_gluons

public boolean is_ZqqZvv_gluons()
Specified by:
is_ZqqZvv_gluons in interface MonteCarlo

is_ZqqZll_gluons

public boolean is_ZqqZll_gluons()
Specified by:
is_ZqqZll_gluons in interface MonteCarlo

is_ZqqZqq_gluons

public boolean is_ZqqZqq_gluons()
Specified by:
is_ZqqZqq_gluons in interface MonteCarlo

getNPartons

public int getNPartons()
Specified by:
getNPartons in interface MonteCarlo

getPartons

public MCParticle[] getPartons()
Specified by:
getPartons in interface MonteCarlo

getKlongs

public Enumeration getKlongs(LCDEvent event)
Specified by:
getKlongs in interface MonteCarlo

getMCParticles

public Enumeration getMCParticles(LCDEvent event,
                                  int id)
Specified by:
getMCParticles in interface MonteCarlo

getNParticles

public int getNParticles()
Specified by:
getNParticles in interface MonteCarlo

getNDecayed

public int getNDecayed()
Specified by:
getNDecayed in interface MonteCarlo

getNFinal

public int getNFinal()
Specified by:
getNFinal in interface MonteCarlo

getFinalEnergy

public double getFinalEnergy()
Specified by:
getFinalEnergy in interface MonteCarlo

getNTracks

public int getNTracks()
Specified by:
getNTracks in interface MonteCarlo

getNProngs

public int getNProngs()
Specified by:
getNProngs in interface MonteCarlo

getChEnergy

public double getChEnergy()
Specified by:
getChEnergy in interface MonteCarlo

getHighest2P

public MCParticle[] getHighest2P()
Specified by:
getHighest2P in interface MonteCarlo

getMaxPartNum

public int[] getMaxPartNum()
Specified by:
getMaxPartNum in interface MonteCarlo

getNeutralEnergy

public double getNeutralEnergy()
Specified by:
getNeutralEnergy in interface MonteCarlo

getPhotonEnergy

public double getPhotonEnergy()
Specified by:
getPhotonEnergy in interface MonteCarlo

getNeutralHadronEnergy

public double getNeutralHadronEnergy()
Specified by:
getNeutralHadronEnergy in interface MonteCarlo

getMissingEnergy

public double getMissingEnergy()
Specified by:
getMissingEnergy in interface MonteCarlo

getNClusters

public int getNClusters()
Specified by:
getNClusters in interface MonteCarlo

getNEMClusters

public int getNEMClusters()
Specified by:
getNEMClusters in interface MonteCarlo

getNHadClusters

public int getNHadClusters()
Specified by:
getNHadClusters in interface MonteCarlo

getECalEnergy

public double getECalEnergy()
Specified by:
getECalEnergy in interface MonteCarlo

getHCalEnergy

public double getHCalEnergy()
Specified by:
getHCalEnergy in interface MonteCarlo

getCalEnergy

public double getCalEnergy()
Specified by:
getCalEnergy in interface MonteCarlo

getECalCorEnergy

public double getECalCorEnergy()
Specified by:
getECalCorEnergy in interface MonteCarlo

getHCalCorEnergy

public double getHCalCorEnergy()
Specified by:
getHCalCorEnergy in interface MonteCarlo

getCalCorEnergy

public double getCalCorEnergy()
Specified by:
getCalCorEnergy in interface MonteCarlo

getTotalEnergy

public double getTotalEnergy()
Specified by:
getTotalEnergy in interface MonteCarlo

getNElectrons

public int getNElectrons()
Specified by:
getNElectrons in interface MonteCarlo

getNMuons

public int getNMuons()
Specified by:
getNMuons in interface MonteCarlo

getMuEnergy

public double getMuEnergy()
Specified by:
getMuEnergy in interface MonteCarlo

getLumEnergy

public double getLumEnergy()
Specified by:
getLumEnergy in interface MonteCarlo

getStatusName

public String getStatusName(int statusCode)
Particle status codes
Specified by:
getStatusName in interface MonteCarlo

process

public void process(LCDEvent event)
Description copied from interface: Processor
Called by the driver when this processor should process an event. If the processor produces new output it should add it to the event.
Specified by:
process in interface MonteCarlo
Following copied from interface: hep.lcd.util.driver.Processor
Parameters:
event - The event to process

findFinalParticles

public void findFinalParticles(LCDEvent event)
Specified by:
findFinalParticles in interface MonteCarlo

identifyDecays

public void identifyDecays(LCDEvent event)
Specified by:
identifyDecays in interface MonteCarlo

identifyEventType

public void identifyEventType(LCDEvent event)
Specified by:
identifyEventType in interface MonteCarlo

printEvent

public void printEvent(LCDEvent event)
Specified by:
printEvent in interface MonteCarlo

summarize

public void summarize()
Specified by:
summarize in interface MonteCarlo


The LCD Group