CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
L1Validator.cc File Reference
#include <string>
#include <Validation/L1T/interface/L1Validator.h>
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "TFile.h"

Go to the source code of this file.

Macros

#define FINDRECOPART(TYPE, COLLECTION1, COLLECTION2)
 

Functions

 DEFINE_FWK_MODULE (L1Validator)
 

Macro Definition Documentation

#define FINDRECOPART (   TYPE,
  COLLECTION1,
  COLLECTION2 
)
Value:
const TYPE *RecoPart=NULL; \
double BestDist=999.; \
for(uint i=0; i < COLLECTION1->size(); i++){ \
const TYPE *ThisPart = &COLLECTION1->at(i); \
double ThisDist = reco::deltaR(GenPart->eta(), GenPart->phi(), ThisPart->eta(), ThisPart->phi()); \
if(ThisDist < 1.0 && ThisDist < BestDist){ \
BestDist = ThisDist; \
RecoPart = ThisPart; \
} \
} \
if(COLLECTION1.product() != COLLECTION2.product()){ \
for(uint i=0; i < COLLECTION2->size(); i++){ \
const TYPE *ThisPart = &COLLECTION2->at(i); \
double ThisDist = reco::deltaR(GenPart->eta(), GenPart->phi(), ThisPart->eta(), ThisPart->phi()); \
if(ThisDist < 1.0 && ThisDist < BestDist){ \
BestDist = ThisDist; \
RecoPart = ThisPart; \
} \
} \
}
int i
Definition: DBlmapReader.cc:9
list TYPE
Definition: runonSM.py:20
#define NULL
Definition: scimark2.h:8
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
string const
Definition: compareJSON.py:14
if(dp >Float(M_PI)) dp-
for(const auto &isodef:isoDefs)

Definition at line 32 of file L1Validator.cc.

Referenced by L1Validator::analyze().

Function Documentation

DEFINE_FWK_MODULE ( L1Validator  )