4 : stripModules(iConfig.getParameter<std::
string>(
"stripModule")),
5 pixelModules(iConfig.getParameter<std::
string>(
"pixelModule")),
8 doStrips(iConfig.getParameter<bool>(
"doStrips")),
9 doPixels(iConfig.getParameter<bool>(
"doPixels")),
10 verbose(iConfig.getParameter<bool>(
"verbose"))
17 produces<ClusterSummary>().setBranchAlias(
"SummaryCollection");
56 for(;itClusters!=stripClusters->end();++itClusters){
57 uint32_t
id = itClusters->
id();
65 int mod_pair = ModSelect.first;
66 int mod_pair2 = ModSelect.second;
75 int CurrModTmp = mod_pair2;
77 if ( CurrMod != CurrModTmp ) {
109 int CurrModPixel = -1;
115 for(;itClusters!=pixelClusters->end();++itClusters){
116 uint32_t
detid = itClusters->detId();
122 int mod_pair = ModSelectPixel.first;
123 int mod_pair2 = ModSelectPixel.second;
126 CurrModPixel = mod_pair2;
130 int CurrModTmp = mod_pair2;
131 if ( CurrModPixel != CurrModTmp ) {
133 CurrModPixel = CurrModTmp;
161 for(std::vector<int>::iterator it = _mod.begin(); it != _mod.end(); ++it) {
177 if (
verbose)
std::cout <<
"-------------------------------------------------------" << std::endl;
184 iEvent.
put( result );
202 std::cout <<
"+++++++++++++++++++++++++++++++ " << std::endl;
203 std::cout <<
"FOR STRIPS: " << std::endl;
221 std::cout <<
"FOR PIXELS: " << std::endl;
254 if ( j == std::string::npos ){
258 while (j != std::string::npos) {
259 vec.push_back(mod.substr(i, j-i));
261 j = mod.find(
',', j);
262 if (j == std::string::npos)
263 vec.push_back(mod.substr(i, mod.length( )));
T getParameter(std::string const &) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
std::vector< ClusterSummary::ModuleSelection * > ModuleSelectionVect
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClusters_
void SetGenericVariable(int variableLocation, int module, double value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > v_userContent
virtual void produce(edm::Event &, const edm::EventSetup &) override
void decodeInput(std::vector< std::string > &, std::string)
std::string pixelVariables
std::string stripVariables
data_type const * const_iterator
id_type id(size_t cell) const
void SetUserContent(const std::vector< std::string > &Content) const
ClusterSummaryProducer(const edm::ParameterSet &)
std::vector< std::string > v_pixelVariables
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< std::string > v_pixelModuleTypes
std::vector< int > GetUserModules() const
double GetGenericVariable(int variableLocation, int module) const
std::vector< std::string > v_stripModuleTypes
virtual void beginStream(edm::StreamID) override
void PrepairGenericVariable()
void SetUserModules(int value)
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClusters_
std::vector< std::string > v_stripVariables
const unsigned clusterSize() const
std::vector< ClusterSummary::ModuleSelection * > ModuleSelectionVectPixels
void ClearGenericVariable()
T mod(const T &a, const T &b)
const_iterator begin(bool update=false) const