60 #include "TMultiGraph.h"
163 uint32_t NBabAPVs = moduleRawDigi->size();
164 std::cout<<
"Number of module with HIP in this event: " << NBabAPVs << std::endl;
167 for (; itRawDigis != moduleRawDigi->end(); ++itRawDigis, ++itDSBaseline) {
169 uint32_t detId = itRawDigis->id;
172 if(itDSBaseline->id != detId){
173 std::cout <<
"Collections out of Synch. Something of fishy is going on ;-)" << std::endl;
178 uint32_t
event = e.
id().
event();
182 sprintf(detIds,
"%ul", detId);
183 sprintf(evs,
"%ul",
event);
184 sprintf(
runs,
"%ul", run);
185 char* dHistoName = Form(
"Id:%s_run:%s_ev:%s",detIds,
runs, evs);
187 h1Baseline_ =
new TH1F(dHistoName,dHistoName, 768, -0.5, 767.5);
188 h1Clusters_ =
new TH1F(dHistoName,dHistoName, 768, -0.5, 767.5);
215 std::vector<int16_t>::const_iterator itProcessedRawDigis;
218 std::vector<int16_t> ProcessedRawDigis(itRawDigis->size());
223 for(itProcessedRawDigis = ProcessedRawDigis.begin(), itBaseline = itDSBaseline->
begin();itProcessedRawDigis != ProcessedRawDigis.end(); ++itProcessedRawDigis, ++itBaseline){
230 for ( ; itClusters != clusters->
end(); ++itClusters ){
232 if(clus->geographicalId() == detId){
233 int firststrip = clus->firstStrip();
236 for( std::vector<uint8_t>::const_iterator itAmpl = clus->amplitudes().begin(); itAmpl != clus->amplitudes().end(); ++itAmpl){
270 oFile_->mkdir(
"ProcessedRawDigis");
271 oFile_->mkdir(
"Baseline");
272 oFile_->mkdir(
"Clusters");
275 std::vector<TH1F>::iterator itvProcessedRawDigis, itvBaseline, itvClusters;
282 for(; itvProcessedRawDigis !=
vProcessedRawDigiHisto_.end(); ++itvProcessedRawDigis, ++itvBaseline, ++itvClusters){
283 oFile_->cd(
"ProcessedRawDigis");
284 itvProcessedRawDigis->Write();
286 itvBaseline->Write();
288 itvClusters->Write();
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator begin() const
#define DEFINE_FWK_MODULE(type)
std::vector< TH1F > vBaselineHisto_
data_type const * const_iterator
edm::InputTag srcProcessedRawDigi_
~SiStripBaselineAnalyzer()
virtual void analyze(const edm::Event &, const edm::EventSetup &)
SiStripBaselineAnalyzer(const edm::ParameterSet &)
const_iterator end() const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::vector< TH1F > vClusterHisto_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
TH1F * h1ProcessedRawDigis_
edm::InputTag srcBaseline_
std::vector< TH1F > vProcessedRawDigiHisto_
uint16_t nModuletoDisplay_
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
std::auto_ptr< SiStripPedestalsSubtractor > subtractorPed_
static std::auto_ptr< SiStripPedestalsSubtractor > create_SubtractorPed(const edm::ParameterSet &)