lots-o-love

lots-o-love

(9 comments, 40 posts)

This user hasn't shared any profile information

Posts by lots-o-love
The Americans bought out a town, slapped 15 stories of concrete on the prairie, and started hacking

The Tevatron is dead to us

1

Some hacker symbol

Oh, security@cern.ch, I know you mean well, but come on

I’m not at CERN right now. Of all the places in the world where might I be? The safest guess would be “back a my university or lab,” but let’s not be so generic. If you had to guess one specific place I bet your safest guess would be Fermilab, home to the second highest energy accelerator in the world (but only by a hair, for now). At least in this case you’d be correct. As the LHC continues to slowly work toward interesting collisions, a scientist has got to get his science fix from somewhere. There are hundreds of scientists associated with CERN who continue to work at Fermilab, which makes the security warning email I received recently about the most absurd imaginable (emphasis mine).

From: service-security@cern.ch
Subject: [xxx] XXX: Logins from unusual location(s)

CERN computer security checks have detected login(s) using your account
at an unusual location. This might indicate that your account has been
broken into.

Please CHECK whether you have established any connection to CERN
between 2010/01/xx-xx:xx:xx and 2010/01/xx-xx:xx:xx (Geneva local time)
from the following domain(s):

dhcp.fnal.gov (131.225.xxx.xxx, United States, Fermilab)

- If NOT, please urgently contact Computer.Security@cern.ch. Your
account XXX has most probably been broken into.

- If YES, then please ignore this e-mail. You will not get another
e-mail notification for your sessions from the domains listed
above.

Thanks for your collaboration.
____________________________________________
CERN Security Team | http://cern.ch/security

OK, I’ll admit I don’t connect to one of their login computer every day, maybe not even every week when I’m not at CERN (you pull data off the grid and work locally most of the time), but I certainly do now and then. It never occurred to me I might be operating from a den of l33t haxors.

This is what happens when you mess with the LHC

Apocalypse CERN

0

This is what happens when you mess with the Large Hadron Collider

In my last post there was much talk of monorails, puppies, and Flashforward, which is a book that came out in 1999. So why am I suddenly down with 1999? It’s all thanks to ABC Studios’ desperate need to spackle some twisted-timeline programming into the gaping hole that will be left when their mega-hit Lost completes its final season this year. Their solution is a FlashForward for TV, loosely based on the novel.  The premise that both the book and TV show share is that for some reason every human on Earth passes out for two minutes and during that time sees their life at a specific date in the future.  In the book it is 21 years in the future, in the TV show it is 6 months in the future (set in the present time, the show chooses the date they plan for the season finale).

Actually other than the basic premise just described there seem to be few similarities. The book takes place around CERN, and the LHC turn-on is the likely culprit.  The TV show, on the other hand, is set in Los Angles with some FBI agents that don’t have a clue about the cause of the flashforward and presumably at least the entire season will be devoted to piecing together the clues.

Technically all this information may constitute a spoiler, at least according to this Bad Astronomy post.  I assume what they are referring to is the fact that the LHC may turn out to be the culprit in the TV version. Of course I didn’t go to any trouble to warn you about spoilers because that is just absurd. The connection to CERN in the book is pretty damn easy to run across (try the third line of Google’s “flashforward“), and there is no reason they couldn’t come up with a different explanation, the surprise of which wasn’t recorded in great detail 10 years ago.  So, I’m betting the LHC won’t be up for an Emmy next year, but it wouldn’t hurt for those of you around CERN to keep your eyes open for film crews.

Time magazine has a video interview with Robert Sawyer about his book, the TV show, and CERN (it’s embeded in that “spoiling” Discovery Mag post and also below). After speaking about the book and CERN, the issue of what might be revealed in the TV show is brought up, and of course Sawyer declines to comment.

Also, if you crave even more, CERN has some video interviews with Robert Sawyer and John Ellis about Flashforward.

FlashForward is on a mid-season break right now, but it will be back in March and for now you can watch the 10 already broadcast episodes on Hulu. (Sadly, Hulu doesn’t work outside the US.  Those at CERN or generally engaged in unAmerican living: Tekzilla explains how to use an open proxy. In the Tekzilla video they use proxy-list.org which has given me useful proxies, though it can take a few tries and, as they say on Tekzilla, for security reason you definitely shouldn’t use these for anything but watching videos.)

Also, for even more physics going awry you should definitely check out the short film “Rift” (found via Discovery News).  Its hard to imagine this wasn’t inspired by the LHC considering it was made last year, if you watch the spinning atom-ish orbs during the presentation you will note that RHIC gets the blame. Also note that “Rift” has the best opening line in cinema, “Morning Mr. Scientist, I made blueberry pancakes!” Have I ever gotten that from my wife? I think not. Mostly it is just “Hey Mr. Lazy, I don’t care if you were up all night tending your batch jobs, get up and make me some cream of wheat!”

If you continue “reading” you can enjoy both the first episode of FlashForward and Rift embedded below.

(more…)

Train Inspection Monorail

Monorails

4

This is TIM

The LHC must have received a visit from a fast talking Mr. Lanley because I just learned that they have a monorail, and it’s name is TIM! How did this slip by me until now?

TIM stands for Train Inspection Monorail, which is a hugely awkward redundancy and goes to show that no grammar will stand between a scientists and his acronym. (Unless I turn out to be hugely misinformed: does the LHC tunnel contain another train, one of such vital importance that they built a monorail to inspect it?)  Someone is clearly very wedded to “TIM”. But, if this boxy ceiling crawler absolutely must play the role of nondescript schoolyard chum in the “unique” three-act play that our robot descendants will write about every last one of us, is there a reason we’re not working from Tunnel Inspection Monorail?

TIM is expected to be useful for preliminary environmental inspections before workers or emergency crews enter.  It may also be used for inspecting the collimators, which become one of the most radioactive elements of the machine after running.  (The collimators sweep away stray protons around the beam and so end up taking a substantial particle bombardment.) In addition, I might  propose that TIM, at 30×30 cm, is also the perfect size for moving puppies.

These are puppies, in a monorail.

There is an easy-reading technical note on CDS if you crave more monorail info. No puppies are mentioned.

If you will allow a touch of free association, it’s as good a time as any to mention Flashforward, a novel by Robert Sawyer, that I have been hearing about recently though it was published back in 1999. It is set in and around CERN and centers around a cataclysmic event precipitated by the LHC. (A new TV show loosely based on the novel has been running in the US, I’ll have more to say about it in a future post.) From the science media commentary and the few excerpts I have read, it seems to take a more realistic view of CERN than Dan’s Brown stain, Angels and Demons.

But, one liberty Flashforward does take is to describe scientists traveling around the LHC via monorail. “Utter poppycock!” I would exclaim… until today. If by “scientists” Sawyer was speaking of puppies, then I think he’s on to something.

(Oh, and the book also mentions flying cars. It just might be a good read, but fuck flying cars.)

Addendum: I ran across another article on TIM, “Remotely-operated equipment for inspection, measurement and handling.”

Many rusty pipes

Rusty pipes

3

Every unused parking lot and road side is a potential scrapyard, and CERN is blessed with a lot of strange junk. Here’s a random example. Any ideas what this was?

Haiti earthquake as seen by the Tevatron

Billion dollar seismograph

1

While the LHC is temporarily shutdown in preparation for more collisions in February, in the US the Tevatron collides away, cranking out top quarks, and collecting new data every day.  Here’s an interesting tidbit:  the tolerances of these accelerators are so tight that they make pretty good earthquake detectors.  While the Tevatron was running a few nights ago the tilt sensors recorded the earthquake in Haiti happening 1800 miles away,

Your submissions - crop

Where documents go to die

1

The CERN Document Server or CDS is a piece of software only its coder could love.  For the most part it fulfills its function of storing and organizing documents, and it is clear a lot of work has gone into it. But, sadly, I can’t recall ever thinking to myself “wow, this really makes my life easier.”

