Java Analysis Studio
public void processEvent(final EventData d) {
final CMSEventData data = (CMSEventData) d;
final double ET_THRESHOLD = 15.0;
Iterator jetItr = (Iterator) data.getObject("Jet");
if(jetItr == null) return;
FourVectorRecObj sum4v = new FourVectorRecObj(0.,0.,0.,0.);
while(jetItr.hasMoreElements()) {
Jet jet = (Jet) jetItr.nextElement();
if(jetET > ET_THRESHOLD) {
if(nJets >= 2) { // dijet event!
FourVectorRecObj dijet4v = jets[0];
massHist.fill( dijet4v.get_mass() );
missetHist.fill( sum4v.pt() );
et1vset2Hist.fill( jets[0].ET(), jets[1].ET() );