ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/Plotting/Modules/ActiveSamples.C
(Generate patch)

Comparing UserCode/cbrown/AnalysisFramework/Plotting/Modules/ActiveSamples.C (file contents):
Revision 1.18 by buchmann, Mon Aug 15 10:04:20 2011 UTC vs.
Revision 1.19 by buchmann, Tue Aug 16 11:48:20 2011 UTC

# Line 20 | Line 20
20   #define HUSH 1
21   #endif
22  
23 + void define_SMS_sample(bool showList, samplecollection &allsamples, samplecollection &signalsamples, samplecollection &scansample)
24 + {
25 +    char hostname[1023];
26 +    gethostname(hostname,1023);
27  
28 +    if((int)((string)hostname).find("falda")>-1) {
29 +        scansample.AddSample("/scratch/buchmann/mSUGRA3.root","T6Z",1,1,false,true,1,kRed); // there is only one sample in the scan; we give each event weight "1"
30 +    } else {
31 +        scansample.AddSample("/shome/pablom/SimplifiedModels.root","T6Z",1,1,false,true,1,kRed); // there is only one sample in the scan; we give each event weight "1"
32 +    }
33 + }
34  
35   void define_samples(bool showList, samplecollection &allsamples, samplecollection &signalsamples, samplecollection &scansample)
36   {
# Line 136 | Line 146 | void define_samples(bool showList, sampl
146      //scansample.AddSample("/scratch/buchmann/allfinalevent_NTupleProducer_42X_mc.root","T6Z",1,1,false,true,1,lm_color); // there is only one sample in the scan; we give each event weight "1"
147   //    scansample.AddSample("/scratch/buchmann/SUSYScanTestJZB.root","T6Z",1,1,false,true,1,lm_color); // there is only one sample in the scan; we give each event weight "1"
148  
139    if((int)((string)hostname).find("falda")>-1) {
140        scansample.AddSample("/scratch/buchmann/mSUGRA3.root","T6Z",1,1,false,true,1,lm_color); // there is only one sample in the scan; we give each event weight "1"
141    } else {
142        scansample.AddSample("/shome/pablom/SimplifiedModels.root","T6Z",1,1,false,true,1,lm_color); // there is only one sample in the scan; we give each event weight "1"
143    }
149  
150 <    
150 >    define_SMS_sample(showList, allsamples, signalsamples, scansample);
151  
152      if(showList) allsamples.ListSamples();
153  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines