99 : TrackCollectionTag_(iConfig.getParameter<
edm::
InputTag>(
"TrackCollectionTag")),
100 PVtxCollectionTag_(iConfig.getParameter<
edm::
InputTag>(
"PVtxCollectionTag")),
101 debug_(iConfig.getParameter<
bool>(
"Debug")),
102 acceptedBX_(iConfig.getParameter<
std::
vector<unsigned
int>>(
"acceptedBX")),
103 filename_(iConfig.getParameter<
std::
string>(
"OutputFileName")) {
118 using namespace reco;
153 edm::LogInfo(
"LhcTrackAnalyzer") <<
"LhcTrackAnalyzer::analyze() looping over " <<
tracks.size() <<
"tracks." 160 <<
" LhcTrackAnalyzer::analyze() : Warning - Run " <<
run_ <<
" Event " <<
event_ 161 <<
"\tNumber of tracks: " <<
tracks.size() <<
" , greater than " <<
nMaxtracks_ << std::endl;
222 <<
"LhcTrackAnalyzer does not support all types of tracks, encountered one from algo " 262 rootTree_ =
new TTree(
"tree",
"Lhc Track tree");
303 desc.setComment(
"Ntuplizer for LHC tracks");
306 desc.add<
bool>(
"Debug",
false);
307 desc.add<std::vector<unsigned int>>(
"acceptedBX", {});
308 desc.add<
std::string>(
"OutputFileName",
"LhcTrackAnalyzer_Output_default.root");
335 for (
int j = 0;
j < 7;
j++) {
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
int validhits_[nMaxtracks_][7]
int isHighPurity_[nMaxtracks_]
double zPCA_[nMaxtracks_]
edm::InputTag TrackCollectionTag_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
int trkQuality_[nMaxtracks_]
double qoverp_[nMaxtracks_]
std::vector< unsigned int > acceptedBX_
edm::EDGetTokenT< reco::VertexCollection > theVertexCollectionToken
~LhcTrackAnalyzer() override=default
double chi2ndof_[nMaxtracks_]
double yPCA_[nMaxtracks_]
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
static constexpr int nMaxtracks_
std::string algoName() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Log< level::Info, false > LogInfo
int trkAlgo_[nMaxtracks_]
auto const & tracks
cannot be loose
edm::InputTag PVtxCollectionTag_
double xPCA_[nMaxtracks_]
double chi2_[nMaxtracks_]
Log< level::Warning, false > LogWarning
LhcTrackAnalyzer(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override