In the past I have never had good luck searching for documents.  Even if I know that such a document exists. Even if I in fact authored the document. Even if I personally submitted the document, I have still had trouble finding the document. One solution, at least in the last case, is to use the “Your Submissions” page associated with your account.  Here is roughly what you will see if you’ve submitted a note for approval,

If you click on the image and pop-up the full sized version you will be presented with a perfect reproduction of what the most critical part of this page looks like rendered in almost any browser. Go ahead and try to read that grey line, the characters are no more than 6 pixels high. The status column in this case reads “finished.”

Anticipating that the user will likely have hundreds of submissions, all of which she demands appear on one page and yet none of which she actually wants to be able to read, the designers have decided to employ the smallest font a browser can legibly render.  Then they shrink the most critical information, the line listing the actual data such as document approval status and identification numbers, just a little bit more (technically, with HTML’s <small> tag).

This text, which is not quite entirely illegible, might be forgiven if it were not for the fact that not a single bit of data on that 6 pixel high line is linked to anything.  At the very least you would think that the reference number would link to the full document record, and it certainly would be handy if the action and status values linked to more details about each. Instead, after waving my mouse around in utter disbelief every time I find myself on this page, I end up squinting as I select and copy the document reference number.

The search box is only located on a dedicated search page; because, really, who needs easy access to searches on a document server?  I go find the search box and paste in the reference number.

This is the point at which one starts to feel a little cocky. As you paste this nice unique identifier into a box on that dedicated search page it seems as if the whole world is finally now wrapping around your finger. And in that moment between mouse-down and mouse-up, as the shaded relief of [search] inverts and reverts, it seems this “document server” is now finally, inevitably forced to unlock it secrets, maybe to even “serve a document” to you. But, alas, if you are like me and don’t always suffer through the fame and glory of publishing public documents and instead are content to be the only person to read and reread your internally published, verbose and yet highly specific yammering, then at this point you are greeted with

No public collection matched your query. If you were looking for a non-public document, please choose the desired restricted collection first.

WTF?!  To see the list of “Your Submissions” I obviously am logged in.  Why the fudge can’t CDS figure this out and search every damn collection that I have access to?  Instead, even though I am the holder of both an authenticated session and a unique identifier for a document which I submitted myself, I am now forced to scroll through approximately 350 collections and make a guess as to which one my document is in.  Thankfully, it is not hard to identify a few good possibilities, but these collections either need to be searched one at a time or each selected one at a time in separate pull-down menus before doing the search.

Christmas tree in Geneva

Winter shutdown

0
A quiet Christmas

A quiet Christmas

The winter shutdown has begun. CERN closes its doors, turns off the heat, and stops doing physics for two full weeks, starting today. And CERN Love will do the same.

It’s time to say good-bye to 2009 — an epic year — and prepare ourselves for the next stage of CERN craziness.  We here at CERN Love have appreciated all your support and willingness to laugh a bit at a place which we are truly lucky to be associated with, but one which is pretty fucking weird.  We’ll be on holidays ourselves, trying to party as hard as our colleagues… and it appears we won’t be missing much here at the lab →

The LHC is expected to come back to life near Valentine’s Day/Chinese New Year, 2010 (that is 14 February for those of you who are neither consumers of greeting cards printed in China nor printers of greeting cards printed in China).  Don’t worry, CERN Love is expected to come back to life much sooner, around 6 January, shortly after work begins again at CERN.

CERN Love would like to extend our heartfelt season’s greetings to you and yours.  As a small gift to you, we attach a gallery of pictures from current and past winters in Geneva (including Fête de l’Escalade) and CERN.

Love,

CERN Love

Exploding car

Exploding cars forbidden

0

Exploding car

Car explosions (of 30 tons or more) are strictly forbidden in this area of CERN.  What a relief!

Just to be safe you should also not carry a 30 ton orange peacock on the roof of your sedan; because–come on people!–a 30 ton peacock deserves better.

This is near the hump on Route Rutherford passing between the PS and ISR.

(In all seriousness, I have seen versions of this sign posted by people as far away as China.  I’m pretty certain it forbids vehicles of 30 tons or more from carrying (in)flammable loads.  The official French version is a little different, a bit more like a jeep firing a canon at you.)

Safety, quality, quantity

Safety, quality, quantity

0

Safety, quality, quantity

Accomplishing physics on the scale of the LHC is no simple matter.  There are at least three steps.  Sadly, the third step is not “profit.”

F-you plot

“F-you” plot

0

F-you plot

My wife was peering over my shoulder while I made some plots yesterday,

Wife: What’s that?

Me: Some of these plots are screwed up, I need to remake them.

Wife: It looks like it’s flipping you off.

This is the life of a high energy physicist: making plots, then figuring out why they seem to hate you so much.

(I picked a simple example here. It didn’t take me long to figure out that I was plotting the track eta of photons. Problem: photons don’t leave tracks.  Nearly all the photons get the default value of 0.  Solution: don’t be a dumbass, plot the calorimeter eta of photons.)

First ATLAS collision - 3D view

Collision time

0

First ATLAS collision - 3D view

This is a very quick update on the LHC status.  About two hours ago they had both beams circulating and crossing at the experiments (see for example the CMSexperiment tweet).  The experiments haven’t officially announced any collision events, though it is possible they have been recorded.  If I hear more I’ll update.

For links to many different sources of up-to-date information see the “Beam time” post.

This is a nice milestone, but it should be noted that for now the beams are only at injection energy.  This means that protons are accelerated to 450 GeV by a smaller (though still very impressive) accelerator, the Super Proton Synchrotron (SPS), and then are allowed to just coast around the ring of the LHC.  This is about half the energy of the Tevatron at Fermilab.

Update: event displays from the first collisions are now public.  There was a press release and a press conference.  I’ve attached some ATLAS event displays.

First ATLAS collision - planar side view

Emergency stop

Beam time

1
Emergency stop

Arret d'urgence

Hey LHC lovers, does something feel freaky déjà vu-ish? Hardware commissioning of the LHC officially completed two days ago. We are on the eve of the first circulating beam. They might even spit some protons around the full ring tonight.  If only this wasn’t so familiar.

I have some sad news: Tom Hanks will not be the master of ceremonies for this show. But, I will give you a few resources with which to bring the party home.  You just need to provide your own big red button and Bosom Buddy. I’m sure it will be awesome. Note: we here at CERN Love take no responsibility for what you do with this information.

LHC information

CMS beam splash event 2009-11-20 18:12:05

CMS beam splash event 2009-11-20 18:12:05

Experiment information

The reality is that the LHC experiments won’t be pushing to the frontier of knowledge, let alone creating wormhole portals to alternate dimensions, for at least another year. For now the goal is just to test what we can of the detectors and hopefully create some dramatic renderings usings beam splash or beam halo events (hopefully updated soon).

Updates: removed ATLAS live event link (it seems you need a login now), added twitter links, added cryogenics link, added CMS beam splash image.

Is that bolted down?

More mysteries of the water tower

0

Speaking of water tower mysteries.  What the Fermilab is this picture about?

Is that bolted down?

Is that bolted down?

This comes from the CERN document server which is a whole world of mysteries unto itself. There is almost no context for this image, a visual non sequitur.  It gets the handy keywords ‘generalities’, ‘landscape’, and ‘nature’. From the title, View of the CERN by the water tower (Calendar 2002),  it seems to be for a calendar.  Really? There aren’t any cute kittens or scientists willing to pose naked? When in doubt you at least can’t go wrong with 12 months of beautiful landscapes; couldn’t the photographer have held out for a view of Mt. Blanc in the background?  (It’s behind that haze.)  I guess not.

