<StimulationSet>


    <!-- the injectionSite must match a regionLabel defined in the morphology  -->
   
    <!-- one dendrite injection, sa2[:], is distributed over all the spine
	 (each spine gets total/num spines) 
	 four Glu and Ca pulses at 50 Hz, repeated 10x= 40 pulses per train -->

  <!-- This Da is single pulse, representing 4 pulse burst, burst 1 amp = 2x 1st pulse of 20 Hz
    longer duration of inject provides for the >100msegion rise time-->
  <!-- the 15 s repetition of train provides the first burst for each of 10 trains -->
  <InjectionStim specieID="DaDbuf" injectionSite="sa1[0].pointA">
        <onset>               30000          </onset>
        <duration>            60              </duration>
        <rate>                6.0           </rate>
        <period>              105             </period>
        <end>                 30100          </end>
  </InjectionStim>

  <!-- These next Da are single pulse, represent 4 pulse burst; burst 2-10 amp = 1/2 amp of 1st burst -->
  <!-- the 15 s repetition of train provides bursts 2-10 for each of 10 trains -->
  <InjectionStim specieID="DaDbuf" injectionSite="sa1[0].pointA">
        <onset>               30095          </onset>
        <duration>            60              </duration>
        <rate>                2.5           </rate>
        <period>              95             </period>
        <end>                 30949          </end>
  </InjectionStim>

  <!-- bursts 2-4 are lower amplitude than 1st burst -->
  <InjectionStim specieID="DaDbuf" injectionSite="sa1[0].pointA">
        <onset>               45000          </onset>
        <duration>            60              </duration>
        <rate>                4.0           </rate>
        <period>              105             </period>
        <end>                 45100          </end>
        <numTrains>           3             </numTrains>
        <interTrainInterval>  14900             </interTrainInterval>    
  </InjectionStim>

  <InjectionStim specieID="DaDbuf" injectionSite="sa1[0].pointA">
        <onset>               45095          </onset>
        <duration>            60              </duration>
        <rate>                1.5           </rate>
        <period>              95             </period>
        <end>                 45949          </end>
        <numTrains>           3             </numTrains>
        <interTrainInterval>  14051             </interTrainInterval>    
  </InjectionStim>

<!-- basal ACh value prior to and after stim  -->
<InjectionStim specieID="ACh" injectionSite="dend:submembrane">
        <onset>               0          </onset>
        <duration>            30000      </duration>
        <rate>                0.2         </rate>
</InjectionStim>
<InjectionStim specieID="ACh" injectionSite="dend:submembrane">
        <onset>               85000          </onset>
        <duration>            230000      </duration>
        <rate>                0.2         </rate>
</InjectionStim>
<!-- basal ACh stim paused during Da stim-->
<InjectionStim specieID="ACh" injectionSite="dend:submembrane">
        <onset>               33200          </onset>
        <duration>            11800      </duration>
        <rate>                0.2         </rate>
        <period>              15000             </period>
        <end>                 90000          </end>
</InjectionStim>

   <!-- *****************TRAIN 1 *** Glu inject **********-->   
  <InjectionStim specieID="GluGbuf" injectionSite="sa1[0].pointA">
        <onset>               30000          </onset>
        <duration>            5              </duration>
        <rate>                1.125           </rate>
        <period>              20             </period>
        <end>                 30066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>    
  </InjectionStim>

<!--  Ca pulses TRAIN 1:  40 Ca pulses -->

<InjectionStim specieID="Ca" injectionSite="sa1[0].pointA">
        <onset>               30000          </onset>
        <duration>            3              </duration>
        <rate>                154            </rate>
        <period>              20             </period>
        <end>                 30066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>    
</InjectionStim>

<InjectionStim specieID="Ca" injectionSite="dend:submembrane">
        <onset>               30000          </onset>
        <duration>            3              </duration>
        <rate>                156            </rate>
        <period>              20             </period>
        <end>                 30066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>    
</InjectionStim>

<!-- ACh neurons fire only 1 of every two 50 Hz stim -->
<InjectionStim specieID="ACh" injectionSite="sa1[0].pointA">
        <onset>               30000          </onset>
        <duration>            15              </duration>
        <rate>               3.0          </rate>
        <period>              40             </period>
        <end>                 30066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29          </interTrainInterval>  
</InjectionStim>

<InjectionStim specieID="ACh" injectionSite="dend:submembrane">
        <onset>               30000          </onset>
        <duration>            15              </duration>
        <rate>               3.0          </rate>
        <period>              40             </period>
        <end>                 30066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29          </interTrainInterval>  
 </InjectionStim>

