94 virtual void endJob()
override;
149 std::vector<double>
pt;
156 std::vector<double>
p;
157 std::vector<double>
d0;
158 std::vector<double>
dz;
177 clustercollectionToken_(consumes<edmNew::DetSetVector<
SiStripCluster> >(iConfig.getParameter<edm::
InputTag>(
"tracksInputTag"))),
246 for(TrackCollection::const_iterator itTrack1 =
tracks->begin(); itTrack1 !=
tracks->end(); ++itTrack1)
248 pt .push_back(itTrack1->pt());
249 charge .push_back(itTrack1->charge());
250 chi2 .push_back(itTrack1->chi2());
251 chi2_ndof .push_back(itTrack1->normalizedChi2());
252 eta .push_back(itTrack1->eta());
253 theta .push_back(itTrack1->theta());
254 phi .push_back(itTrack1->phi());
255 p .push_back(itTrack1->p());
256 d0 .push_back(itTrack1->d0());
257 dz .push_back(itTrack1->dz());
258 nvh .push_back(itTrack1->numberOfValidHits());
267 int nhitinTECminus= 0;
268 int nhitinTECplus = 0;
269 int nhitinTIDminus= 0;
270 int nhitinTIDplus = 0;
276 const DetId detId1((*iHit1)->geographicalId());
277 const int subdetId1 = detId1.
subdetId();
278 if (!(*iHit1)->isValid())
continue;
285 ++nhitinBPIX; ++nhitinPIXEL;
293 ++nhitinFPIX; ++nhitinPIXEL;
377 for (
unsigned int i=0;
i<muonsT0.size();
i++)
480 desc.
setComment(
"Create tuple with all variables required to calculate cosmic event and track rates.");
483 descriptions.
add(
"cosmicRateAnalyzer", desc);
static const std::string kSharedResource
std::vector< double > theta
int number_of_tracks_BPIX
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
Timestamp const & endTime() const
int number_of_tracks_TECM
edm::EDGetTokenT< reco::TrackCollection > trackTags_
std::vector< double > eta
virtual void endJob() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
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.
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
CosmicRateAnalyzer(const edm::ParameterSet &)
std::vector< Muon > MuonCollection
collection of Muon objects
int number_of_tracks_TIDM
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
int number_of_tracks_TECP
void setComment(std::string const &value)
bool isZMinusSide() const
std::vector< double > DTtime
std::vector< double > nvh
edm::EDGetTokenT< reco::MuonCollection > muonTags_
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)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< double > chi2
std::vector< int > v_ntrk
bool isZMinusSide() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int number_of_tracks_FPIX
Timestamp const & beginTime() const
edm::Service< TFileService > fs
virtual void beginJob() override
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
std::vector< double > chi2_ndof
static double stampToReal(edm::Timestamp time)
int number_of_tracks_TIDP
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection