107 : TrackCollectionTag_(iConfig.getParameter<
edm::
InputTag>(
"TrackCollectionTag")),
108 PVtxCollectionTag_(iConfig.getParameter<
edm::
InputTag>(
"PVtxCollectionTag")),
109 debug_(iConfig.getParameter<
bool>(
"Debug")),
110 acceptedBX_(iConfig.getParameter<
std::
vector<unsigned
int>>(
"acceptedBX")),
111 filename_(iConfig.getParameter<
std::
string>(
"OutputFileName")) {
126 using namespace reco;
143 if (!vertexHandle.isValid()) {
144 edm::LogError(
"LhcTrackAnalyzer") <<
"Vertex collection not found or invalid.";
173 if (!tracksHandle.isValid()) {
174 edm::LogError(
"LhcTrackAnalyzer") <<
"Tracks collection not found or invalid.";
182 edm::LogInfo(
"LhcTrackAnalyzer") <<
"LhcTrackAnalyzer::analyze() looping over " <<
tracks.size() <<
"tracks." 189 <<
" LhcTrackAnalyzer::analyze() : Warning - Run " <<
run_ <<
" Event " <<
event_ 190 <<
"\tNumber of tracks: " <<
tracks.size() <<
" , greater than " <<
nMaxtracks_ << std::endl;
288 <<
"LhcTrackAnalyzer does not support all types of tracks, encountered one from algo " 328 rootTree_ =
new TTree(
"tree",
"Lhc Track tree");
377 desc.setComment(
"Ntuplizer for LHC tracks");
380 desc.add<
bool>(
"Debug",
false);
381 desc.add<std::vector<unsigned int>>(
"acceptedBX", {});
382 desc.add<
std::string>(
"OutputFileName",
"LhcTrackAnalyzer_Output_default.root");
409 for (
int j = 0;
j < 7;
j++) {
edm::EDGetTokenT< reco::TrackCollection > theTrackCollectionToken
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
int validhits_[nMaxtracks_][7]
const Point & position() const
position
std::vector< Track > TrackCollection
collection of Tracks
std::vector< Vertex > VertexCollection
collection of Vertex objects
int isHighPurity_[nMaxtracks_]
double zPCA_[nMaxtracks_]
edm::InputTag TrackCollectionTag_
Log< level::Error, false > LogError
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 dzPVSig_[nMaxtracks_]
double dxySig_[nMaxtracks_]
double chi2ndof_[nMaxtracks_]
double yPCA_[nMaxtracks_]
Abs< T >::type abs(const T &t)
double dxyPVSig_[nMaxtracks_]
#define DEFINE_FWK_MODULE(type)
double dxyError_[nMaxtracks_]
static constexpr int nMaxtracks_
std::string algoName() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double dzSig_[nMaxtracks_]
Log< level::Info, false > LogInfo
int trkAlgo_[nMaxtracks_]
edm::InputTag PVtxCollectionTag_
double dzError_[nMaxtracks_]
double xPCA_[nMaxtracks_]
double chi2_[nMaxtracks_]
double dzPV_[nMaxtracks_]
Log< level::Warning, false > LogWarning
LhcTrackAnalyzer(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
double dxyPV_[nMaxtracks_]