I found six images on the document server for this “Calendar 2002.”  There are a couple photos from the dismantling of LEP and another couple of the fire brigade in action. Good hearty CERN fare. But, finally, there is also a very creepy image of a sheep.  I say creepy because, though I think the sheep has just been sheared, at first glance it looks dead or prepared for slaughter. Brilliant:

CERN, it’s where scientists do mysterious things with particles and sheep go to die.

Slippers, a kind gift from a Russian friend who was maybe too kind with the vodka

Making friends, losing conciousness

0
Russian slippers, a treasured gift

Slippers, a kind gift from a Russian friend who was maybe too kind with the vodka

I’ve got a little story about these slippers.  It’s a heartwarming tale of international friendship and vomit.

When I first moved to CERN, and before I acquired a proper apartment (recall that this process can be difficult), I lived at a CERN hostel for a few months. This wasn’t one of the relatively new and very conveniently located hostels right next to Restaurant 1 and Building 40 (two hubs of activity).  Instead, I lived in what we commonly called the  ”French hostel” (more specifically it is the ”Saint-Genis hostel,” part of Foyer Résidence Schumann, which also provides housing to people outside CERN). It is off-site and requires a bike or shuttle bus ride to work, but it has the advantage of cheap single rooms that can be booked for long periods of time.

Life at the French hostel is pretty basic. The showers and toilets are shared, though each room is equipped with a sink. During my stay a hot water heater was broken for almost a month during which only those who leapt out of bed before sunrise got a hot morning shower. The kitchen/common area at the end of each floor was primitive. (I hope there have since been some upgrades, though I doubt it.) We had an ancient electric range that sat on the counter as a free-standing component. The microwave was a hefty industrial model of similar vintage that showed off enough metal to make the modern American homeowner proud, except that it worked only part of the time. There was a fridge with small locking sections for each resident, two tables, and some chairs.  That’s about it.  The space was large, but largely empty.

It seemed like quite a disproportionate number of the residents were Russian, though their hearty dinner gatherings my have unduly enhanced their visibility.  One especially gregarious fellow from my floor made frequent shirtless appearances in the common area.  We spoke quite a lot.  He was older and had been working at CERN and other high energy experiments in Russia for quite some time.  He teased me about my salad dinners, which apparently where only fit for a rabbit.  My kinship with rabbits was conveyed in pantomime, with a little hopping and sniffing, as was most everything else: neither of us spoke the other’s language.

One evening my friend insisted that I join them in of their large gatherings in the kitchen.  The table was filled with bread and crackers, preserved fish, some meat, and plenty to drink.  Vodka had marched out from the hostel cupboards, each new bottle introduced as “the finest Russian vodka.” There was one young person who could help with translation.  Up until that point in my life my most extreme drunkenness involved slipping off for a nap under the table during one of our biannual grad-school house parties. This nerd was not prepared to keep up with liquor poured 8oz at a time, but I was determined to do my duty as a gracious guest. It wasn’t long before the plate of sardines was swimming back and forth in the sloppy surf that my view of the world had become.  I stumbled back to my room in search of some snacks to add to the party, but instead spent a moment on the bed before leaping to the sink and filling it with the most vile cheese-fish-crackery vomit.  In my next conscious moment the kitchen was empty and the sun was about to rise.

At least a week passed before I ran into the fellow who had been translating.  He greeted me simply with, “it is good to see that you are alive.”  Not long after that I met my shirtless friend in the kitchen.  He dragged me back to his room and dug out of his suitcase a pair of handmade slippers, the “finest Russian slippers” I’m sure.  One of the best of the very meaningful gifts my CERN friends have given me.

Postscript: One day I found my Russian friends clustered around the microwave, disassembling it with a pocket knife.  They poked around inside the chassis, sometimes with the power on.  Eventually the roomful of scientists and technicians prescribed one wadded up piece of aluminum foil for a gap that under much safer circumstances would be bridged by a fuse.  I entered just late enough that I never learned if the fuse had been blowing or the aluminum, having been previously installed, had been shifting. In any case, our intermittent microwave problems were fixed.

Cable trays fill both walls from floor to ceiling.

