CMS 3D CMS Logo

Namespaces | Classes | Typedefs | Enumerations | Functions
HTXS Namespace Reference

Higgs Template Cross Section namespace. More...

Namespaces

 Stage0
 Namespace for Stage0 categorization.
 
 Stage1
 
 Stage1_1
 
 Stage1_1_Fine
 

Classes

struct  HiggsClassification
 

Typedefs

typedef math::XYZTLorentzVectorD TLV
 
typedef std::vector< TLVTLVs
 

Enumerations

enum  ErrorCode {
  UNDEFINED =-99, SUCCESS = 0, PRODMODE_DEFINED = 1, MOMENTUM_CONSERVATION = 2,
  HIGGS_IDENTIFICATION = 3, HIGGS_DECAY_IDENTIFICATION = 4, HS_VTX_IDENTIFICATION = 5, VH_IDENTIFICATION = 6,
  VH_DECAY_IDENTIFICATION = 7, TOP_W_IDENTIFICATION = 8
}
 Error code: whether the classification was successful or failed. More...
 
enum  HiggsProdMode {
  UNKNOWN = 0, GGF = 1, VBF = 2, WH = 3,
  QQ2ZH = 4, GG2ZH = 5, TTH = 6, BBH = 7,
  TH = 8
}
 Higgs production modes, corresponding to input sample. More...
 
enum  tH_type { noTH =0, THQB =1, TWH =2 }
 Additional identifier flag for TH production modes. More...
 

Functions

int HTXSstage1_to_HTXSstage1FineIndex (HTXS::Stage1::Category stage1, HiggsProdMode prodMode, tH_type tH)
 
int HTXSstage1_to_HTXSstage1FineIndex (const HiggsClassification &stxs, tH_type tH=noTH, bool jets_pT25=false)
 
int HTXSstage1_to_index (HTXS::Stage1::Category stage1)
 
template<class vec4 >
TLV MakeTLV (vec4 const p)
 
template<class Vvec4 >
TLVs MakeTLVs (Vvec4 const &rivet_jets)
 
template<class category >
HTXS::HiggsClassification Rivet2Root (category const &htxs_cat_rivet)
 

Detailed Description

Higgs Template Cross Section namespace.

Typedef Documentation

Definition at line 266 of file HiggsTemplateCrossSections.h.

typedef std::vector<TLV> HTXS::TLVs

Definition at line 267 of file HiggsTemplateCrossSections.h.

Enumeration Type Documentation

Error code: whether the classification was successful or failed.

Enumerator
UNDEFINED 
SUCCESS 

successful classification

PRODMODE_DEFINED 

production mode not defined

MOMENTUM_CONSERVATION 

failed momentum conservation

HIGGS_IDENTIFICATION 

failed to identify Higgs boson

HIGGS_DECAY_IDENTIFICATION 

failed to identify Higgs boson decay products

HS_VTX_IDENTIFICATION 

failed to identify hard scatter vertex

VH_IDENTIFICATION 

failed to identify associated vector boson

VH_DECAY_IDENTIFICATION 

failed to identify associated vector boson decay products

TOP_W_IDENTIFICATION 

failed to identify top decay

Definition at line 11 of file HiggsTemplateCrossSections.h.

11  {
12  UNDEFINED=-99,
13  SUCCESS = 0,
14  PRODMODE_DEFINED = 1,
19  VH_IDENTIFICATION = 6,
22  };
failed to identify associated vector boson
successful classification
failed to identify Higgs boson decay products
failed momentum conservation
failed to identify associated vector boson decay products
failed to identify Higgs boson
failed to identify hard scatter vertex
production mode not defined
failed to identify top decay

Higgs production modes, corresponding to input sample.

Enumerator
UNKNOWN 
GGF 
VBF 
WH 
QQ2ZH 
GG2ZH 
TTH 
BBH 
TH 

Definition at line 25 of file HiggsTemplateCrossSections.h.

Additional identifier flag for TH production modes.

Enumerator
noTH 
THQB 
TWH 

