Skip to content

Instantly share code, notes, and snippets.

View kratsg's full-sized avatar

Giordon Stark kratsg

View GitHub Profile
@kratsg
kratsg / user.leejr
Created April 16, 2015 15:38
user.leejr downloads
----------------------------------
Download summary
----------------------------------------
DID user.leejr:user.leejr.204895.MadGraphPythia_AUET2BCTEQ6L1_SM_GG_onestepCC_1500_1212_60.040215a_treeOutput.root
Total files : 1
Downloaded files : 0
Files already found locally : 0
Files that cannot be downloaded : 1
----------------------------------------
DID user.leejr:user.leejr.167752.Sherpa_CT10_ZmumuMassiveCBPt0_BFilter.040215a_treeOutput.root
@kratsg
kratsg / RestFrames_problematicRun
Created April 16, 2015 20:45
What's up with this?
kratsg@tier3:/share/home/kratsg/RestFramesAnalysis$ classifyEvent
RestFrames v1.0.0 -- Developed by Christopher Rogan ([email protected])
Copyright (c) 2014-2015, Christopher Rogan
http://RestFrames.com
Error in <TCling::RegisterModule>: cannot find dictionary module RestFrames_Dict_rdict.pcm
Info in <xAOD::Init>: Environment initialised for data access
SampleHandler with 1 files
Sample:name=xAODAnaHelpers,tags=()
Info in <HelperFunctions::retrieve()>: Attempting to retrieve AntiKt10LCTopoJets of type DataVector<xAOD::Jet_v1>
Info in <HelperFunctions::retrieve()>: Looking inside: xAOD::TStore, xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Found inside xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Retrieved from xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Attempting to retrieve MET_RefFinal of type xAOD::MissingETContainer_v1
Info in <HelperFunctions::retrieve()>: Looking inside: xAOD::TStore, xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Found inside xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Retrieved from xAOD::TEvent
Info in <ClassifyEvent::execute()>: We do have consistent tree topology.
Info in <ClassifyEvent::execute()>: Our tree is ok for analysis.
@kratsg
kratsg / classifyEvent_run_bad
Created April 17, 2015 15:21
example of running RestFrames (does not work!)
kratsg@tier3:/share/home/kratsg/RestFramesAnalysis$ classifyEvent
RestFrames v1.0.0 -- Developed by Christopher Rogan ([email protected])
Copyright (c) 2014-2015, Christopher Rogan
http://RestFrames.com
Error in <TCling::RegisterModule>: cannot find dictionary module RestFrames_Dict_rdict.pcm
Info in <xAOD::Init>: Environment initialised for data access
SampleHandler with 1 files
Sample:name=xAODAnaHelpers,tags=()
@kratsg
kratsg / classifyEvent
Last active August 29, 2015 14:19
Successful Run of RestFrames
Info in <HelperFunctions::retrieve()>: Attempting to retrieve AntiKt10LCTopoJets of type DataVector<xAOD::Jet_v1>
Info in <HelperFunctions::retrieve()>: Looking inside: xAOD::TStore, xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Found inside xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Retrieved from xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Attempting to retrieve MET_RefFinal of type xAOD::MissingETContainer_v1
Info in <HelperFunctions::retrieve()>: Looking inside: xAOD::TStore, xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Found inside xAOD::TEvent
Info in <HelperFunctions::retrieve()>: Retrieved from xAOD::TEvent
Info in <ClassifyEvent::execute()>: We do have consistent tree topology.
Info in <ClassifyEvent::execute()>: Our tree is ok for analysis.
@kratsg
kratsg / MarcoMilesi
Created April 18, 2015 16:36
argparse for checking out packages and parsing
#!/usr/bin/python
import os
import argparse
parser = argparse.ArgumentParser(description='Checkout packages and apply patches!', usage='%(prog)s version')
version_parser = parser.add_subparsers()
for version in ['2.1.27', '2.1.28', '2.1.29', '2.1.30']:
sp = version_parser.add_parser('%s' % version, help='Use AnalysisBase %s.' % version)
CookTheBooks.py ../xAODAnalysis/input.root --nevents=2 --debug -v -f --bJets=AntiKt4LCTopoJets --jet_minNum=4 --passPreSel --numLeadingJets=2 --decorJetTagsTop= --decorJetTagsW= --decorJetTagsB=
job runner options
input_filename = ['../xAODAnalysis/input.root']
submit_dir = submitDir
num_events = 2
skip_events = 0
force_overwrite = True
input_from_file = False
input_from_DQ2 = False
[c8dd59e] CookTheBooks.py ../xAODAnalysis/input.root --nevents=2 --debug -v -f --bJets=AntiKt4LCTopoJets --jet_minNum=4 --passPreSel --numLeadingJets=2 --decorJetTagsTop= --decorJetTagsW= --decorJetTagsB=
Start: Apr 21 2015 15:09:47
Stop: Apr 21 2015 15:10:09
Delta: 0:00:21.927112
job runner options
input_filename = ['../xAODAnalysis/input.root']
submit_dir = submitDir
num_events = 2
skip_events = 0
@kratsg
kratsg / info.dump
Created April 22, 2015 00:01
dumpSG.py input.root --type="xAOD::ElectronContainer" --prop --attr
http://atlas-computing.web.cern.ch/atlas-computing/links/nightlyDocDirectory/xAODElectron/html/
xAOD::ElectronContainer
| xAOD::ElectronContainer* ElectronCollection
| | float &->asy1()
| | unsigned short &->author()
| | float &->barys1()
| | vector<ElementLink<DataVector<xAOD::CaloCluster> > > &->caloClusterLinks()
| | float &->charge()
| | float &->deltaEta0()
| | float &->deltaEta1()
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
import AthenaPoolCnvSvc.ReadAthenaPool
svcMgr.EventSelector.InputCollections = ['input.root']
from GaudiSequencer.PyComps import PyEvtFilter
filterseq = CfgMgr.AthSequencer("AthFilterSeq")
#filterseq += PyEvtFilter("MyFilter",evt_list=[18559067]) #will execute main sequence only for these eventnumbers
# Create a POOL output file with the StoreGate contents: