-
Notifications
You must be signed in to change notification settings - Fork 61
Running
After installing and compiling, you can run the first example. In general, there are two possibilities of how to run your code: within SFrame or within CMSSW. The central class to provide in both cases is an implementation of the abstract class AnalysisModule, which will be constructed for each dataset and whose process method will be called for each event.
Running with SFrame is only possible on the ntuple format. As output, a new ntuple can be created (possibly with some new, user-defined branches in the output). Running is done via SFrame, so all instructions relevant for SFrame in general also applies here. In particular, to run SFrame, a xml configuration file should be provided, which specifies input data and some options. For example, running one of the examples locally, change to UHH2/examples and execute:
sframe_main config/Example.xml
This will construct the ExampleModule class (which is an implementation of the abstract AnalysisModule) and execute its process method each time.
For available options, see the comments in UHH2/examples/config/Example.xml. In particular, the options in the UserConfig section in the xml file control which branches are read and which AnalysisModule is run. Besides these UHH2-specific options, the xml files are usual SFrame xml configurations, so in particular for specifying the input dataset, running mode (local vs. proof), logging and other things, refer to the SFrame documentation. Some comments for frequently used options exist in Example.xml.
- In the xml file, the only
LibraryandPackageto declare is the one which contains yourAnalysisModule. This is because inUHH2(in contrast toUHHAnalysis), the library dependencies are explicitly given when building already -
parfile created for running with proof is a dummy file which does not compile anything, so this will work only when running on a cluster with a shared filesystem and theUHH2binaries are located on that shared filesystem.
Running with CMSSW requires miniAOD (or, with some changes, AOD) as input. As output, either CMSSW output (=miniAOD, possibly with some more data), the ntuple format, or a combination of both is possible. Note that the AnalysisModule cannot create output to be saved in the CMSSW data format; this is only possible for the ntuple format.
To run a module within CMSSW, use UHH2/core/python/ntuplewriter_only.py as template and change the settings in the AnalysisModule section to load the right library and AnalysisModule class. Then, run cmsRun on the configuration file. The NtupleWriter CMSSW plugin will convert the miniAOD format on the fly and call the constructor and process method of the specified AnalysisModule.
-
Ntuple instructions per branch/release
- 10_6_X, UL16/17/18
- 10_2_X, 2016/17/18
- 9_4_X, 2017
- 9_2_X, 2017
-
8_0_X, 2016
- Installing and Compiling (Run II, 80X, miniAOD v1, 80X_v1)
- Ntuple Production (Run II, 80X, MiniAODv1)
- Installing, Compiling and Ntuples (Run II, 80X, miniAOD v2, 80X_v2)
- Installing, Compiling and Ntuples (Run II, 80X, Moriond17, 80X_v3)
- Installing, Compiling and Ntuples (Run II, 80X, miniAOD v2, HOTVR & XCone reprocessing, 80X_v5)
-
Analysis info
- crab kill, follow-up tasks, duplicates
- Running failing crab jobs locally
- Checking & Reprocessing of missing ntuples
- Creating & using luminosity ROOT file in SFrame
- Finding a MINIAOD file from an ntuple event
- Luminosity & cross-section weighting information for Monte Carlo samples
- NtupleFormat
- Pileup reweighting for MC
- 2017 MC samples with buggy pileup
- Recipe for PDF uncertainties (RunII, 25ns, MiniAODv2)
- Running
- Singularity (using SL6 on EL7)
- Storing user variables in objects
- Trigger Paths & Filters; storing trigger objects
- Working with DESY Tier 2 dCache (
/pnfs) - Tier2 UHH2 group space
- Application of Keras Neural-Network in UHH2
-
Developer tips
- (Top) Jet collections in Ntuples
- Adding a new object class to ntuples
- CMSSW vs. SFrame
- Code Conventions
- Code Overview
- Committing & Contributing Code
- Compiling and installing fastjet, fastjet contrib
- Continuous Integration
- Continuous Integration Setup Instructions
- Debugging tips
- git(hub) tutorial
- Handling different years (RunII_102_v1 10_2_X and beyond)
- Event Class
- Maintainer Responsibilities
- Metadata
- OS Acronyms
- Performance
- Porting changes across branches (cherry-picking)
- Renaming a ntuple collection
- Using an external package
- DNN/TF dev planning
-
Older ntuple instructions
-
7_6_X, 25ns, 2015
- Installing and Compiling (Run II, 25ns)
- Installing and Compiling (Run II, 25ns, miniAOD v2)
- Installing and Compiling (Run II, 76X, 25ns, miniAOD v2)
- Ntuple Production (Run II, 25ns v1 MC ONLY!)
- Ntuple Production (Run II, 25ns, MiniAODv2)
- Ntuple Production (Run II, 25ns, prompt reco D v3)
- Ntuple Production (Run II, 76X, 25ns, MiniAODv2)
- 7_4_X, 50ns, 2015
- Phys14, 2014
-
7_6_X, 25ns, 2015