<!--**********Glu *******TRAIN 2************-->
  <InjectionStim specieID="GluGbuf" injectionSite="sa1[0].pointA">
        <onset>               45000          </onset>
        <duration>            5              </duration>
        <rate>                1.125           </rate>
        <period>              20             </period>
        <end>                 45066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>  
  </InjectionStim>
  
<!--**********Calcium******TRAIN 2******* 80 total Ca pulses ***********-->

<InjectionStim specieID="Ca" injectionSite="sa1[0].pointA">
        <onset>               45000          </onset>
        <duration>            3              </duration>
        <rate>                154            </rate>
        <period>              20             </period>
        <end>                 45066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>       
</InjectionStim>

<InjectionStim specieID="Ca" injectionSite="dend:submembrane">
        <onset>               45000          </onset>
        <duration>            3              </duration>
        <rate>               156            </rate>
        <period>              20             </period>
        <end>                 45066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>     
</InjectionStim>

<!-- ACh neurons fire only 1 of every two 50 Hz stim -->
<InjectionStim specieID="ACh" injectionSite="sa1[0].pointA">
        <onset>               45000          </onset>
        <duration>            15              </duration>
        <rate>               3.0          </rate>
        <period>              40             </period>
        <end>                 45066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29          </interTrainInterval>  
</InjectionStim>

<InjectionStim specieID="ACh" injectionSite="dend:submembrane">
        <onset>               45000          </onset>
        <duration>            15              </duration>
        <rate>               3.0          </rate>
        <period>              40             </period>
        <end>                 45066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29          </interTrainInterval>  
 </InjectionStim>

<!--*********Glu******TRAIN 3***************-->
  <InjectionStim specieID="GluGbuf" injectionSite="sa1[0].pointA">
        <onset>               60000          </onset>
        <duration>            5              </duration>
        <rate>                1.125           </rate>
        <period>              20             </period>
        <end>                 60066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>    
  </InjectionStim>
  
<!--**********Calcium******TRAIN 3******* 120 total Ca pulses ***********-->

<InjectionStim specieID="Ca" injectionSite="sa1[0].pointA">
        <onset>               60000          </onset>
        <duration>            3              </duration>
        <rate>                154            </rate>
        <period>              20             </period>
        <end>                 60066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>      
</InjectionStim>

<InjectionStim specieID="Ca" injectionSite="dend:submembrane">
        <onset>               60000          </onset>
        <duration>            3              </duration>
        <rate>                156            </rate>
        <period>              20             </period>
        <end>                 60066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>   
</InjectionStim>

<!-- ACh neurons fire only 1 of every two 50 Hz stim -->
<InjectionStim specieID="ACh" injectionSite="sa1[0].pointA">
        <onset>               60000          </onset>
        <duration>            15              </duration>
        <rate>               3.0          </rate>
        <period>              40             </period>
        <end>                 60066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29          </interTrainInterval>  
</InjectionStim>

<InjectionStim specieID="ACh" injectionSite="dend:submembrane">
        <onset>               60000          </onset>
        <duration>            15              </duration>
        <rate>               3.0          </rate>
        <period>              40             </period>
        <end>                 60066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29          </interTrainInterval>  
 </InjectionStim>


<!--**********Glu******TRAIN 4******************-->
<InjectionStim specieID="GluGbuf" injectionSite="sa1[0].pointA">
        <onset>               75000          </onset>
        <duration>            5              </duration>
        <rate>                1.125           </rate>
        <period>              20             </period>
        <end>                 75066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval>     
</InjectionStim>
  
<!--**********Calcium******TRAIN 4******* 160 total Ca pulses ***********-->

<InjectionStim specieID="Ca" injectionSite="sa1[0].pointA">
        <onset>               75000          </onset>
        <duration>            3              </duration>
        <rate>                154            </rate>
        <period>              20             </period>
        <end>                 75066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval> 
</InjectionStim>

<InjectionStim specieID="Ca" injectionSite="dend:submembrane">
        <onset>               75000          </onset>
        <duration>            3              </duration>
        <rate>                156            </rate>
        <period>              20             </period>
        <end>                 75066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29             </interTrainInterval> 
</InjectionStim>

<!-- ACh neurons fire only 1 of every two 50 Hz stim -->
<InjectionStim specieID="ACh" injectionSite="sa1[0].pointA">
        <onset>               75000          </onset>
        <duration>            15              </duration>
        <rate>               3.0          </rate>
        <period>              40             </period>
        <end>                 75066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29          </interTrainInterval>  
</InjectionStim>

<InjectionStim specieID="ACh" injectionSite="dend:submembrane">
        <onset>               75000          </onset>
        <duration>            15              </duration>
        <rate>               3.0          </rate>
        <period>              40             </period>
        <end>                 75066          </end>
        <numTrains>           10             </numTrains>
        <interTrainInterval>  29          </interTrainInterval>  
 </InjectionStim>

</StimulationSet>