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
 

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 95 of file HiggsTemplateCrossSections.h.

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

Definition at line 96 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 152 of file HiggsTemplateCrossSections.h.

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

Referenced by HTXSstage1_to_HTXSstage1FineIndex().

153  {
154 
155  if(stage1==HTXS::Stage1::Category::UNKNOWN) return 0;
156  int P = (int)(stage1 / 100);
157  int F = (int)(stage1 % 100);
158  // 1.a spit tH categories
159  if (prodMode==HiggsProdMode::TH) {
160  // check that tH splitting is valid for Stage-1 FineIndex
161  // else return unknown category
162  if(tH==tH_type::noTH) return 0;
163  // check if forward tH
164  int fwdH = F==0?0:1;
165  return (49 + 2*(tH-1) +fwdH);
166  }
167  // 1.b QQ2HQQ --> split into VBF, WH, ZH -> HQQ
168  // offset vector 1: input is the Higgs prodMode
169  // first two indicies are dummies, given that this is only called for prodMode=2,3,4
170  std::vector<int> pMode_offset = {0,0,13,19,25};
171  if (P==2) return (F + pMode_offset[prodMode]);
172  // 1.c remaining categories
173  // offset vector 2: input is the Stage-1 category P
174  // third index is dummy, given that this is called for category P=0,1,3,4,5,6,7
175  std::vector<int> catP_offset = {0,1,0,31,36,41,45,47};
176  return (F + catP_offset[P]);
177  }
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 179 of file HiggsTemplateCrossSections.h.

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

180  {
181  HTXS::Stage1::Category stage1 =
182  jets_pT25==false?stxs.stage1_cat_pTjet30GeV:
183  stxs.stage1_cat_pTjet25GeV;
184  return HTXSstage1_to_HTXSstage1FineIndex(stage1,stxs.prodMode,tH);
185  }
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 187 of file HiggsTemplateCrossSections.h.

References F(), createfilelist::int, and PFRecoTauDiscriminationByIsolation_cfi::offset.

187  {
188  // the Stage-1 categories
189  int P = (int)(stage1 / 100);
190  int F = (int)(stage1 % 100);
191  std::vector<int> offset{0,1,13,19,24,29,33,35,37,39};
192  // convert to linear values
193  return ( F + offset[P] );
194  }
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 99 of file HiggsTemplateCrossSections.h.

Referenced by MakeTLVs(), and Rivet2Root().

99 { 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 102 of file HiggsTemplateCrossSections.h.

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

Referenced by Rivet2Root().

102  {
103  TLVs jets; for ( auto jet:rivet_jets ) jets.push_back(MakeTLV(jet));
104  return jets;
105  }
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 134 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_cat_pTjet25GeV, HTXS::HiggsClassification::stage1_cat_pTjet30GeV, and HTXS::HiggsClassification::V.

Referenced by HTXSRivetProducer::produce().

134  {
136  cat.prodMode = htxs_cat_rivet.prodMode;
137  cat.errorCode = htxs_cat_rivet.errorCode;
138  cat.higgs = MakeTLV(htxs_cat_rivet.higgs);
139  cat.V = MakeTLV(htxs_cat_rivet.V);
140  cat.p4decay_higgs = MakeTLV(htxs_cat_rivet.p4decay_higgs);
141  cat.p4decay_V = MakeTLV(htxs_cat_rivet.p4decay_V);
142  cat.jets25 = MakeTLVs(htxs_cat_rivet.jets25);
143  cat.jets30 = MakeTLVs(htxs_cat_rivet.jets30);
144  cat.stage0_cat = htxs_cat_rivet.stage0_cat;
145  cat.stage1_cat_pTjet25GeV = htxs_cat_rivet.stage1_cat_pTjet25GeV;
146  cat.stage1_cat_pTjet30GeV = htxs_cat_rivet.stage1_cat_pTjet30GeV;
147  return cat;
148  }
HTXS::Stage1::Category stage1_cat_pTjet25GeV
def cat(path)
Definition: eostools.py:401
TLV MakeTLV(vec4 const p)
HTXS::Stage1::Category stage1_cat_pTjet30GeV
TLVs MakeTLVs(Vvec4 const &rivet_jets)