CMS 3D CMS Logo

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

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< L1Validator > > s_filler__LINE__ ("L1Validator")
 
static const edm::MakerPluginFactory::PMaker< edm::WorkerMaker< L1Validator > > s_maker__LINE__ ("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; \
} \
} \
}
#define NULL
Definition: scimark2.h:8
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:28
if(dp >Float(M_PI)) dp-

Definition at line 32 of file L1Validator.cc.

Function Documentation

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< L1Validator > > s_filler__LINE__ ( "L1Validator"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< L1Validator > > s_maker__LINE__ ( "L1Validator"  )
static