|
|
Go to the documentation of this file.
139 std::vector<double>
pt;
146 std::vector<double>
p;
147 std::vector<double>
d0;
148 std::vector<double>
dz;
166 clustercollectionToken_(
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);
edm::Service< TFileService > fs
bool tidIsZMinusSide(const DetId &id) const
int number_of_tracks_FPIX
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T const * product() const
void beginRun(edm::Run const &, edm::EventSetup const &) override
bool tecIsZMinusSide(const DetId &id) const
int number_of_tracks_TECP
std::vector< double > DTtime
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
std::vector< double > nvh
int number_of_tracks_TIDP
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< double > phi
std::vector< int > v_ntrk
int number_of_tracks_TECM
int number_of_tracks_BPIX
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< double > eta
std::vector< Muon > MuonCollection
collection of Muon objects
static constexpr auto TEC
edm::RunNumber_t lastrunnum
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
void endRun(edm::Run const &, edm::EventSetup const &) override
std::vector< double > chi2_ndof
void setComment(std::string const &value)
void analyze(const edm::Event &, const edm::EventSetup &) override
CosmicRateAnalyzer(const edm::ParameterSet &)
static double stampToReal(edm::Timestamp time)
int number_of_tracks_TIDM
~CosmicRateAnalyzer() override
static constexpr auto TOB
static constexpr auto TID
std::vector< double > theta
edm::EDGetTokenT< reco::MuonCollection > muonTags_
edm::EDGetTokenT< reco::TrackCollection > trackTags_
static const std::string kSharedResource
static constexpr auto TIB
std::vector< double > chi2
std::vector< double > charge
std::vector< Track > TrackCollection
collection of Tracks
T * make(const Args &... args) const
make new ROOT object