109 for(VertexCollection::const_iterator vtx = vertexCollectionHandle->begin();vtx!=vertexCollectionHandle->end(); ++vtx)
111 if(vtx==vertexCollectionHandle->begin()){
130 cout<<
"LhcTrackAnalyzer::analyze() looping over "<< trackCollectionHandle->size()<<
"tracks." << endl;
133 for(TrackCollection::const_iterator track = trackCollectionHandle->begin(); track!= trackCollectionHandle->end(); ++track)
136 std::cout <<
" LhcTrackAnalyzer::analyze() : Warning - Run "<<
run_<<
" Event "<<
event_<<
"\tNumber of tracks: " << trackCollectionHandle->size()<<
" , greater than " <<
nMaxtracks_ << std::endl;
212 rootTree_ =
new TTree(
"tree",
"Lhc Track tree");
215 rootTree_->Branch(
"run",&
run_,
"run/I");
216 rootTree_->Branch(
"event",&
event_,
"event/I");
217 rootTree_->Branch(
"goodbx",&
goodbx_,
"goodbx/O");
218 rootTree_->Branch(
"goodvtx",&
goodvtx_,
"goodvtx/O");
219 rootTree_->Branch(
"nTracks",&
nTracks_,
"nTracks/I");
220 rootTree_->Branch(
"pt",&
pt_,
"pt[nTracks]/D");
221 rootTree_->Branch(
"eta",&
eta_,
"eta[nTracks]/D");
222 rootTree_->Branch(
"phi",&
phi_,
"phi[nTracks]/D");
223 rootTree_->Branch(
"chi2",&
chi2_,
"chi2[nTracks]/D");
224 rootTree_->Branch(
"chi2ndof",&
chi2ndof_,
"chi2ndof[nTracks]/D");
225 rootTree_->Branch(
"charge",&
charge_,
"charge[nTracks]/I");
226 rootTree_->Branch(
"qoverp",&
qoverp_,
"qoverp[nTracks]/D");
227 rootTree_->Branch(
"dz",&
dz_,
"dz[nTracks]/D");
228 rootTree_->Branch(
"dxy",&
dxy_,
"dxy[nTracks]/D");
229 rootTree_->Branch(
"xPCA",&
xPCA_,
"xPCA[nTracks]/D");
230 rootTree_->Branch(
"yPCA",&
yPCA_,
"yPCA[nTracks]/D");
231 rootTree_->Branch(
"zPCA",&
zPCA_,
"zPCA[nTracks]/D");
232 rootTree_->Branch(
"isHighPurity",&
isHighPurity_,
"isHighPurity[nTracks]/I");
233 rootTree_->Branch(
"trkQuality",&
trkQuality_,
"trkQuality[nTracks]/I");
234 rootTree_->Branch(
"trkAlgo",&
trkAlgo_,
"trkAlgo[nTracks]/I");
235 rootTree_->Branch(
"nValidHits",&
validhits_,
"nValidHits[nTracks][7]/I");
272 for(
int j=0;
j<7;
j++){
T getParameter(std::string const &) const
EventNumber_t event() const
int validhits_[nMaxtracks_][7]
#define DEFINE_FWK_MODULE(type)
int isHighPurity_[nMaxtracks_]
double zPCA_[nMaxtracks_]
edm::InputTag TrackCollectionTag_
int trkQuality_[nMaxtracks_]
double qoverp_[nMaxtracks_]
double chi2ndof_[nMaxtracks_]
double yPCA_[nMaxtracks_]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
int trkAlgo_[nMaxtracks_]
edm::InputTag PVtxCollectionTag_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
double xPCA_[nMaxtracks_]
static const int nMaxtracks_
double chi2_[nMaxtracks_]
LhcTrackAnalyzer(const edm::ParameterSet &)