29 for ( std::vector<std::string>::iterator iParam = parameterNames.begin();
30 iParam != parameterNames.end(); iParam++ ){
36 const int kMaxTrackL3 = 10000;
55 HltTree->Branch(
"NohIsoPixelTrackL3",&
nisopixeltrackL3,
"NohIsoPixelTrackL3/I");
56 HltTree->Branch(
"ohIsoPixelTrackL3Pt",
isopixeltrackL3pt,
"ohIsoPixelTrackL3Pt[NohIsoPixelTrackL3]/F");
57 HltTree->Branch(
"ohIsoPixelTrackL3Eta",
isopixeltrackL3eta,
"ohIsoPixelTrackL3Eta[NohIsoPixelTrackL3]/F");
58 HltTree->Branch(
"ohIsoPixelTrackL3Phi",
isopixeltrackL3phi,
"ohIsoPixelTrackL3Phi[NohIsoPixelTrackL3]/F");
59 HltTree->Branch(
"ohIsoPixelTrackL3MaxPtPxl",
isopixeltrackL3maxptpxl,
"ohIsoPixelTrackL3MaxPtPxl[NohIsoPixelTrackL3]/F");
60 HltTree->Branch(
"ohIsoPixelTrackL3Energy",
isopixeltrackL3energy,
"ohIsoPixelTrackL3Energy[NohIsoPixelTrackL3]/F");
61 HltTree->Branch(
"ohIsoPixelTrackL2pt",
isopixeltrackL2pt,
"ohIsoPixelTrackL2pt[NohIsoPixelTrackL3]/F");
62 HltTree->Branch(
"ohIsoPixelTrackL2eta",
isopixeltrackL2eta,
"ohIsoPixelTrackL2eta[NohIsoPixelTrackL3]/F");
63 HltTree->Branch(
"ohIsoPixelTrackL2dXY",
isopixeltrackL2dXY,
"ohIsoPixelTrackL2dXY[NohIsoPixelTrackL3]/F");
66 HltTree->Branch(
"NohPixelTracksL3",&
npixeltracksL3,
"NohPixelTracksL3/I");
67 HltTree->Branch(
"ohPixelTracksL3Pt",
pixeltracksL3pt,
"ohPixelTracksL3Pt[NohPixelTracksL3]/F");
68 HltTree->Branch(
"ohPixelTracksL3Eta",
pixeltracksL3eta,
"ohPixelTracksL3Eta[NohPixelTracksL3]/F");
69 HltTree->Branch(
"ohPixelTracksL3Phi",
pixeltracksL3phi,
"ohPixelTracksL3Phi[NohPixelTracksL3]/F");
70 HltTree->Branch(
"ohPixelTracksL3Vz",
pixeltracksL3vz,
"ohPixelTracksL3Vz[NohPixelTracksL3]/F");
82 if (IsoPixelTrackL3.
isValid()) {
88 for (
unsigned int i=0;
i<IsoPixelTrackL3->size();
i++)
108 for (
unsigned int i=0;
i<PixelTracksL3->size();
i++)
117 if (IsoPixelTrackL2.
isValid()) {
121 for (
unsigned int j=0;
j<IsoPixelTrackL2->size();
j++)
124 double drL3L2 =
deltaR(candrefl2->eta(), candrefl2->phi(),candref->eta(), candref->phi());
127 candrefl2matched=candrefl2;
140 for (
unsigned int k=0;
k<pixelVertices->size();
k++)
143 double dz=fabs(candrefl2matched->track()->dz(vertref->position()));
147 vertrefMatched=vertref;
T getParameter(std::string const &) const
float * isopixeltrackL3pt
void analyze(const edm::Handle< reco::IsolatedPixelTrackCandidateCollection > &IsoPixelTrackL3, const edm::Handle< reco::IsolatedPixelTrackCandidateCollection > &IsoPixelTrackL2, const edm::Handle< reco::VertexCollection > &pixelVertices, const edm::Handle< reco::RecoChargedCandidateCollection > &PixelTracksL3, TTree *tree)
float * isopixeltrackL3maxptpxl
float * isopixeltrackL2pt
bool isNonnull() const
Checks for non-null.
float * isopixeltrackL2eta
float * isopixeltrackL3eta
float * isopixeltrackL2dXY
void setup(const edm::ParameterSet &pSet, TTree *tree)
std::vector< std::string > getParameterNames() const
double deltaR(double eta1, double eta2, double phi1, double phi2)
float * isopixeltrackL3phi
float * isopixeltrackL3energy