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;
218 rootTree_ =
new TTree(
"tree",
"Lhc Track tree");
221 rootTree_->Branch(
"run",&
run_,
"run/I");
222 rootTree_->Branch(
"event",&
event_,
"event/I");
223 rootTree_->Branch(
"goodbx",&
goodbx_,
"goodbx/O");
224 rootTree_->Branch(
"goodvtx",&
goodvtx_,
"goodvtx/O");
225 rootTree_->Branch(
"nTracks",&
nTracks_,
"nTracks/I");
226 rootTree_->Branch(
"pt",&
pt_,
"pt[nTracks]/D");
227 rootTree_->Branch(
"eta",&
eta_,
"eta[nTracks]/D");
228 rootTree_->Branch(
"phi",&
phi_,
"phi[nTracks]/D");
229 rootTree_->Branch(
"chi2",&
chi2_,
"chi2[nTracks]/D");
230 rootTree_->Branch(
"chi2ndof",&
chi2ndof_,
"chi2ndof[nTracks]/D");
231 rootTree_->Branch(
"charge",&
charge_,
"charge[nTracks]/I");
232 rootTree_->Branch(
"qoverp",&
qoverp_,
"qoverp[nTracks]/D");
233 rootTree_->Branch(
"dz",&
dz_,
"dz[nTracks]/D");
234 rootTree_->Branch(
"dxy",&
dxy_,
"dxy[nTracks]/D");
235 rootTree_->Branch(
"xPCA",&
xPCA_,
"xPCA[nTracks]/D");
236 rootTree_->Branch(
"yPCA",&
yPCA_,
"yPCA[nTracks]/D");
237 rootTree_->Branch(
"zPCA",&
zPCA_,
"zPCA[nTracks]/D");
238 rootTree_->Branch(
"isHighPurity",&
isHighPurity_,
"isHighPurity[nTracks]/I");
239 rootTree_->Branch(
"trkQuality",&
trkQuality_,
"trkQuality[nTracks]/I");
240 rootTree_->Branch(
"trkAlgo",&
trkAlgo_,
"trkAlgo[nTracks]/I");
241 rootTree_->Branch(
"nValidHits",&
validhits_,
"nValidHits[nTracks][7]/I");
278 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_]
Abs< T >::type abs(const T &t)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
int trkAlgo_[nMaxtracks_]
edm::InputTag PVtxCollectionTag_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::string algoName() const
double xPCA_[nMaxtracks_]
static const int nMaxtracks_
double chi2_[nMaxtracks_]
LhcTrackAnalyzer(const edm::ParameterSet &)