Underground CERN: it’s Half-Life in real-life

20

It’s one of the greatest games of all time. You clamber over pipes and through ducts. Cables of unclear electrical status dangle uncomfortably close to puddles of water. Tunnels lit by rudimentary emergency lighting lead on and on past a hissing steam pipe, then dripping water, then silence, until the darkness slowly reveals a moist and fleshy lump growing out of the ground.

The game is high energy physics, though there are a couple decades of decay between these scenes and active science. A few years back, shortly before the game Half-Life 2 came out, a group of us explored the little-traveled CERN tunnels recorded in the photos below. The resemblance to the original Half-Life–with its steam leaks, ventilation shafts, and dark corners hiding headcrabs–is uncanny (though my observations indicate that CERN’s dark corners are not fully populated). It’s a testament to Half-Life’s genius design and storytelling that the fantasy of Gordon Freeman’s life becomes so plausible in this real-life setting.  It’s also a testament to the awesomeness of science!

High energy physics these days requires all the infrastructure of a large industrial facility with some extra loving attention paid to cryogenics, cables, and computing clusters. It’s amazing to think that these abandoned tunnels, pipes, and cables, though extensive, are dwarfed by the facilities still in operation and newly built for the LHC.

It’s almost enough to make a scientist wonder, “will this open a dimensional rift?” and as a backup, “where is the nearest crowbar?”

TH1 class hierarchy

ROOT rants: histogram hierarchy and a little PyROOT

2

I was doing some Google searching a couples days ago looking for answers to a ROOT question–I have a new one every day!– and I stumbled on a very nice rant about ROOT. It mentions the ugly default plotting style of that was the focus of my last post, and it hits on many points I would have made myself.

Sorry, if you don’t have any programming experience this post might be too technical.  If so, may I instead offer you a large man on a small vehicle?

One thing I really liked is the comment about the crazy inheritance: how a 2D histogram (TH2) inherits from a 1D histogram (TH1). The reasoning for the ROOT authors seems to be that a 2D histogram can be thought of as a long 1D histogram “rasterized” onto a 2D field. In this (convoluted) way, the 2D histogram is a specific type of 1D histogram. But, as the author of that University of Minnesota page notes, there is no reason not to think of the relation going the opposite way: a 1D histogram is just a 2D histogram with only one bin in the second axis. And, this second relation seems a whole lot more obvious and fundamental. The structure the ROOT authors use doesn’t hurt them too badly because in reality most of the operations on histograms happen bin by bin. The implementation of an n-dimensional array very well may boil down to a 1D array; but, are we really doing the user any favors here?

TH1 class hierarchy

With a TH2 inheriting from a TH1 certainly you would assume there is one advantage: the TH1 class won’t be cluttered with nonsensical methods like GetNbinsY() or GetYaxis().  Of course you would be wrong, just check it out.  In fact, given the structure they’ve ended up with, I’m having a hard time coming up with a reason why they even need separate classes for 1D and 2D histograms.

And while I’m still speaking of histograms, the profusion of varieties must be noted: TH1C, TH1S, TH1I, TH1F, TH1D.  When I first started using ROOT and hadn’t yet carefully read the documentation I assumed a TH1I would be used to histogram an integer valued parameter, in other words the x-axis would take integer values.  Though most parameters we work with have continuous values, counts (usually called “multiplicities”) such as “how many electrons with energy greater than 10 GeV were in the event?” are also very important. Thus histograms over integer values would really fill a need. Of course, this is not what ROOT provides: all a TH1I does is promise to store each bin value (the number that defines the y-value on the graph) as an integer.  This doesn’t change the fact that a TH1I can only be Fill()ed using a floating point weight. The Fill() method, and nearly every other method on this class, is defined generically using doubles in the TH1 parent class.  Strangely, the functions for requesting a bin value are implemented in the integer specific TH1I class, so you might think that at least they would do the sensible thing and deal only in integers. Instead, the integer stored internally is cast as a double before being returned.   As far as I can tell, there is no way to get unadulterated integers, that you know must be in there, out of this class.  One might wonder if the different histogram varieties just offer different storage sizes, but then sizeof(Int_t) == sizeof(Float_t), so it’s unlikely.  Maybe there is a slight speed advantage when incrementing (though it is hard to imagine this is an issue with any processor having a dedicated floating point unit, taking us back at least 20 years)?  I don’t know, I give up.

