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");
72 HltTree->Branch(
"ohPixelFEDSize",&
pixelfedsize,
"ohPixelFEDSize/I");
73 HltTree->Branch(
"NohPixelClusters",&
npixelclusters,
"NohPixelClusters/I");
87 if (IsoPixelTrackL3.
isValid()) {
93 for (
unsigned int i=0;
i<IsoPixelTrackL3->size();
i++)
113 for (
unsigned int i=0;
i<PixelTracksL3->size();
i++)
122 if (IsoPixelTrackL2.
isValid()) {
126 for (
unsigned int j=0;
j<IsoPixelTrackL2->size();
j++)
129 double drL3L2 =
deltaR(candrefl2->eta(), candrefl2->phi(),candref->eta(), candref->phi());
132 candrefl2matched=candrefl2;
145 for (
unsigned int k=0;
k<pixelVertices->size();
k++)
148 double dz=fabs(candrefl2matched->track()->dz(vertref->position()));
152 vertrefMatched=vertref;
168 for (
unsigned int i = 0;
i <= 39;
i++)
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, const edm::Handle< FEDRawDataCollection > hfedraw, const edm::Handle< edmNew::DetSetVector< SiPixelCluster > > &pixelClusters, TTree *tree)
float * isopixeltrackL3maxptpxl
size_t size() const
Lenght of the data buffer in bytes.
float * isopixeltrackL2pt
bool isNonnull() const
Checks for non-null.
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
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