101 for (VertexCollection::const_iterator
vtx = vertexCollectionHandle->begin();
vtx != vertexCollectionHandle->end();
103 if (
vtx == vertexCollectionHandle->begin()) {
120 cout <<
"LhcTrackAnalyzer::analyze() looping over " << trackCollectionHandle->size() <<
"tracks." << endl;
123 for (TrackCollection::const_iterator
track = trackCollectionHandle->begin();
track != trackCollectionHandle->end();
126 std::cout <<
" LhcTrackAnalyzer::analyze() : Warning - Run " <<
run_ <<
" Event " <<
event_ 127 <<
"\tNumber of tracks: " << trackCollectionHandle->size() <<
" , greater than " <<
nMaxtracks_ 176 <<
"LhcTrackAnalyzer does not yet support phase1 tracks, encountered one from algo " 205 cout <<
"MYQUALITY!!! " <<
trkQuality_[d] <<
" at track # " << d <<
"/" << nTracks_ << endl;
216 rootTree_ =
new TTree(
"tree",
"Lhc Track tree");
219 rootTree_->Branch(
"run", &
run_,
"run/I");
220 rootTree_->Branch(
"event", &
event_,
"event/I");
221 rootTree_->Branch(
"goodbx", &
goodbx_,
"goodbx/O");
222 rootTree_->Branch(
"goodvtx", &
goodvtx_,
"goodvtx/O");
223 rootTree_->Branch(
"nTracks", &
nTracks_,
"nTracks/I");
224 rootTree_->Branch(
"pt", &
pt_,
"pt[nTracks]/D");
225 rootTree_->Branch(
"eta", &
eta_,
"eta[nTracks]/D");
226 rootTree_->Branch(
"phi", &
phi_,
"phi[nTracks]/D");
227 rootTree_->Branch(
"chi2", &
chi2_,
"chi2[nTracks]/D");
228 rootTree_->Branch(
"chi2ndof", &
chi2ndof_,
"chi2ndof[nTracks]/D");
229 rootTree_->Branch(
"charge", &
charge_,
"charge[nTracks]/I");
230 rootTree_->Branch(
"qoverp", &
qoverp_,
"qoverp[nTracks]/D");
231 rootTree_->Branch(
"dz", &
dz_,
"dz[nTracks]/D");
232 rootTree_->Branch(
"dxy", &
dxy_,
"dxy[nTracks]/D");
233 rootTree_->Branch(
"xPCA", &
xPCA_,
"xPCA[nTracks]/D");
234 rootTree_->Branch(
"yPCA", &
yPCA_,
"yPCA[nTracks]/D");
235 rootTree_->Branch(
"zPCA", &
zPCA_,
"zPCA[nTracks]/D");
236 rootTree_->Branch(
"isHighPurity", &
isHighPurity_,
"isHighPurity[nTracks]/I");
237 rootTree_->Branch(
"trkQuality", &
trkQuality_,
"trkQuality[nTracks]/I");
238 rootTree_->Branch(
"trkAlgo", &
trkAlgo_,
"trkAlgo[nTracks]/I");
239 rootTree_->Branch(
"nValidHits", &
validhits_,
"nValidHits[nTracks][7]/I");
270 for (
int j = 0;
j < 7;
j++) {
T getParameter(std::string const &) const
EventNumber_t event() const
int validhits_[nMaxtracks_][7]
int isHighPurity_[nMaxtracks_]
double zPCA_[nMaxtracks_]
edm::InputTag TrackCollectionTag_
int trkQuality_[nMaxtracks_]
double qoverp_[nMaxtracks_]
#define DEFINE_FWK_MODULE(type)
double chi2ndof_[nMaxtracks_]
double yPCA_[nMaxtracks_]
Abs< T >::type abs(const T &t)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
~LhcTrackAnalyzer() override
int trkAlgo_[nMaxtracks_]
edm::InputTag PVtxCollectionTag_
std::string algoName() const
double xPCA_[nMaxtracks_]
static const int nMaxtracks_
double chi2_[nMaxtracks_]
LhcTrackAnalyzer(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override