I think this is enough ROOT ranting for now.  Possible topics for a further post

  1. How histograms and TTrees are owned by the directory they are created in (whereas similar objects like graphs are not).  When you are new to ROOT this is guaranteed to lead to mysterious segmentation faults.
  2. Code that runs without errors or warnings in both compiled and interpreted modes, but produces different results.
  3. The vector classes: why does the 2D vector have to use Mag() while the 3D vector uses Mod()
  4. Painful limitations to using STL classes like std::vector<> in interpreted mode.  (The reason I gave up on doing any substantial work using interpreted ROOT code.)
  5. Horrible crashing that  refuses to let you quit even with Ctrl-C.

Oh, and regarding my recent issue that lead me to Google for answers: I’ve been using PyROOT a lot lately, but the underlying C++ bites you in the ass now and then. One issue I ran into is functions that modify values passed by reference. Python was designed to avoid this sort of thing, at least for the fundamental types, and so you have to do some annoying array('i', [0]) machinations just to pass a reference to an integer into a function.  Thankfully this doesn’t happen often, and it turns out the ROOT manual does explain the work-around well enough if you look in the PyROOT section [PDF] on TTrees.  (Instead of a TTree, I was actually trying to use TColor::HLS2RGB(), mostly foolishly, I must say.)  On the whole, though, I would highly recommend PyROOT if you are doing anything high-level like making plots and you have to use ROOT.

2D histograms plotted with the default palette (left) and SetPalette(1) (right)

The ROOT of all my frustrations

12

If you work in high energy physics (HEP) you almost certainly come in contact with some software called ROOT on a very regular basis. ROOT is a collection of tools and a framework of C++ classes developed at CERN specifically for the data collection and processing that many physicists perform.  It defines a “Tree” format designed specifically for HEP data (the name is a play on the name ROOT and not much of a tree in the classic algorithms-and-data-structures sense), it produces nearly all the plots that we show each other at meetings, and it provides a C++ environment that can be used both interactively and compiled.  (There is also a Python interface which I actually use more often these days.)  If you use something every day you are bound to become frustrated with it in some way or another.  Unfortunately, ROOT’s annoyances are very pernicious:

  1. Its default behavior is to produce hideous plots, and
  2. Every now and then you can come up with the simplest of goals (something such as “set the color of these histograms to red”) that teases you with the prospect of an easy solution but instead sucks you into a whirlwind of failure that invariably transports you to the colorful land of the ROOT source code where you search for a way home skipping from function call to function call until you find the solution didn’t make any sense at all but was right in front of you the whole time.  If you are luck enough to reach this point it is probably 4am.

These issues frustrate my personality especially because

  1. I’m particular when it comes to aesthetics, and
  2. I’m a stubborn optimist always willing to stay up just a little bit longer.

This post will feature a couple examples of item 1, but the infinitely long scroll of bits that this blog could fill is just barely long enough for the further rants I may produce.

Below is an example of two fitted histograms.  The left is a plot drawn with the default style and the right is using the “Plain” style.  There are two main issues with the default style: the uniform gray background makes it an eyesore on almost any white page or white presentation background, and the last time the chamfering and shadow effects were cool was back in 1995.  I have seen no circumstance in which the “Plain” style on the right wasn’t a clearly better choice.

Histograms plotted with the default (left) and "Plain" (right) styles

Histograms plotted with the default (left) and "Plain" (right) styles

