139 std::vector<double>
pt;
146 std::vector<double>
p;
147 std::vector<double>
d0;
148 std::vector<double>
dz;
225 if (!tracks->empty())
226 v_ntrk.push_back(tracks->size());
229 for (TrackCollection::const_iterator itTrack1 = tracks->begin(); itTrack1 != tracks->end(); ++itTrack1) {
230 pt.push_back(itTrack1->pt());
231 charge.push_back(itTrack1->charge());
232 chi2.push_back(itTrack1->chi2());
233 chi2_ndof.push_back(itTrack1->normalizedChi2());
234 eta.push_back(itTrack1->eta());
235 theta.push_back(itTrack1->theta());
236 phi.push_back(itTrack1->phi());
237 p.push_back(itTrack1->p());
238 d0.push_back(itTrack1->d0());
239 dz.push_back(itTrack1->dz());
240 nvh.push_back(itTrack1->numberOfValidHits());
249 int nhitinTECminus = 0;
250 int nhitinTECplus = 0;
251 int nhitinTIDminus = 0;
252 int nhitinTIDplus = 0;
255 for (
auto const& hit1 : itTrack1->recHits()) {
256 const DetId detId1(hit1->geographicalId());
257 const int subdetId1 = detId1.
subdetId();
258 if (!hit1->isValid())
316 if (nhitinBPIX > 0) {
319 if (nhitinFPIX > 0) {
322 if (nhitinPIXEL > 0) {
328 if (nhitinTECminus > 0) {
331 if (nhitinTECplus > 0) {
343 if (nhitinTIDminus > 0) {
346 if (nhitinTIDplus > 0) {
367 for (
unsigned int i = 0;
i < muonsT0.size();
i++) {
457 desc.
setComment(
"Create tuple with all variables required to calculate cosmic event and track rates.");
460 descriptions.
add(
"cosmicRateAnalyzer", desc);
static const std::string kSharedResource
std::vector< double > theta
int number_of_tracks_BPIX
Timestamp const & endTime() const
int number_of_tracks_TECM
edm::EDGetTokenT< reco::TrackCollection > trackTags_
std::vector< double > eta
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static constexpr auto TID
std::vector< double > charge
std::vector< Track > TrackCollection
collection of Tracks
edm::RunNumber_t lastrunnum
T * make(const Args &...args) const
make new ROOT object
Run const & getRun() const
unsigned int microsecondOffset() const
Microseconds offset within second.
void analyze(const edm::Event &, const edm::EventSetup &) override
CosmicRateAnalyzer(const edm::ParameterSet &)
bool tecIsZMinusSide(const DetId &id) const
std::vector< Muon > MuonCollection
collection of Muon objects
int number_of_tracks_TIDM
void beginRun(edm::Run const &, edm::EventSetup const &) override
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
bool tidIsZMinusSide(const DetId &id) const
int number_of_tracks_TECP
void setComment(std::string const &value)
#define DEFINE_FWK_MODULE(type)
std::vector< double > DTtime
std::vector< double > nvh
edm::EDGetTokenT< reco::MuonCollection > muonTags_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int unixTime() const
Time in seconds since January 1, 1970.
std::vector< double > phi
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static constexpr auto TOB
std::vector< double > chi2
std::vector< int > v_ntrk
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int number_of_tracks_FPIX
static constexpr auto TIB
Timestamp const & beginTime() const
edm::Service< TFileService > fs
void endRun(edm::Run const &, edm::EventSetup const &) override
std::vector< double > chi2_ndof
static double stampToReal(edm::Timestamp time)
~CosmicRateAnalyzer() override
int number_of_tracks_TIDP
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
static constexpr auto TEC