Definition at line 32 of file HiggsTemplateCrossSections.h.

Function Documentation

int HTXS::HTXSstage1_to_HTXSstage1FineIndex ( HTXS::Stage1::Category  stage1,
HiggsProdMode  prodMode,
tH_type  tH 
)
inline

Definition at line 331 of file HiggsTemplateCrossSections.h.

References F(), createfilelist::int, noTH, TH, and UNKNOWN.

Referenced by HTXSstage1_to_HTXSstage1FineIndex().

332  {
333 
334  if(stage1==HTXS::Stage1::Category::UNKNOWN) return 0;
335  int P = (int)(stage1 / 100);
336  int F = (int)(stage1 % 100);
337  // 1.a spit tH categories
338  if (prodMode==HiggsProdMode::TH) {
339  // check that tH splitting is valid for Stage-1 FineIndex
340  // else return unknown category
341  if(tH==tH_type::noTH) return 0;
342  // check if forward tH
343  int fwdH = F==0?0:1;
344  return (49 + 2*(tH-1) +fwdH);
345  }
346  // 1.b QQ2HQQ --> split into VBF, WH, ZH -> HQQ
347  // offset vector 1: input is the Higgs prodMode
348  // first two indicies are dummies, given that this is only called for prodMode=2,3,4
349  std::vector<int> pMode_offset = {0,0,13,19,25};
350  if (P==2) return (F + pMode_offset[prodMode]);
351  // 1.c remaining categories
352  // offset vector 2: input is the Stage-1 category P
353  // third index is dummy, given that this is called for category P=0,1,3,4,5,6,7
354  std::vector<int> catP_offset = {0,1,0,31,36,41,45,47};
355  return (F + catP_offset[P]);
356  }
std::pair< OmniClusterRef, TrackingParticleRef > P
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
int HTXS::HTXSstage1_to_HTXSstage1FineIndex ( const HiggsClassification stxs,
tH_type  tH = noTH,
bool  jets_pT25 = false 
)
inline

Definition at line 358 of file HiggsTemplateCrossSections.h.

References HTXSstage1_to_HTXSstage1FineIndex(), HTXS::HiggsClassification::prodMode, HTXS::HiggsClassification::stage1_cat_pTjet25GeV, and HTXS::HiggsClassification::stage1_cat_pTjet30GeV.

359  {
360  HTXS::Stage1::Category stage1 =
361  jets_pT25==false?stxs.stage1_cat_pTjet30GeV:
362  stxs.stage1_cat_pTjet25GeV;
363  return HTXSstage1_to_HTXSstage1FineIndex(stage1,stxs.prodMode,tH);
364  }
int HTXSstage1_to_HTXSstage1FineIndex(const HiggsClassification &stxs, tH_type tH=noTH, bool jets_pT25=false)
int HTXS::HTXSstage1_to_index ( HTXS::Stage1::Category  stage1)
inline

Definition at line 366 of file HiggsTemplateCrossSections.h.

References F(), createfilelist::int, PFRecoTauDiscriminationByIsolation_cfi::offset, particlelevel_cff::stage1_1_cat_pTjet25GeV, particlelevel_cff::stage1_1_cat_pTjet30GeV, particlelevel_cff::stage1_1_fine_cat_pTjet25GeV, and particlelevel_cff::stage1_1_fine_cat_pTjet30GeV.

366  {
367  // the Stage-1 categories
368  int P = (int)(stage1 / 100);
369  int F = (int)(stage1 % 100);
370  std::vector<int> offset{0,1,13,19,24,29,33,35,37,39};
371  // convert to linear values
372  return ( F + offset[P] );
373  }
std::pair< OmniClusterRef, TrackingParticleRef > P
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
template<class vec4 >
TLV HTXS::MakeTLV ( vec4 const  p)

Definition at line 270 of file HiggsTemplateCrossSections.h.

Referenced by MakeTLVs(), and Rivet2Root().

