DESY Hbb Analysis Framework
Classes | Enumerations | Functions
analysis::tools Namespace Reference

Classes

class  Analyser
 inheritance More...
 
class  Analysis
 
class  BaseAnalyser
 
class  Candidate
 
class  Collection
 
class  Composite
 
class  Config
 
struct  FilterResults
 
class  GenJet
 
class  GenParticle
 
struct  greater_than_pt
 
struct  JERCorrections
 
struct  jerDefinitions
 
class  Jet
 
class  JetAnalyser
 
struct  JetResolutionInfo
 
class  JetTag
 
class  L1TJet
 
class  L1TMuon
 
struct  less_than_pt
 
class  MET
 
class  Muon
 
class  MuonAnalyser
 
class  MuonIdWeight
 
struct  Options
 
struct  PDF
 
class  PhysicsObjectTree
 
class  PhysicsObjectTree< Candidate >
 
class  PhysicsObjectTree< GenJet >
 
class  PhysicsObjectTree< GenParticle >
 
class  PhysicsObjectTree< Jet >
 
class  PhysicsObjectTree< JetTag >
 
class  PhysicsObjectTree< L1TJet >
 
class  PhysicsObjectTree< L1TMuon >
 
class  PhysicsObjectTree< MET >
 
class  PhysicsObjectTree< Muon >
 
class  PhysicsObjectTree< RecoMuon >
 
class  PhysicsObjectTree< RecoTrack >
 
class  PhysicsObjectTree< TriggerObject >
 
class  PhysicsObjectTree< Vertex >
 
class  PhysicsObjectTreeBase
 
class  PhysicsObjectTreeBase< Vertex >
 
class  PileupWeight
 
class  RecoMuon
 
class  RecoTrack
 
struct  ScaleFactors
 
class  TreeBase
 
class  TriggerAnalyser
 
class  TriggerObject
 
class  Vertex
 

Enumerations

enum  TrackQuality {
  undefQuality = -1, loose = 0, tight = 1, highPurity = 2,
  confirmed = 3, goodIterative = 4, looseSetWithPV = 5, highPuritySetWithPV = 6,
  discarded = 7, qualitySize = 8
}
 track quality More...
 

Functions

template<typename T , typename std::enable_if< std::is_base_of< RooCurve, T >::value||std::is_base_of< RooHist, T >::value, T >::type * = nullptr>
TGetFromRooPlot (RooPlot &frame, const std::string &object_name)
 
template<typename T >
TGetFromRooWorkspace (RooWorkspace &w, const std::string &name)
 
template<typename T >
TGetRooObjectFromTFile (TFile &file, const std::string &obj_name, const std::string &workspace_name="workspace")
 
template<typename T >
TGetRooObjectFromTFile (const std::string &file_name, const std::string &obj_name, const std::string &workspace_name="workspace")
 
std::vector< std::string > getWords (const std::string &line)
 

Enumeration Type Documentation

track quality

Enumerator
undefQuality 
loose 
tight 
highPurity 
confirmed 
goodIterative 
looseSetWithPV 
highPuritySetWithPV 
discarded 
qualitySize 

Definition at line 35 of file RecoTrack.h.

35  {
36  undefQuality = -1,
37  loose = 0,
38  tight = 1,
39  highPurity = 2,
40  confirmed = 3, // means found by more than one iteration
41  goodIterative = 4, // meaningless
42  looseSetWithPV = 5,
44  discarded = 7, // because a better track found. kept in the collection for reference....
45  qualitySize = 8
46  };

Function Documentation

template<typename T , typename std::enable_if< std::is_base_of< RooCurve, T >::value||std::is_base_of< RooHist, T >::value, T >::type * = nullptr>
T* analysis::tools::GetFromRooPlot ( RooPlot &  frame,
const std::string &  object_name 
)

Definition at line 34 of file RooFitUtils.h.

References T.

34  {
35  /*
36  * Function to get Object of type T from RooPlot
37  */
38  T* foo = static_cast<T*>(frame.findObject(object_name.c_str(),T::Class()));
39  if(!foo) throw std::invalid_argument("Invalid Object name: " + object_name);
40  return foo;
41 }
float T
Definition: PlotsCompare.cc:18
template<typename T >
T* analysis::tools::GetFromRooWorkspace ( RooWorkspace &  w,
const std::string &  name 
)

Definition at line 43 of file RooFitUtils.h.

References T.

43  {
44  /*
45  * Function to get a RooFit object from a RooWorkspace
46  * Generalisation of a template function
47  */
48  T *var = static_cast<T*>(w.obj(name.c_str()));
49  if(!var) throw std::invalid_argument("Invalid TObject name: " + name);
50  return var;
51 }
float T
Definition: PlotsCompare.cc:18
template<typename T >
T* analysis::tools::GetRooObjectFromTFile ( TFile &  file,
const std::string &  obj_name,
const std::string &  workspace_name = "workspace" 
)

Definition at line 54 of file RooFitUtils.h.

54  {
55  /*
56  * Function to get RooObject from TFile through the interaction with RooWorkspace
57  */
58  auto &workspace = *GetFromTFile<RooWorkspace>(file, workspace_name); //Get RooWorkspace
59  auto *obj = GetFromRooWorkspace<T>(workspace,obj_name); //Get an object
60  return obj;
61 }
template<typename T >
T* analysis::tools::GetRooObjectFromTFile ( const std::string &  file_name,
const std::string &  obj_name,
const std::string &  workspace_name = "workspace" 
)

Definition at line 63 of file RooFitUtils.h.

63  {
64  /*
65  * Function to get RooObject from TFile through the interaction with RooWorkspace
66  */
67  auto &workspace = *GetFromTFile<RooWorkspace>(file_name, workspace_name); //Get RooWorkspace
68  auto *obj = GetFromRooWorkspace<T>(workspace,obj_name); //Get an object
69  return obj;
70 }
std::vector<std::string> analysis::tools::getWords ( const std::string &  line)
inline

Definition at line 43 of file Tools/interface/Utils.h.

44  {
45  std::vector<std::string> words;
46  boost::split(words, line, boost::is_any_of(" "), boost::token_compress_on);
47  return words;
48  }