What’s madding is the Plain style can be enabled with one simple line of code, and yet after I started using ROOT every day and was immediately struck by these offensive plots I went months between the stages of realizing

  1. The backgrounds of my plots are not just a stupid mistake on my part;
  2. I can fix this with five lines of boilerplate code at the top of all my programs;
  3. I can put this code in a configuration file that appears in every directory where I run;
  4. I can set a ROOT path and put this code in a single configuration file for my entire login session; and finally,
  5. That there are perfectly good styles build into the code called “Plain” and “Pub” that setup every as you wanted it to begin with using a single line of code.

These days when I see a presentation with these ugly gray backgrounds I presume the presenter has either not been using ROOT for very long (at least not long enough to produce a publication, since no publication would accept such plots), or they are still on stages 2 or 3 and the plots where made in a hurry.  Both of these scenarios are common.

What’s even more maddening is that I didn’t reach stage 5 by reading the documentation, which really needs to begin with

In order for your ROOT plots to not suck be sure to set a Unix.*.Root.MacroPath: in your ~/.rootrc file and then add gROOT->SetStyle(“Plain”); to a  rootlogon.C file somewhere in this path.

Admittedly, this style setting stuff is in the documentation, but a section called “Create or Modify a Style” is not one you would read too carefully when you are rushing to make plots for your next presentation.  Instead, I came upon the “Plain” and “Pub” styles by finding them in the source code while on one of those lovely journeys mentioned in item 2 of my opening.

Finally, here is another example of crap that ROOT gives you by default.  It’s possible the default plot offers some advantages to those who are color blind or to those who are 13 years old and are really trying to piss me off, but otherwise why?  Why?

2D histograms plotted with the default palette (left) and SetPalette(1) (right)

2D histograms plotted with the default palette (left) and gStyle->SetPalette(1) (right)

The border crossing in front of CERN from the Swiss side, traffic on the right is heading to France.  The truck is bringing a very large boat into Switzerland.

International travels: interrogations

0
The border crossing in front of CERN

Border crossing in front of CERN

Just beyond the main entrance, the road in front of CERN crosses from Switzerland to France at an important border station.  CERN is not just international in its political status and spirit, it is physically international: the main site straddles the two countries.  In its early years CERN was entirely within Switzerland, but only just barely.  Later expansion now puts most of its area in France.  Still, outside of limited weekday hours the only entrance is from Switzerland, and many employees and users from other countries choose to live in France. The international border has kept the “French suburbs” of Geneva, which surround the city on three sides, distinctly less developed. Because of this, housing can be cheaper and distinctly easier to find on the French side of the border (though prices have been equalizing over time and apartment searches are still not without their frustrations).  So for many the everyday the commute requires a border crossing.  This was the situation I was in a few years back.
(more…)

A fully loaded bike in Meyrin

Around town: unmatched cargo to vehicle weight ratio

0

A fully loaded bike in Meyrin

You might be amazed at what you can move with two wheels and a few CCs.  We passed this fellow in Meyrin on the main route from Geneva to CERN.  The bike is motorized, but only barely, notice it has pedals too!  This is near the top of the hill in Meyrin, the ideal place to be with a rig like this.  Most importantly, you have to appreciate this man’s impeccable sense of style: the plaid dog-bag perfectly coordinates dog, bike, and attire.

Critical circuit boards cleaned with acetone and Mr. Electric Brushy Bear

Mr. Electric Brushy Bear

0

Science doesn’t always take place in a circle of fawning women as you tune up your Tesla coil.   Sometimes there is nothing to do but sit in nature’s ventilation hood (“outside”) and scrub critical high voltage boards with acetone.  But sometimes the novelty of nature and the sweet caress of solvent fumes is not enough to take away the tedium of scrubbing hundreds of boards.  This is where one needs a carefully selected tool to maintain the highest scientific standards while at the same time speeding your work along.

Critical circuit boards cleaned with acetone and Mr. Electric Brushy Bear

Case in point: Mr. Brushy Bear.  This cute guy (you’ll probably need to click and look closer at the photograph) brings happiness while his little condiment-colored motor does the work for us.  Isn’t science great!

lots-o-love's RSS Feed
Go to Top