270 { return TLV(p.px(),p.py(),p.pz(),p.E()); }
math::XYZTLorentzVectorD TLV
template<class Vvec4 >
TLVs HTXS::MakeTLVs ( Vvec4 const &  rivet_jets)
inline

Definition at line 273 of file HiggsTemplateCrossSections.h.

References metsig::jet, fwrapper::jets, and MakeTLV().

Referenced by Rivet2Root().

273  {
274  TLVs jets; for ( auto jet:rivet_jets ) jets.push_back(MakeTLV(jet));
275  return jets;
276  }
std::vector< TLV > TLVs
vector< PseudoJet > jets
TLV MakeTLV(vec4 const p)
template<class category >
HTXS::HiggsClassification HTXS::Rivet2Root ( category const &  htxs_cat_rivet)
inline

Definition at line 309 of file HiggsTemplateCrossSections.h.

References eostools::cat(), HTXS::HiggsClassification::errorCode, HTXS::HiggsClassification::higgs, HTXS::HiggsClassification::jets25, HTXS::HiggsClassification::jets30, MakeTLV(), MakeTLVs(), HTXS::HiggsClassification::p4decay_higgs, HTXS::HiggsClassification::p4decay_V, HTXS::HiggsClassification::prodMode, HTXS::HiggsClassification::stage0_cat, HTXS::HiggsClassification::stage1_1_cat_pTjet25GeV, HTXS::HiggsClassification::stage1_1_cat_pTjet30GeV, HTXS::HiggsClassification::stage1_1_fine_cat_pTjet25GeV, HTXS::HiggsClassification::stage1_1_fine_cat_pTjet30GeV, HTXS::HiggsClassification::stage1_cat_pTjet25GeV, HTXS::HiggsClassification::stage1_cat_pTjet30GeV, and HTXS::HiggsClassification::V.

Referenced by HTXSRivetProducer::produce().

309  {
311  cat.prodMode = htxs_cat_rivet.prodMode;
312  cat.errorCode = htxs_cat_rivet.errorCode;
313  cat.higgs = MakeTLV(htxs_cat_rivet.higgs);
314  cat.V = MakeTLV(htxs_cat_rivet.V);
315  cat.p4decay_higgs = MakeTLV(htxs_cat_rivet.p4decay_higgs);
316  cat.p4decay_V = MakeTLV(htxs_cat_rivet.p4decay_V);
317  cat.jets25 = MakeTLVs(htxs_cat_rivet.jets25);
318  cat.jets30 = MakeTLVs(htxs_cat_rivet.jets30);
319  cat.stage0_cat = htxs_cat_rivet.stage0_cat;
320  cat.stage1_cat_pTjet25GeV = htxs_cat_rivet.stage1_cat_pTjet25GeV;
321  cat.stage1_cat_pTjet30GeV = htxs_cat_rivet.stage1_cat_pTjet30GeV;
322  cat.stage1_1_cat_pTjet25GeV = htxs_cat_rivet.stage1_1_cat_pTjet25GeV;
323  cat.stage1_1_cat_pTjet30GeV = htxs_cat_rivet.stage1_1_cat_pTjet30GeV;
324  cat.stage1_1_fine_cat_pTjet25GeV = htxs_cat_rivet.stage1_1_fine_cat_pTjet25GeV;
325  cat.stage1_1_fine_cat_pTjet30GeV = htxs_cat_rivet.stage1_1_fine_cat_pTjet30GeV;
326  return cat;
327  }
HTXS::Stage1::Category stage1_cat_pTjet25GeV
HTXS::Stage1_1_Fine::Category stage1_1_fine_cat_pTjet30GeV
def cat(path)
Definition: eostools.py:400
HTXS::Stage1_1_Fine::Category stage1_1_fine_cat_pTjet25GeV
TLV MakeTLV(vec4 const p)
HTXS::Stage1::Category stage1_cat_pTjet30GeV
HTXS::Stage1_1::Category stage1_1_cat_pTjet25GeV
HTXS::Stage1_1::Category stage1_1_cat_pTjet30GeV
TLVs MakeTLVs(Vvec4 const &rivet_jets)